Free AWS AIP-C01 practice questions

10 free AWS AIP-C01 practice questions with the correct answer and a full explanation for each, taken from the CertStash pack of 127 questions. Work through them, then open each answer to check your reasoning.

Question 1

A retail company has a generative AI (GenAI) product recommendation application that uses Amazon Bedrock. The application suggests products to customers based on browsing history and demographics. The company needs to implement fairness evaluation across multiple demographic groups to detect and measure bias in recommendations between two prompt approaches. The company wants to collect and monitor fairness metrics in real time. The company must receive an alert if the fairness metrics show a discrepancy of more than 15% between demographic groups. The company must receive weekly reports that compare the performance of the two prompt approaches.

Which solution will meet these requirements with the LEAST custom development effort?

  1. Configure an Amazon CloudWatch dashboard to display default metrics from Amazon Bedrock API calls. Create custom metrics based on model outputs. Set up Amazon EventBridge rules to invoke AWS lambda functions that perform pos-rocessing analysis on model responses and publish custom fairness metrics.
  2. Create the two prompt variants in Amazon Bedrock Prompt Management. Use Amazon Bedrock Flows to deploy the prompt variants with defined traffic allocation. Configure Amazon Bedrock guardrails that have content filters to monitor demographic fairness. Set up Amazon CloudWatch alarms on the GuardrailContentSource dimension that use InvocationsIntervened metrics to detect recommendation discrepancy threshold violations.
  3. Set up Amazon SageMaker Clarify to analyze model outputs. Publish fairness metrics to Amazon CloudWatch. Create CloudWatch composite alarms that combine SageMaker Clarify bias metrics with Amazon Bedrock latency metrics to provide a comprehensive fairness evaluation dashboard.
  4. Create an Amazon Bedrock model evaluation job to compare fairness between the two prompt variants. Enable model invocation logging in Amazon CloudWatch. Set up CloudWatch alarms for InvocationsIntervened metrics with a dimension for each demographic group. ✅Correct Answer: C, Set up Amazon SageMaker Clarify to analyze model outputs. Publish fairness metrics to Amazon CloudWatch. Create CloudWatch composite alarms that combine SageMaker Clarify bias metrics with Amazon Bedrock latency metrics to provide a comprehensive fairness evaluation dashboard. Amazon SageMaker Clarify is the managed capability that computes bias and fairness metrics across demographic groups. Clarify results can be published to Amazon CloudWatch, where alarms detect the 15% discrepancy between groups in near real time and dashboards provide the weekly comparison of the two prompt approaches. Using Clarify's built-in bias metrics avoids writing custom fairness calculations, so it meets the requirements with the least custom development effort.
Show answer and explanation

Answer and explanation for question 1

Question 2

A company has deployed an AI assistant as a React application that uses AWS Amplify, an AWS AppSync GraphQL API, and Amazon Bedrock Knowledge Bases. The application uses the GraphQL API to call the Amazon Bedrock RetrieveAndGenerate API for knowledge base interactions.

The company configures an AWS Lambda resolver to use the RequestResponse invocation type.

Application users report frequent timeouts and slow response times. Users report these problems more frequently for complex questions that require longer processing.

The company needs a solution to fix these performance issues and enhance the user experience.

Which solution will meet these requirements?

  1. Use AWS Amplify AI Kit to implement streaming responses from the GraphQL API and to optimize client-side rendering.
  2. Increase the timeout value of the Lambda resolver. Implement retry logic with exponential backoff.
  3. Update the application to send an API request to an Amazon SQS queue. Update the AWS AppSync resolver to poll and process the queue.
  4. Change the RetrieveAndGenerate API to the InvokeModelWithResponseStream API. Update the application to use an Amazon API Gateway WebSocket API to support the streaming response.
Show answer and explanation

Correct answer: A. Use AWS Amplify AI Kit to implement streaming responses from the GraphQL API and to optimize client-side rendering.

AWS Amplify AI Kit provides native support for streaming responses from GraphQL APIs and optimizes client-side rendering for long-running AI operations. This directly addresses the timeout and latency issues caused by complex questions requiring longer processing. The streaming approach allows responses to begin flowing to the client immediately rather than waiting for complete computation, significantly improving perceived performance and user experience without architectural changes.

Why the other options are wrong

  • B. Simply increasing timeout values treats the symptom but doesn't solve the underlying slow response problem; exponential backoff on timeouts won't improve performance for intrinsically slow operations.
  • C. SQS-based asynchronous polling adds significant architectural complexity and latency (polling overhead) compared to native streaming, which is inefficient for rea-ime user interactions.
  • D. Switching APIs and adding WebSocket complexity is unnecessarily complicated when Amplify AI Kit provides streaming support natively integrated with existing GraphQL infrastructure.

Question 3

An ecommerce company operates a global product recommendation system that needs to switch between multiple foundation models (FM) in Amazon Bedrock based on regulations, cost optimization, and performance requirements. The company must apply custom controls based on proprietary business logic, including dynamic cost thresholds, AWS Region-specific compliance rules, and real-time A/B testing across multiple FMs. The system must be able to switch between FMs without deploying new code. The system must route user requests based on complex rules including user tier, transaction value, regulatory zone, and real-time cost metrics that change hourly and require immediate propagation across thousands of concurrent requests.

Which solution will meet these requirements?

  1. Deploy an AWS Lambda function that uses environment variables to store routing rules and Amazon Bedrock FM IDs. Use the Lambda console to update the environment variables when business requirements change. Configure an Amazon API Gateway REST API to read request parameters to make routing decisions.
  2. Deploy Amazon API Gateway REST API request transformation templates to implement routing logic based on request attributes. Store Amazon Bedrock FM endpoints as REST API stage variables. Update the variables when the system switches between models.
  3. Configure an AWS Lambda function to fetch routing configurations from the AWS AppConfig Agent for each user request. Run business logic in the Lambda function to select the appropriate FM for each request. Expose the FM through a single Amazon API Gateway REST API endpoint.
  4. Use AWS Lambda authorizers for an Amazon API Gateway REST API to evaluate routing rules that are stored in AWS AppConfig. Return authorization contexts based on business logic. Route requests to model-specific Lambda functions for each Amazon Bedrock FM.
Show answer and explanation

Correct answer: C. Configure an AWS Lambda function to fetch routing configurations from the AWS AppConfig Agent for each user request. Run business logic in the Lambda function to select the appropriate FM for each request. Expose the FM through a single Amazon API Gateway REST API endpoint.

Option C uses AWS AppConfig Agent to fetch routing configurations dynamically for each request, enabling immediate propagation of hourly cost threshold changes and regulatory updates across concurrent requests without code deployment. The Lambda function executes business logic to evaluate user tier, transaction value, regulatory zone, and rea-ime cost metrics against the dynamically fetched configuration. This architecture supports complex rule evaluation, real-time updates, and model switching without redeployment, meeting all requirements with minimal operational friction.

Why the other options are wrong

  • A. Environment variables require Lambda redeployment to update routing rules; they don't support hourly changes or immediate propagation to thousands of concurrent requests.
  • B. API Gateway request transformation templates cannot handle complex business logic like dynamic cost threshold evaluation and regulatory rule application; stage variables also require manual updates.
  • D. Using Lambda authorizers for routing logic is an incorrect pattern; authorizers are designed for authentication/authorization, not request routing or business logic execution.

Question 4

A company is developing an internal generative AI (GenAI) assistant that uses Amazon Bedrock to summarize corporate documents for multiple business units. The GenAI assistant must generate responses in a consistent format that includes a document summary, classification of business risks, and terms that are flagged for review. The GenAI assistant must adapt the tone of responses for each user's business unit, such as legal, human resources, or finance. The GenAI assistant must block hate speech, inappropriate topics, and sensitive information such as personal health information.

The company needs a solution to centrally manage prompt variants across business units and teams. The company wants to minimize ongoing orchestration efforts and maintenance for post-processing logic. The company also wants to have the ability to adjust content moderation criteria for the GenAI assistant over time.

Which solution will meet these requirements with the LEAST maintenance overhead?

  1. Use Amazon Bedrock Prompt Management to configure reusable templates and business unit-specific prompt variants. Apply Amazon Bedrock guardrails that have category filters and sensitive term lists to block prohibited content.
  2. Use Amazon Bedrock Prompt Management to define base templates. Enforce business unit-specific tone by using system prompt variables. Configure Amazon Bedrock guardrails to apply audience-based threshold tuning. Manage the guardrails by using an internal administration API.
  3. Use Amazon Bedrock with business unit-based instruction injection in API calls. Store response formatting rules in Amazon DynamoDB. Use AWS Step functions to validate responses. Use Amazon Comprehend to apply content filters after the GenAI assistant generates responses.
  4. Use Amazon Bedrock with custom prompt templates that are stored in Amazon DynamoDB. Create one AWS Lambda function to select business unit-specific prompts. Create a second Lambda function to call Amazon Comprehend to filter prohibited content from responses.
Show answer and explanation

Correct answer: A. Use Amazon Bedrock Prompt Management to configure reusable templates and business unit-specific prompt variants. Apply Amazon Bedrock guardrails that have category filters and sensitive term lists to block prohibited content.

Option A uses Amazon Bedrock Prompt Management to create reusable templates and business unit-specific variants, centralizing management across teams with minimal orchestration overhead. Amazon Bedrock Guardrails with category filters and sensitive term lists provide built-in content moderation without custom post-processing logic. This combination supports consistent formatting, tone adaptation per business unit, and adjustable content moderation criteria over time, all managed centrally with the least maintenance burden.

Why the other options are wrong

  • B. Audience-based threshold tuning in guardrails and internal administration APIs add complexity without corresponding benefit over standard category filters.
  • C. Instruction injection, DynamoDB storage, Step Functions validation, and Amazon Comprehend post-processing create significant custom maintenance overhead and orchestration complexity.
  • D. Custom templates in DynamoDB, multiple Lambda functions, and post-processing with Comprehend introduce unnecessary operational overhead compared to native Bedrock Prompt Management and Guardrails.

Question 5

A financial services company is building a customer support application that retrieves relevant financial regulation documents from a database based on semantic similarities to user queries. The application must integrate with Amazon Bedrock to generate responses. The application must be able to search documents that are in English, Spanish, and Portuguese. The application must filter documents by metadata such as publication date, regulatory agency, and document type.

The database stores approximately 10 million document embeddings. To minimize operational overhead, the company wants a solution that minimizes management and maintenance effort. The application must provide low-latency responses for real-time customer interactions.

Which solution will meet these requirements?

  1. Use Amazon OpenSearch Serverless to provide vector search capabilities and metadata filtering. Connect to Amazon Bedrock Knowledge Bases to enable Retrieval Augmented Generation (RAG) capabilities that use an Anthropic Claude foundation model (FM).
  2. Deploy an Amazon Aurora PostgreSQL database with the pgvector extension. Define tables to store embeddings and metadata. Use SQL queries to perform similarity searches. Send retrieved documents to Amazon Bedrock to generate responses.
  3. Use Amazon S3 Vectors to configure a vector index and non-filterable metadata fields. Integrate S3 Vectors with Amazon Bedrock to enable Retrieval Augmented Generation (RAG) capabilities.
  4. Set up an Amazon Neptune Analytics graph database. Configure a vector index that has appropriate dimensionality to store document embeddings. Use Amazon Bedrock to perform graph-based retrieval and to generate responses. ✅Correct Answer: A, Use Amazon OpenSearch Serverless to provide vector search capabilities and metadata filtering. Connect to Amazon Bedrock Knowledge Bases to enable Retrieval Augmented Generation (RAG) capabilities that use an Anthropic Claude foundation model (FM). Amazon OpenSearch Serverless provides vector search with filterable metadata for publication date, regulatory agency, and document type, and it scales to 10 million embeddings with low-latency retrieval. Embedding models handle English, Spanish, and Portuguese text, and OpenSearch Serverless is a supported vector store for Amazon Bedrock Knowledge Bases, so RAG with an Anthropic Claude model works natively. The serverless model removes cluster sizing and patching work.
Show answer and explanation

Answer and explanation for question 5

Question 6

A medical company is building a generative AI (GenAI) application that uses RAG to provide evidence-based medical information. The application uses Amazon OpenSearch Service to retrieve vector embeddings. Users report that searches frequently miss results that contain exact medical terms and acronyms and return too many semantically similar but irrelevant documents. The company needs to improve retrieval quality and maintain low end user latency, even as the document collection grows to millions of documents.

Which solution will meet these requirements with the LEAST operational overhead?

  1. Configure hybrid search by combining vector similarity with keyword matching to improve semantic understanding and exact term and acronym matching.
  2. Increase the dimensions of the vector embeddings from 384 to 1536. Use a pos-rocessing AWS Lambda function to filter out irrelevant results after retrieval.
  3. Replace OpenSearch Service with Amazon Kendra. Use query expansion to handle medical acronyms and terminology variants during pre-processing.
  4. Implement a two-stage retrieval architecture in which initial vector search results are re-ranked by an ML model that is hosted on Amazon SageMaker AI.
Show answer and explanation

Correct answer: A. Configure hybrid search by combining vector similarity with keyword matching to improve semantic understanding and exact term and acronym matching.

Hybrid search combines vector similarity with keyword matching, allowing exact matches on medical terms and acronyms while maintaining semantic understanding. This approach directly addresses both problems: missing results containing exact medical terminology and excessive semantically similar irrelevant documents. Implementing hybrid search in Amazon OpenSearch Service requires minimal operational overhead (configuration change) while maintaining low latency and supporting growth to millions of documents.

Why the other options are wrong

  • B. Increasing vector dimensions and post-processing filtering doesn't address the underlying issue that pure semantic search misses exact term matches and requires Lambda post-processing overhead.
  • C. Replacing OpenSearch with Amazon Kendra introduces significant migration effort and operational changes; Kendra is designed for enterprise document search, not specialized RAG tasks.
  • D. Two-stage retrieval with SageMaker ML re-ranking adds operational complexity, management overhead, and additional latency, contradicting the low-overhead requirement.

Question 7

A company runs a generative AI (GenAI)-powered summarization application in an application AWS account that uses Amazon Bedrock. The application architecture includes an Amazon API Gateway REST API that forwards requests to AWS Lambda functions that are attached to private VPC subnets. The application summarizes sensitive customer records that the company stores in a governed data lake in a centralized data storage account. The company has enabled Amazon S3, Amazon Athena, and AWS Glue in the data storage account.

The company must ensure that calls that the application makes to Amazon Bedrock use only private connectivity between the company's application VPC and Amazon Bedrock. The company's data lake must provide fine-grained column-level access across the company's AWS accounts.

Which solution will meet these requirements?

  1. In the application account, create interface VPC endpoints for Amazon Bedrock runtimes. Run Lambda functions in private subnets. Use IAM conditions on inference and data-plane policies to allow calls only to approved endpoints and roles. In the data storage account, use AWS Lake Formation LF-tag-based access control to create table and column-level cross-account grants.
  2. Run Lambda functions in private subnets. Configure a NAT gateway to provide access to Amazon Bedrock and the data lake. Use S3 bucket policies and ACLs to manage permissions. Export AWS CloudTrail logs to Amazon S3 to perform weekly reviews.
  3. Create a gateway endpoint only for Amazon S3 in the application account. Invoke Amazon Bedrock through public endpoints. Use database-level grants in AWS Lake Formation to manage data access. Stream AWS CloudTrail logs to Amazon CloudWatch Logs. Do not set up metric filters or alarms.
  4. Use VPC endpoints to provide access to Amazon Bedrock and Amazon S3 in the application account. Use only IAM path-based policies to manage data lake access. Send AWS CloudTrail logs to Amazon CloudWatch Logs. Periodically create dashboards and allow public fallback for cross-Region reads to reduce setup time.
Show answer and explanation

Correct answer: A. In the application account, create interface VPC endpoints for Amazon Bedrock runtimes. Run Lambda functions in private subnets. Use IAM conditions on inference and data-plane policies to allow calls only to approved endpoints and roles. In the data storage account, use AWS Lake Formation LF-tag-based access control to create table and column-level cross-account grants.

Option A creates interface VPC endpoints for Amazon Bedrock runtime in the application account, ensuring private connectivity without internet exposure. Lambda functions in private subnets use these endpoints exclusively with IAM conditions restricting access to approved endpoints and roles. AWS Lake Formation LF-tag-based access control provides fine-grained column-level cross-account access to the data lake, addressing both the private connectivity requirement for Bedrock and the governed data lake access requirement.

Why the other options are wrong

  • B. NAT gateways route traffic through public internet, violating the private connectivity requirement; S3 bucket policies and ACLs lack fine-grained column-level control.
  • C. Invoking Bedrock through public endpoints violates the private connectivity requirement; database-level grants lack column-level granularity required for fin-rained access.
  • D. Public fallback for cross-Region reads bypasses the private connectivity requirement; IAM path-based policies alone cannot enforce column-level access control like Lake Formation provides.

Question 8

A media company must use Amazon Bedrock to implement a robust governance process for AI-generated content. The company needs to manage hundreds of prompt templates. Multiple teams use the templates across multiple AWS Regions to generate content. The solution must provide version control with approval workflows that include notifications for pending reviews. The solution must also provide detailed audit trails that document prompt activities and consistent prompt parameterization to enforce quality standards.

Which solution will meet these requirements?

  1. Configure Amazon Bedrock Studio prompt templates. Use Amazon CloudWatch to create dashboards that display prompt usage metrics. Store the approval status of content in Amazon DynamoDB. Use AWS Lambda functions to enforce approvals.
  2. Use Amazon Bedrock Prompt Management to implement version control. Configure AWS CloudTrail for audit logging. Use IAM policies to control approval permissions. Create parameterized prompt templates by specifying variables.
  3. Use AWS Step Functions to create an approval workflow. Store prompts as documents in Amazon S3. Use tags to implement version control. Use Amazon EventBridge to send notifications.
  4. Deploy Amazon SageMaker Canvas with prompt templates that are stored in Amazon S3. Use AWS CloudFormation to implement version control. Use AWS Config to enforce approval policies.
Show answer and explanation

Correct answer: B. Use Amazon Bedrock Prompt Management to implement version control. Configure AWS CloudTrail for audit logging. Use IAM policies to control approval permissions. Create parameterized prompt templates by specifying variables.

Amazon Bedrock Prompt Management is the native way to store prompt templates as versioned resources that are shared by multiple teams and Regions, and its prompt variables enforce consistent parameterization and quality standards. AWS CloudTrail records every prompt create, update, and version action for detailed audit trails, and IAM policies control which identities can publish or promote a version, so only approvers can release prompts. This uses managed Bedrock capabilities instead of custom tooling.

Why the other options are wrong

  • A. Bedrock Studio is for interactive development; CloudWatch dashboards only show usage metrics, and DynamoDB with Lambda is custom code without prompt versioning.
  • C. Prompts stored as S3 documents with tags give no prompt versioning or parameterization, and the whole workflow must be custom built.
  • D. SageMaker Canvas is a no-code ML tool, CloudFormation versions infrastructure rather than prompts, and AWS Config evaluates resource compliance.

Question 9

A company is developing a customer support application that uses Amazon Bedrock foundation models (FMs) to provide real-time AI assistance to the company's employees. The application must display AI-generated responses character by character as the responses are generated. The application needs to support thousands of concurrent users with minimal latency. The responses typically take 15 to 45 seconds to finish.

Which solution will meet these requirements?

  1. Configure an Amazon API Gateway WebSocket API with an AWS Lambda integration. Configure the WebSocket API to invoke the Amazon Bedrock InvokeModelWithResponseStream API and stream partial responses through WebSocket connections.
  2. Configure an Amazon API Gateway REST API with an AWS Lambda integration. Configure the REST API to invoke the Amazon Bedrock standard InvokeModel API and implement frontend client-side polling every 100 ms for complete response chunks.
  3. Implement direct frontend client connections to Amazon Bedrock by using IAM user credentials and the InvokeModelWithResponseStream API without any intermediate gateway or proxy layer.
  4. Configure an Amazon API Gateway HTTP API with an AWS Lambda integration. Configure the HTTP API to cache complete responses in an Amazon DynamoDB table and serve the responses through multiple paginated GET requests to frontend clients.
Show answer and explanation

Correct answer: A. Configure an Amazon API Gateway WebSocket API with an AWS Lambda integration. Configure the WebSocket API to invoke the Amazon Bedrock InvokeModelWithResponseStream API and stream partial responses through WebSocket connections.

WebSocket APIs enable persistent bidirectional connections ideal for streaming characte-y-character output. The InvokeModelWithResponseStream API is specifically designed for streaming partial model outputs. Lambda can handle thousands of concurrent WebSocket connections efficiently. This architecture supports real-time display of AI responses with minimal latency and scales to thousands of concurrent users.

Why the other options are wrong

  • B. REST APIs with polling every 100ms creates unnecessary latency and load; standard InvokeModel is not designed for streaming; polling is inefficient for long 15-45 second responses.
  • C. Direct client connections to Bedrock expose AWS credentials and lack proper API management; this violates security best practices and doesn't scale well.
  • D. HTTP API with caching and pagination defeats the purpose of real-time streaming; DynamoDB persistence adds latency; paginated GET requests don't provide characte-y-character streaming experience.

Question 10

A healthcare company is using Amazon Bedrock to build a Retrieval Augmented Generation (RAG) application that helps practitioners make clinical decisions. The application must achieve high accuracy for patient information retrievals, identify hallucinations in generated content, and reduce human review costs.

Which solution will meet these requirements?

  1. Use Amazon Comprehend to analyze and classify RAG responses and to extract medical entities and relationships. Use AWS Step Functions to orchestrate automated evaluations. Configure Amazon CloudWatch metrics to track entity recognition confidence scores. Configure CloudWatch to send an alert when accuracy falls below specified thresholds.
  2. Implement automated large language model (LLM)-based evaluations that use a specialized model that is fine-tuned for medical content to assess all responses. Deploy AWS Lambda functions to parallelize evaluations. Publish results to Amazon CloudWatch metrics that track relevance and factual accuracy.
  3. Configure Amazon CloudWatch Synthetics to generate test queries that have known answers on a regular schedule, and track model success rates. Set up dashboards that compare synthetic test results against expected outcomes.
  4. Deploy a hybrid evaluation system that uses an automated LLM-as-a-judge evaluation to initially screen responses and targeted human reviews for edge cases. Use Amazon SageMaker Feature Store to maintain evaluation datasets. Use a buil-n Amazon Bedrock evaluation to track retrieval precision and hallucination rates. ✅Correct Answer: D, Deploy a hybrid evaluation system that uses an automated LLM-as-a-judge evaluation to initially screen responses and targeted human reviews for edge cases. Use Amazon SageMaker Feature Store to maintain evaluation datasets. Use a buil-n Amazon Bedrock evaluation to track retrieval precision and hallucination rates. A hybrid design uses an automated LLM-as-a-judge pass to screen every response and routes only edge cases to clinicians, which keeps accuracy high while cutting human review costs. SageMaker Feature Store keeps the evaluation datasets consistent over time. Amazon Bedrock built-in RAG evaluation metrics report retrieval precision and hallucination or faithfulness scores, directly meeting the requirement to detect ungrounded content in generated answers.
Show answer and explanation

Answer and explanation for question 10

That was 10 of 127.

The full AWS AIP-C01 pack has all 127 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack