AWS AI Practitioner (AIF-C01) Mock Exam 2: 50 Practice Questions with Answers
A second full AIF-C01 practice test with 50 new questions on RAG, prompt engineering, agents, responsible AI and security, plus detailed explanations.

AWS AI Practitioner (AIF-C01) study series: all 10 posts
- Chapter 1: Fundamentals of AI and ML Explained
- Chapter 2: Fundamentals of Generative AI
- Chapter 3: Applications of Foundation Models (RAG, Prompting, Fine-Tuning)
- Chapter 4: Guidelines for Responsible AI
- Chapter 5: Security, Compliance and Governance for AI
- Mock Exam 1: 50 Practice Questions with Answers
- Mock Exam 2: 50 Practice Questions with Answers (you are here)
- Mock Exam 3: 50 Practice Questions with Answers
- Mock Exam 4: 50 Brand-New Practice Questions
- Mock Exam 5: 50 Brand-New Practice Questions
This is a full-length practice test for the AWS Certified AI Practitioner (AIF-C01) exam. Its 50 questions are weighted exactly like the real exam’s scored content.
How to take this mock exam
- Set a timer for 75 minutes and answer all 50 questions before opening any answers.
- Write your answers on paper or in a notes app. There’s no penalty for guessing, so answer everything.
- Multi-select questions tell you how many to pick, and need every correct option.
- The real exam is scored from 100 to 1,000 and you pass at 700. Aim for 40 of 50 (80%) here.
- Afterwards, use the domain tags in each explanation and the score table at the end to find the chapter to review.

Questions 1–50
Question 1. A regulated company requires its SageMaker AI training jobs to run with no internet access, inside its private network. What should it configure?
- A. Amazon Polly
- B. AWS Trusted Advisor
- C. AWS Artifact
- D. Training jobs in an Amazon VPC with network isolation
Show answer and explanation
Answer: D. Domain 5: Security & governance. Running jobs inside a VPC (with network isolation and VPC endpoints) keeps traffic private.
Question 2. After a prompt change hurts response quality in production, a team wants to switch back to the previous prompt quickly. Which Bedrock capability makes this easiest?
- A. Guardrails word filters
- B. Provisioned Throughput
- C. Knowledge Bases chunking
- D. Prompt Management versions
Show answer and explanation
Answer: D. Domain 3: Foundation model applications. Prompt Management stores immutable prompt versions, so applications can point back to an earlier version.
Question 3. A company’s GenAI tool sometimes cites research papers that don’t exist. Which disadvantage is this?
- A. Latency
- B. Hallucination
- C. Overprovisioning
- D. Token caching
Show answer and explanation
Answer: B. Domain 2: GenAI fundamentals. Hallucination produces fabricated content presented as fact.
Question 4. A product catalog changes every hour, and a shopping assistant must always use current prices. Which approach is best?
- A. Fine-tune the model every hour
- B. Pre-train a new model
- C. RAG that retrieves current catalog data at query time
- D. Raise the temperature
Show answer and explanation
Answer: C. Domain 3: Foundation model applications. RAG pulls fresh data at query time. Retraining hourly would be slow and expensive.
Question 5. A company wants its developers to invoke only two approved foundation models in Amazon Bedrock and no others. What is the best control?
- A. An IAM policy that allows invoke actions only on those model ARNs
- B. An Amazon CloudFront distribution
- C. AWS Budgets alerts
- D. A higher temperature
Show answer and explanation
Answer: A. Domain 5: Security & governance. IAM policies enforce least privilege by restricting which model resources a principal can call.
Question 6. A factory uses cameras and AI to spot scratches on products moving along an assembly line. Which field of AI is this?
- A. Natural language processing
- B. Computer vision
- C. Speech recognition
- D. Reinforcement learning
Show answer and explanation
Answer: B. Domain 1: AI & ML fundamentals. Computer vision interprets images and video, including defect detection.
Question 7. A company wants RAG answers that use relationships between entities, such as “which suppliers serve plants affected by this recall.” Which vector-capable store is designed for this?
- A. Amazon Neptune
- B. Amazon S3 Glacier
- C. Amazon ElastiCache
- D. AWS Artifact
Show answer and explanation
Answer: A. Domain 3: Foundation model applications. Amazon Neptune combines graph relationships with vector search (GraphRAG).
Question 8. A prompt asks: “Translate this sentence into French,” with no examples. Which technique is this?
- A. Few-shot
- B. Chain-of-thought
- C. Single-shot
- D. Zero-shot
Show answer and explanation
Answer: D. Domain 3: Foundation model applications. Zero-shot. The task is given with no examples.
Question 9. A marketing team writes one reusable prompt with placeholders for {product_name} and {audience} and fills them in for each campaign. What is this?
- A. A prompt template
- B. A negative prompt
- C. Model distillation
- D. A stop sequence
Show answer and explanation
Answer: A. Domain 3: Foundation model applications. A prompt template gives consistent, reusable prompts with variables.
Question 10. An auditor asks where a model’s training data originally came from and every transformation applied to it. Which concept answers this?
- A. Data lineage
- B. Prompt caching
- C. Tokenization
- D. Top K sampling
Show answer and explanation
Answer: A. Domain 5: Security & governance. Data lineage tracks data origins and transformations through the pipeline.
Question 11. A dataset contains product photos, customer review text, and audio clips. How is this data best described?
- A. Structured tabular data
- B. Time-series data
- C. Unstructured data
- D. Labeled numeric data
Show answer and explanation
Answer: C. Domain 1: AI & ML fundamentals. Unstructured data doesn’t fit neatly into rows and columns. Images, free text, and audio are classic examples.
Question 12. A voice assistant works well for native speakers but often misunderstands users with regional accents. Which dimension needs improvement?
- A. Encryption
- B. Inclusivity
- C. Latency
- D. Token efficiency
Show answer and explanation
Answer: B. Domain 4: Responsible AI. Inclusivity means serving diverse users, including different accents, languages, and abilities.
Question 13. Which choice best reduces the environmental footprint of running large-scale inference on AWS?
- A. Using purpose-built, energy-efficient chips such as AWS Inferentia
- B. Always running the largest model available
- C. Duplicating every request across Regions
- D. Retraining the model daily from scratch
Show answer and explanation
Answer: A. Domain 4: Responsible AI. Inferentia (inference) and Trainium (training) deliver better performance per watt, supporting sustainability.
Question 14. Before using customer support transcripts to fine-tune a model, a company replaces names and phone numbers with placeholder tokens. What is this?
- A. Model distillation
- B. Chunking
- C. A privacy-enhancing technique (data masking/pseudonymization)
- D. Batch inference
Show answer and explanation
Answer: C. Domain 5: Security & governance. Masking and pseudonymization are privacy-enhancing technologies that cut exposure of personal data.
Question 15. A credit card company wants to flag unusual transactions that don’t match normal patterns, without labeled fraud examples. Which approach fits?
- A. Supervised regression
- B. Unsupervised anomaly detection
- C. Text-to-speech
- D. Machine translation
Show answer and explanation
Answer: B. Domain 1: AI & ML fundamentals. Anomaly detection is an unsupervised technique that finds outliers without labels.
Question 16. (Multi-select) Which TWO are common GenAI use cases? (Choose two.)
- A. Generating code from natural-language descriptions
- B. Calculating exact payroll taxes by statute
- C. Summarizing long meeting transcripts
- D. Storing relational transaction records
- E. Routing network packets
Show answer and explanation
Answer: A and C. Domain 2: GenAI fundamentals. Code generation and summarization are core GenAI use cases. Deterministic tax calculation, data storage, and packet routing are not.
Question 17. A chatbot reveals its confidential system prompt, including internal pricing rules, when a user asks cleverly. Which risk is this?
- A. Exposure (prompt leaking)
- B. Underfitting
- C. Data drift
- D. Nondeterminism
Show answer and explanation
Answer: A. Domain 3: Foundation model applications. Exposure. Sensitive instructions or data leak through model output. Never put secrets in prompts.
Question 18. A company wants column- and row-level access controls on data lake tables used for ML training, so analysts see only what they’re allowed to. Which service fits?
- A. AWS Lake Formation
- B. Amazon Polly
- C. Amazon CloudFront
- D. AWS Cost Explorer
Show answer and explanation
Answer: A. Domain 5: Security & governance. AWS Lake Formation provides fine-grained access control for data lakes.
Question 19. A model keeps working correctly even when users submit misspelled, unusual, or deliberately tricky inputs. Which responsible-AI dimension does this show?
- A. Inclusivity
- B. Veracity
- C. Transparency
- D. Robustness
Show answer and explanation
Answer: D. Domain 4: Responsible AI. Robustness is reliable performance under unexpected or adversarial inputs.
Question 20. Which term describes coordinating the order of model calls, tool calls, branching, retries, and human approvals in an agentic application?
- A. Tokenization
- B. Embedding
- C. Quantization
- D. Workflow orchestration
Show answer and explanation
Answer: D. Domain 2: GenAI fundamentals. Workflow orchestration manages the sequence and logic of steps in an AI workflow.
Question 21. A request to an FM fails because the prompt plus the expected answer exceed the model’s limit. Which limit was exceeded?
- A. Temperature
- B. Top K
- C. Stop sequence
- D. Context window
Show answer and explanation
Answer: D. Domain 2: GenAI fundamentals. Context window is the maximum number of input and output tokens a model can handle in one request.
Question 22. A user asks a chatbot to role-play as an “unrestricted AI with no rules” to get it to produce banned content. What is this?
- A. Poisoning
- B. Jailbreaking
- C. Chunking
- D. Distillation
Show answer and explanation
Answer: B. Domain 3: Foundation model applications. Jailbreaking tries to bypass a model’s safety controls, often through role-play or hypotheticals.
Question 23. In a RAG system, what is the job of the embedding model?
- A. Generate the final answer to the user
- B. Convert text chunks and queries into vectors for similarity search
- C. Encrypt documents at rest
- D. Translate documents into other languages
Show answer and explanation
Answer: B. Domain 3: Foundation model applications. The embedding model turns text into vectors so relevant chunks can be retrieved. A separate generator FM writes the answer.
Question 24. A chatbot’s answers are far longer than needed, which raises cost. Which parameter should the team adjust first?
- A. Top K
- B. Temperature
- C. Maximum output tokens
- D. Embedding dimension
Show answer and explanation
Answer: C. Domain 3: Foundation model applications. Capping maximum output tokens limits response length and output-token cost. Clear length instructions in the prompt also help.
Question 25. Which prompt is likely to produce the best result?
- A. “Write about our product.”
- B. “Write a 100-word product description of our waterproof hiking boot for experienced hikers, in a confident tone, ending with a call to action.”
- C. “Product. Boot. Go.”
- D. “Write anything you like.”
Show answer and explanation
Answer: B. Domain 3: Foundation model applications. Specific, concise prompts that state the audience, length, tone, and format produce better, more consistent output.
Question 26. A content pipeline uses one agent to research, then passes results to a second agent to draft, then to a third to edit. Which multi-agent pattern is this?
- A. Supervisor
- B. Swarm
- C. Sequential (pipeline)
- D. Parallel
Show answer and explanation
Answer: C. Domain 2: GenAI fundamentals. Sequential. Agents hand off work in a fixed order.
Question 27. An attacker uploads documents full of false information into a company’s shared knowledge base so the RAG assistant repeats them. Which risk is this?
- A. Exposure
- B. Hijacking
- C. Poisoning
- D. Overfitting
Show answer and explanation
Answer: C. Domain 3: Foundation model applications. Poisoning corrupts training data or knowledge sources to manipulate outputs.
Question 28. An HR assistant must answer leave-policy questions in strict accordance with written rules, and the company wants mathematical-logic verification that answers comply. Which Guardrails feature fits?
- A. Automated Reasoning checks
- B. Word filters
- C. Denied topics
- D. Prompt caching
Show answer and explanation
Answer: A. Domain 4: Responsible AI. Automated Reasoning checks validate responses against formal rules derived from policy documents.
Question 29. A real estate firm wants to predict the sale price of a house in dollars. Which technique applies?
- A. Binary classification
- B. Clustering
- C. Regression
- D. Dimensionality reduction
Show answer and explanation
Answer: C. Domain 1: AI & ML fundamentals. Regression predicts a continuous numeric value.
Question 30. Which stage of the FM lifecycle trains a model on massive unlabeled data using self-supervised learning?
- A. Deployment
- B. Feedback
- C. Pre-training
- D. Evaluation
Show answer and explanation
Answer: C. Domain 2: GenAI fundamentals. Pre-training is self-supervised learning on huge unlabeled datasets, which is why it is so expensive.
Question 31. A news site wants to offer an audio version of every article read in a natural-sounding voice. Which service should it use?
- A. Amazon Transcribe
- B. Amazon Lex
- C. Amazon Translate
- D. Amazon Polly
Show answer and explanation
Answer: D. Domain 1: AI & ML fundamentals. Amazon Polly converts text to lifelike speech.
Question 32. A company exposes its internal inventory database to AI agents through a standard interface that any compatible agent can discover and use. What has it built?
- A. A diffusion model
- B. A vector index
- C. A model card
- D. An MCP server
Show answer and explanation
Answer: D. Domain 2: GenAI fundamentals. An MCP server exposes tools and data to agents through the Model Context Protocol.
Question 33. A data team needs a searchable inventory of all datasets in its S3 data lake, with schemas and metadata. Which service fits?
- A. Amazon Lex
- B. AWS Glue Data Catalog
- C. Amazon Rekognition
- D. AWS KMS
Show answer and explanation
Answer: B. Domain 5: Security & governance. AWS Glue Data Catalog is a central metadata repository supporting data cataloging and discovery.
Question 34. Which responsible-AI dimension focuses on outputs being truthful and factually correct?
- A. Veracity
- B. Controllability
- C. Inclusivity
- D. Sustainability
Show answer and explanation
Answer: A. Domain 4: Responsible AI. Veracity means truthfulness and accuracy of outputs.
Question 35. A team adds 20 long examples to every prompt instead of fine-tuning. What is the main cost tradeoff of this in- context learning approach?
- A. It requires Provisioned Throughput
- B. Every request carries many more input tokens, raising per-call cost and latency
- C. It permanently changes model weights
- D. It can’t be used with Amazon Bedrock
Show answer and explanation
Answer: B. Domain 3: Foundation model applications. In-context learning avoids training cost but increases token usage on every call. At high volume, fine-tuning may become cheaper.
Question 36. Data sent between an application and Amazon Bedrock must be protected from interception. Which control applies?
- A. Encryption at rest with S3 Glacier
- B. Data residency
- C. Encryption in transit using TLS
- D. Prompt templates
Show answer and explanation
Answer: C. Domain 5: Security & governance. Encryption in transit (TLS) protects data moving over the network. Encryption at rest protects stored data.
Question 37. A single FM drafts emails, summarizes reports, and answers HR questions without separate training for each task. Which GenAI advantage does this show?
- A. Adaptability
- B. Determinism
- C. Interpretability
- D. Low compute needs
Show answer and explanation
Answer: A. Domain 2: GenAI fundamentals. Adaptability. One foundation model can handle many tasks through prompting.
Question 38. A model gives poor results on both training data and test data. What is the most likely problem?
- A. Underfitting
- B. Overfitting
- C. Too much training data
- D. Excessive regularization was removed
Show answer and explanation
Answer: A. Domain 1: AI & ML fundamentals. Underfitting. The model is too simple to capture the pattern (high bias), so it does poorly everywhere.
Question 39. During an agent’s run, the FM decides to call a “get_weather” function with a city name, and the application runs it and returns the result. What is this?
- A. Tool usage (function calling)
- B. Fine-tuning
- C. Chunking
- D. Pre-training
Show answer and explanation
Answer: A. Domain 2: GenAI fundamentals. Tool usage. The model selects a tool and its arguments; the application executes it and feeds back the result.
Question 40. Under typical token-based pricing in Amazon Bedrock, which statement is usually true?
- A. Output tokens cost more than input tokens
- B. Input and output tokens are free under 1 million per day
- C. Only output tokens are billed
- D. Pricing depends on the number of IAM users
Show answer and explanation
Answer: A. Domain 2: GenAI fundamentals. Most models charge separately for input and output tokens, and output tokens are generally priced higher.
Question 41. A logistics company trains software to optimize warehouse robot routes by rewarding efficient paths and penalizing collisions. Which learning type is this?
- A. Supervised learning
- B. Unsupervised learning
- C. Reinforcement learning
- D. Transfer learning
Show answer and explanation
Answer: C. Domain 1: AI & ML fundamentals. Reinforcement learning learns through rewards and penalties from interacting with an environment.
Question 42. Which inference parameter restricts the model to the smallest set of likely next tokens whose combined probability reaches a threshold?
- A. Temperature
- B. Max tokens
- C. Stop sequence
- D. Top P
Show answer and explanation
Answer: D. Domain 3: Foundation model applications. Top P (nucleus sampling) limits choices to tokens whose cumulative probability reaches P.
Question 43. A model that was fair at launch begins showing different approval rates across groups six months later as real-world data shifts. Which tool detects this in production?
- A. AWS Artifact
- B. Amazon Polly
- C. AWS Budgets
- D. Amazon SageMaker Model Monitor (bias drift)
Show answer and explanation
Answer: D. Domain 4: Responsible AI. Model Monitor, integrated with Clarify, tracks bias drift in deployed models over time.
Question 44. A small business sells 20 products and wants AI to forecast demand. Building and maintaining the model would cost more than the expected savings. What should it do?
- A. Build a custom deep learning model anyway
- B. Reconsider AI, because the cost-benefit analysis doesn’t support it
- C. Use reinforcement learning
- D. Pre-train a foundation model
Show answer and explanation
Answer: B. Domain 1: AI & ML fundamentals. AI isn’t appropriate when costs exceed the benefit. A simpler method, such as a spreadsheet or rules, may be better.
Question 45. In a vector database, how are documents most similar in meaning to a query usually found?
- A. Exact keyword matching only
- B. Measuring distance or cosine similarity between embedding vectors
- C. Sorting by file size
- D. Random sampling
Show answer and explanation
Answer: B. Domain 2: GenAI fundamentals. Semantic search compares embedding vectors with similarity measures such as cosine similarity.
Question 46. (Multi-select) Which TWO are good business applications for AI agents? (Choose two.)
- A. Processing an insurance claim end to end by checking policies, requesting documents, and updating systems
- B. Storing data in cold archive
- C. Resolving IT help-desk tickets by resetting passwords and opening tickets
- D. Encrypting S3 buckets
- E. Displaying a static web page
Show answer and explanation
Answer: A and C. Domain 3: Foundation model applications. Agents shine in multi-step tasks that need reasoning plus actions across systems.
Question 47. A company doesn’t want its GenAI assistant to ever mention competitor brand names. Which Bedrock Guardrails feature is simplest for this?
- A. Contextual grounding check
- B. Automated Reasoning check
- C. Word filter
- D. Image content filter
Show answer and explanation
Answer: C. Domain 4: Responsible AI. Word filters block specific words or phrases, such as competitor names or profanity.
Question 48. Which statement best describes a neural network?
- A. A set of hand-written if-then rules
- B. Layers of interconnected nodes that learn weights from data
- C. A relational database schema
- D. A statistical sampling method
Show answer and explanation
Answer: B. Domain 1: AI & ML fundamentals. Neural networks are layers of connected nodes whose weights are learned during training. Deep learning uses many such layers.
Question 49. An application sends the same long system prompt and reference document with every request. Which feature reduces cost and latency for that repeated content?
- A. Higher temperature
- B. Prompt caching
- C. Larger max tokens
- D. Model distillation
Show answer and explanation
Answer: B. Domain 2: GenAI fundamentals. Prompt caching reuses processed prompt prefixes, cutting input cost and time to first token.
Question 50. A social media platform must automatically detect inappropriate images in user uploads. Which service fits with the least effort?
- A. Amazon Rekognition
- B. Amazon Comprehend
- C. Amazon Polly
- D. Amazon Personalize
Show answer and explanation
Answer: A. Domain 1: AI & ML fundamentals. Amazon Rekognition includes pre-trained content moderation for images and video.
Mock Exam 2 answer key
| Q | Answer | Domain |
|---|---|---|
| 1 | D | Security & governance |
| 2 | D | Foundation model applications |
| 3 | B | GenAI fundamentals |
| 4 | C | Foundation model applications |
| 5 | A | Security & governance |
| 6 | B | AI & ML fundamentals |
| 7 | A | Foundation model applications |
| 8 | D | Foundation model applications |
| 9 | A | Foundation model applications |
| 10 | A | Security & governance |
| 11 | C | AI & ML fundamentals |
| 12 | B | Responsible AI |
| 13 | A | Responsible AI |
| 14 | C | Security & governance |
| 15 | B | AI & ML fundamentals |
| 16 | A and C | GenAI fundamentals |
| 17 | A | Foundation model applications |
| 18 | A | Security & governance |
| 19 | D | Responsible AI |
| 20 | D | GenAI fundamentals |
| 21 | D | GenAI fundamentals |
| 22 | B | Foundation model applications |
| 23 | B | Foundation model applications |
| 24 | C | Foundation model applications |
| 25 | B | Foundation model applications |
| 26 | C | GenAI fundamentals |
| 27 | C | Foundation model applications |
| 28 | A | Responsible AI |
| 29 | C | AI & ML fundamentals |
| 30 | C | GenAI fundamentals |
| 31 | D | AI & ML fundamentals |
| 32 | D | GenAI fundamentals |
| 33 | B | Security & governance |
| 34 | A | Responsible AI |
| 35 | B | Foundation model applications |
| 36 | C | Security & governance |
| 37 | A | GenAI fundamentals |
| 38 | A | AI & ML fundamentals |
| 39 | A | GenAI fundamentals |
| 40 | A | GenAI fundamentals |
| 41 | C | AI & ML fundamentals |
| 42 | D | Foundation model applications |
| 43 | D | Responsible AI |
| 44 | B | AI & ML fundamentals |
| 45 | B | GenAI fundamentals |
| 46 | A and C | Foundation model applications |
| 47 | C | Responsible AI |
| 48 | B | AI & ML fundamentals |
| 49 | B | GenAI fundamentals |
| 50 | A | AI & ML fundamentals |
Score yourself by domain
| Domain | Questions | Review | Your score |
|---|---|---|---|
| 1. AI & ML fundamentals | 6, 11, 15, 29, 31, 38, 41, 44, 48, 50 | Chapter 1 | ___ / 10 |
| 2. GenAI fundamentals | 3, 16, 20, 21, 26, 30, 32, 37, 39, 40, 45, 49 | Chapter 2 | ___ / 12 |
| 3. Foundation model applications | 2, 4, 7, 8, 9, 17, 22, 23, 24, 25, 27, 35, 42, 46 | Chapter 3 | ___ / 14 |
| 4. Responsible AI | 12, 13, 19, 28, 34, 43, 47 | Chapter 4 | ___ / 7 |
| 5. Security & governance | 1, 5, 10, 14, 18, 33, 36 | Chapter 5 | ___ / 7 |
What your score means
| Score | Readiness |
|---|---|
| 45–50 | Ready. Book the exam. |
| 40–44 | Nearly ready. Review the explanation for every miss and retest in a few days. |
| 35–39 | Borderline. Reread the chapters for your two weakest domains. |
| Below 35 | Not yet ready. Work through the study guide again, focusing on Chapters 2 and 3. |
← Previous: AWS AI Practitioner (AIF-C01) Mock Exam 1: 50 Practice Questions with Answers
Next: AWS AI Practitioner (AIF-C01) Mock Exam 3: 50 Practice Questions with Answers →
This is an independent study guide, not produced, endorsed or sponsored by Amazon Web Services. Practice questions are original and aren’t actual exam questions. AWS services change often, so check the AWS documentation and the official AIF-C01 exam guide before you rely on details here.