Free AWS Certified GenAI Developer (AIP-C01) practice — 6 questions on Implementation and Integration, with explanations. No sign-up.
Full 12-question mixed test →
Question 1 of 6 · Domain 2: Implementation and Integration
A financial services company is implementing a RAG system using Amazon Bedrock Knowledge Bases with OpenSearch Serverless as the vector store. During testing, they notice that retrieval accuracy degrades when queries contain industry-specific abbreviations and synonyms not present in the source documents. The system must maintain sub-200ms p95 retrieval latency. Which implementation approach BEST addresses these requirements?
Preprocessing documents to expand abbreviations during ingestion ensures the vector embeddings capture the full semantic meaning. Hybrid search (combining semantic vector search with keyword/lexical search) provides the best of both worlds—semantic understanding plus exact term matching for abbreviations. The 0.7/0.3 weighting favors semantic search while still catching exact matches. This approach maintains low latency since preprocessing happens once at ingestion time, not at query time.
Question 2 of 6 · Domain 2: Implementation and Integration
An AI application uses Amazon Bedrock Agents with a custom action group that calls a Lambda function to query a proprietary database. The Lambda function occasionally times out (>30 seconds) when the database is under heavy load. The agent must provide users with partial results rather than failing completely. Which configuration change addresses this requirement?
Step Functions provides built-in error handling, retry logic, and the ability to catch timeouts gracefully. You can implement a Map state with error catching that returns partial results when some database queries succeed but others timeout. The workflow can aggregate available results and return them to the agent, while the agent's orchestration continues. This maintains the user experience even during database slowdowns.
Question 3 of 6 · Domain 2: Implementation and Integration
A healthcare provider is building a HIPAA-compliant conversational AI using Amazon Lex with Amazon Bedrock integration for intent fulfillment. Conversations must be encrypted at rest and in transit, with audit logs proving PHI was never exposed to model training. The system processes 50,000 conversations daily. Which architecture meets compliance requirements with the LOWEST operational overhead?
This option meets all HIPAA requirements efficiently: KMS customer-managed keys provide encryption at rest with audit trails; Lex and Bedrock both encrypt data in transit by default; CloudTrail data events provide comprehensive audit logs; using base model inference (not fine-tuning) ensures conversation data is never used for training, which is documented and provable for compliance. S3 with SSE-KMS provides secure, cost-effective log storage. This is the standard AWS-recommended pattern for HIPAA workloads with managed services, minimizing operational overhead.
Question 4 of 6 · Domain 2: Implementation and Integration
A company is implementing prompt caching for an Amazon Bedrock application that generates personalized marketing content. The base prompt includes 15,000 tokens of brand guidelines that remain constant, plus 500 tokens of customer-specific data that changes per request. They make 100,000 requests daily with the Anthropic Claude 3.5 Sonnet model. Cached content has a 5-minute TTL. Which implementation pattern maximizes cost savings?
Claude's prompt caching works by caching the prefix of the prompt—content must appear in order with cached content coming first. The brand guidelines (15K tokens) should be wrapped in cache control tags at the start, then variable customer data (500 tokens) appended after. With a 5-minute TTL and 100K requests/day (~69 requests/minute), request batching at 30-second intervals ensures multiple requests benefit from the same cached content, maximizing cache hit rates. This is the documented pattern for Claude prompt caching and provides maximum savings on the expensive 15K token prefix.
Question 5 of 6 · Domain 2: Implementation and Integration
An e-commerce company uses Amazon Bedrock Guardrails to filter sensitive information from customer service chat responses. After deployment, they discover that product SKUs (format: XX-1234-YY) are being incorrectly blocked by the PII filters, causing 15% of valid responses to be rejected. The system must block actual credit card numbers while allowing SKUs. Which solution provides the MOST precise filtering?
This approach provides surgical precision: the Lambda function identifies SKUs using regex (XX-1234-YY pattern), replaces them with safe placeholders (e.g., [SKU_1], [SKU_2]) before sending to Guardrails, then Guardrails PII filters work normally blocking actual credit cards, and finally the Lambda unmasks SKUs in the response. This preserves all Guardrails PII protections while preventing false positives on SKUs. It's a common pattern for handling domain-specific entities that superficially resemble PII.
Question 6 of 6 · Domain 2: Implementation and Integration
A research institution is building a multi-agent system using Amazon Bedrock Agents where a supervisor agent delegates tasks to three specialized agents (data analysis, literature review, report generation). The supervisor must aggregate results from all three agents, handle failures gracefully when one agent fails, and maintain conversation context across the entire workflow. The system processes 200 concurrent research requests. Which architecture pattern provides the required orchestration capabilities?
This is the correct pattern for supervisor-subordinate multi-agent systems in Bedrock. The supervisor agent uses action groups to invoke specialized agents via Lambda functions, which can call the specialized agents' APIs. The return control invocation pattern allows the supervisor to receive results from subordinate agents, process them (aggregate, handle failures), and continue orchestration. Native session state handles context automatically across the conversation. This uses Bedrock's designed features for multi-agent orchestration and scales to 200 concurrent sessions efficiently.
Ready for the real thing?
The full course: two full-length practice tests, video lessons for every exam domain, hands-on labs and detailed explanations.
$54.99$17.99 with code FREETEST33 — valid through August 22.