AWS Certified Generative AI Developer - Professional (AIP-C01) - Practice Questions¶
15 questions for AIP-C01 prep, weighted toward foundation model integration, data management, and compliance (31%), implementation and integration (26%), and AI safety, security, and governance (20%).
Question 1¶
Scenario: An application must call several foundation models through one API with no infrastructure to manage.
A. Amazon Bedrock with its unified API B. Amazon Comprehend C. Amazon SageMaker training jobs on dedicated instances D. EC2 with self-hosted models behind a load balancer
Answer
**Correct: A** **Why:** Bedrock is the managed multi-model API covering Anthropic, Meta, Mistral, Amazon, and others behind a single interface, with no capacity to provision. SageMaker is the platform for training and hosting your own models, and Comprehend is a task-specific NLP service.Question 2¶
Scenario: A chatbot must answer from a corpus of internal PDFs stored in S3, with citations.
A. A Bedrock Knowledge Base over the S3 corpus, with retrieval and generation returning source attribution B. Paste the full text of every PDF into the prompt on each request, so that the model always has the source documents available to quote C. Fine-tune the model on the PDFs so that it learns the content of the documents and can cite the source file it learned each fact from D. Use Amazon Textract alone to extract the text of each PDF, then return the matching extract directly to the user as the answer
Answer
**Correct: A** **Why:** Knowledge Bases handle ingestion, chunking, embedding, vector storage, and retrieval with citations, which is the managed RAG path. Fine-tuning teaches style rather than facts and gives no citations. Textract extracts text, which is one input step rather than the solution.Question 3¶
Scenario: Model responses must be blocked when they contain a defined set of denied topics and PII.
A. A prompt instruction telling the model never to discuss the denied topics or output personal data, repeated at the start of every request B. Post-hoc log review by the security team, searching the invocation logs each day for denied topics C. Lower the temperature so the model's responses become more deterministic and so less likely to stray D. Bedrock Guardrails with denied topics, content filters, and sensitive information filters on input and output
Answer
**Correct: D** **Why:** Guardrails apply to both input and output independently of the model, and they can mask or block PII and enforce topic policies. A prompt instruction is advisory and can be argued with by injected content, and log review is detection rather than prevention.Question 4¶
Scenario: An agent must call internal APIs to complete multistep tasks.
A. A single prompt that describes every API and asks the model to write out the calls to run in order B. A Knowledge Base alone, which retrieves documents about each internal API but has no way to invoke the APIs on behalf of the user C. Bedrock Agents with action groups defined by an OpenAPI schema and backed by Lambda functions that hold the permissions D. Step Functions alone, which runs a fixed workflow of API calls but has no model choosing the next action
Answer
**Correct: C** **Why:** Bedrock Agents orchestrate the loop, decide which action to invoke, and call the Lambda implementations described by the action group schema. The IAM role on those Lambdas is what actually bounds the agent's authority, which is where the security design belongs.Question 5¶
Scenario: Guaranteed throughput is required for a latency-sensitive Bedrock workload.
A. Provisioned Throughput for the model B. A larger model, since it has more capacity and so serves each request quickly even when other customers are using the service C. Batch inference, which processes a file of prompts asynchronously at a lower price but does not give predictable latency D. On-demand invocation with a retry policy, which scales automatically with traffic and so avoids any throttling during peak periods
Answer
**Correct: A** **Why:** Provisioned Throughput reserves model units for predictable capacity and is required for custom models. On-demand is elastic but subject to throttling under contention, and batch inference trades latency for a lower price on offline work.Question 6¶
Scenario: Prompts and completions must never traverse the public internet.
A. An internet gateway with a security group that only allows HTTPS, so the traffic is encrypted and restricted to Bedrock's address ranges B. A NAT gateway in a public subnet, so that instances in the private subnet can call Bedrock without being reachable C. VPC interface endpoints (PrivateLink) for Bedrock, with the application in a private subnet and no route to the internet D. TLS is sufficient, because the encrypted traffic cannot be read in transit even if it crosses the public internet
Answer
**Correct: C** **Why:** PrivateLink keeps the traffic on the AWS network with a private IP in your VPC. TLS protects confidentiality in transit but the traffic still leaves your VPC, which is what a network isolation requirement usually means. NAT and internet gateways route to the internet by definition.Question 7¶
Scenario: A model must be customized on proprietary examples without that data being used to train the base model.
A. Prompt engineering only, placing the proprietary examples in every prompt as few-shot context, which keeps the base model untouched B. Bedrock custom model fine-tuning, where the customized model is private to your account C. Sharing the data with the provider so their team can train a private variant D. Public fine-tuning through the provider's shared model program, where the improved model is then offered to all customers
Answer
**Correct: B** **Why:** Fine-tuned models in Bedrock are private copies encrypted with your key, and the training data is not used to improve the base model. Being able to state that precisely is part of the compliance domain, because it is usually the first question legal asks.Question 8¶
Scenario: Costs are high because a long system prompt repeats on every request.
A. Increase max tokens so that the model can accept the longer system prompt in one pass and spend fewer requests on it B. Add more replicas of the application, which spreads the repeated prompt across more instances and lowers the cost per request C. Prompt caching for the stable prefix D. Switch to a larger model, which follows the long system prompt more reliably and so needs fewer retries
Answer
**Correct: C** **Why:** Caching the unchanging prefix cuts both cost and time to first token, and it requires the stable content to sit at the front of the prompt. Combine it with model routing so simple requests go to a cheaper model, which is the other major lever.Question 9¶
Scenario: A retrieval system must not return documents the requesting user is not entitled to see.
A. Rely on the model's safety training to refuse to reveal documents the user is not entitled to read, and treat that as sufficient B. Instruct the model in the system prompt to refuse any question about documents outside the user's entitlements C. Post-process the answer with a classifier that redacts content the user is not allowed to see before it is displayed D. Filter at retrieval time using metadata filters bound to the user's entitlements, so that unauthorized chunks never enter the prompt context
Answer
**Correct: D** **Why:** Authorization has to happen before content enters the context window, because once it is in the prompt the model may reveal it. Metadata filtering on the Knowledge Base query, driven by the caller's identity, is the enforcement point.Question 10¶
Scenario: A generative feature must be evaluated for quality and safety before launch and on every change.
A. Latency tests that measure response time under load before each release, which show speed but not whether answers are correct or safe B. Manual review of a sample of outputs by the product team before launch, repeated whenever someone remembers C. A single smoke test that sends one representative prompt and checks that a response comes back before each release, failing the release if nothing is returned D. An automated and human evaluation suite for accuracy, groundedness, refusals and adversarial prompts, run in the pipeline
Answer
**Correct: D** **Why:** Prompt edits and model version changes both alter behavior, so evaluation must be a gate rather than a launch activity. Bedrock model evaluation supports automatic and human workflows, and adversarial cases belong in the same suite because injection resistance regresses silently.Question 11¶
Scenario: An indirect prompt injection is embedded in a retrieved document.
A. Assume it may succeed: scope tools to the user's rights, confirm irreversible actions, and treat model output as untrusted B. Filter the retrieved text for suspicious phrases such as "ignore previous instructions" before it reaches the prompt, and block any match C. Increase the guardrail strictness only, raising the content filter thresholds so that injected instructions are blocked on input and output D. Use a larger model, which follows the system prompt more reliably and so is less likely to obey instructions found in retrieved text
Answer
**Correct: A** **Why:** No classifier reliably distinguishes instructions from data in natural language, so the design goal is bounding consequence rather than achieving perfect detection. Guardrails help at the margin, but the tool boundary and output handling are what make a successful injection survivable.Question 12¶
Scenario: Which service converts documents into vectors and stores them for similarity search on AWS?
A. Amazon Kinesis, which ingests streaming data in real time but does not create embeddings B. Amazon OpenSearch Serverless (or Aurora pgvector, or another supported vector store) fed by Bedrock embedding models C. Amazon RDS for MySQL, a relational database that stores rows and supports SQL queries but has no vector index for similarity search D. Amazon DynamoDB Streams, which captures item-level changes and is not a vector store
Answer
**Correct: B** **Why:** The embedding model produces the vectors and a vector-capable store indexes them. Bedrock Knowledge Bases supports several backends, and the choice usually comes down to existing operational familiarity and whether you already run OpenSearch or Postgres.Question 13¶
Scenario: A regulated workload must record every prompt and response for audit.
A. Rely on application logs written by the service code, which record whatever the developers chose to log at each call B. Enable Bedrock model invocation logging to CloudWatch Logs or S3, with retention and access controls C. No logging is possible, because Bedrock does not retain or expose prompts and completions for customer inspection D. Log only errors from the invocation API, which keeps volume low
Answer
**Correct: B** **Why:** Invocation logging captures request and response data at the service level, independent of the application. Because it captures potentially sensitive content, it needs the same encryption, retention, and access restriction as the underlying data, which is part of the compliance design rather than an afterthought.Question 14¶
Scenario: A model upgrade is available. What is the safe rollout?
A. Switch all traffic to the new version on release day, because newer models are expected to match or exceed the old one B. Evaluate the new version against the suite, then canary a small share while comparing quality, latency, and cost before full cutover C. Wait for complaints from users and roll back only if enough tickets arrive to show a real problem D. Run the old and new versions side by side at random permanently, never retiring either version after the upgrade
Answer
**Correct: B** **Why:** A model version change is a behavior change, and a newer model can regress on the specific prompts your application depends on. Offline evaluation catches most of it and the canary catches what the eval set does not represent.Question 15¶
Scenario: An application must choose between fine-tuning, RAG, and prompt engineering.
A. Always fine-tune, because training the model on your data gives the best accuracy for every kind of application B. Prompt engineering first, RAG when the need is current or proprietary knowledge, fine-tuning when the need is consistent format, style, or task behavior C. They are interchangeable, because each one changes the model's output and so any of them solves any problem equally well D. Always use RAG, because retrieval adds current knowledge to every request and so also fixes output format and style
Answer
**Correct: B** **Why:** The three address different problems, and cost and iteration speed rise in that order. RAG updates when your documents update; fine-tuning requires a retraining cycle. Many production systems end up using all three for different aspects of the same feature.Where to go deeper¶
- AIP-C01 cert page - notes, practice plan, strategy
- AI Practitioner practice questions - the foundational AI exam
- Prompt injection defense - question 11 in depth
- AI security topic index - the security domain across the repo
- 📖 AWS Certification - official exam guides