CertSafari

    Free AWS Certified AI Practitioner (AIF-C01) Sample Questions

    35 free sample questions from our bank of 344+, covering every exam domain, with answers and detailed explanations. Updated August 2026.

    Domain 1: Fundamentals of AI and ML

    Subdomain 1.1: Explain basic AI concepts and terminologies.

    1.A manufacturer installs cameras above an assembly line and wants a system that scans each captured photo of a circuit board to automatically flag scratches, missing components, or misalignment before shipping. Which AI capability should the manufacturer use?

    1. A.Computer vision, because it analyzes pixel data in images to detect visual defects and anomalies automatically.
    2. B.Natural language processing, because it interprets the technician notes attached to each shipped product.
    3. C.Time-series forecasting, because it predicts defect rates for the next quarter based on historical trends.
    4. D.Speech recognition, because it converts the factory floor audio recordings into searchable text transcripts.
    Show answer & explanation

    Correct answer: AComputer vision, because it analyzes pixel data in images to detect visual defects and anomalies automatically.

    • A. This is correct because computer vision is the AI field that analyzes and interprets visual data such as photographs, making it suited to detecting scratches, missing parts, and misalignment in images.
    • B. This is incorrect because the scenario is based on analyzing photographs, not written technician notes, so a text-focused capability does not address the task.
    • C. This is incorrect because the manufacturer needs to flag defects in each individual photo as it is captured, not forecast an aggregate defect rate over a future time period.
    • D. This is incorrect because the input described is image data from cameras, not audio recordings, so converting speech to text does not apply here.

    Subdomain 1.1: Explain basic AI concepts and terminologies.

    2.A company aggregates two datasets: a spreadsheet with defined columns for customer ID, purchase date, and amount, and a folder of free-form written product review text submitted by customers with no fixed structure. Which two data types are being described, respectively? (Select TWO.)(Select 2)

    1. A.Tabular data
    2. B.Unstructured text data
    3. C.Time-series data
    4. D.Labeled data
    5. E.Image data
    Show answer & explanation

    Correct answers: A, BTabular data; Unstructured text data

    • A. This is correct because tabular data is organized into rows and defined columns, matching the spreadsheet with customer ID, purchase date, and amount fields.
    • B. This is correct because unstructured text data has no fixed fields or schema, matching the free-form written product review text submitted by customers.
    • C. This is incorrect for this scenario because time-series data is defined by its ordering along a time dimension as the primary organizing factor, which is not how either dataset is described here.
    • D. This is incorrect for this scenario because labeled data specifically refers to examples paired with a known target or output value, and neither dataset is described as having such labels attached.
    • E. This is incorrect for this scenario because image data consists of pixel-based visual files, and neither dataset described here contains images.

    Subdomain 1.2: Identify practical use cases for AI.

    3.A finance team needs an exact, guaranteed calculation of a customer's account balance after a transaction, with no possibility of variation. Why is an ML model not appropriate for this task?

    1. A.The task requires a deterministic outcome, and ML models produce probabilistic predictions instead of guaranteed exact results
    2. B.ML models cannot process any numeric or financial data types
    3. C.Account balance calculations require more storage than any ML model can provide
    4. D.ML models are only capable of analyzing unstructured text and cannot handle structured data
    Show answer & explanation

    Correct answer: AThe task requires a deterministic outcome, and ML models produce probabilistic predictions instead of guaranteed exact results

    • A. Balance arithmetic is a deterministic rule-based calculation with one correct answer, and ML models instead output probabilistic predictions that approximate an outcome rather than guarantee it.
    • B. ML models routinely process numeric and financial data, such as fraud scores or credit risk features, so this is not the limiting factor here.
    • C. Storage capacity is unrelated to why ML is unsuitable; the mismatch is about deterministic versus probabilistic outputs, not resource limits.
    • D. ML models regularly work with structured, tabular data such as transaction records, so this claim about text-only processing is inaccurate.

    Subdomain 1.3: Describe the AI/ML development lifecycle.

    4.A data science team is testing several algorithms and hyperparameter combinations before committing to a production model, tracking each run's metrics for comparison. Which MLOps concept does this describe?

    1. A.Experimentation, the practice of iterating on models and configurations to find the best candidate
    2. B.Model monitoring, the practice of watching a live model's predictions for accuracy over time
    3. C.Technical debt management, the practice of refactoring outdated pipeline code before release
    4. D.Production readiness, the practice of certifying a model meets operational requirements before launch
    Show answer & explanation

    Correct answer: AExperimentation, the practice of iterating on models and configurations to find the best candidate

    • A. Trying multiple algorithms and hyperparameters while tracking metrics for comparison is the definition of experimentation, an MLOps concept practiced before a model is finalized.
    • B. Model monitoring applies to a model already running in production, not to comparing candidate models before one has been selected.
    • C. Technical debt management addresses accumulated shortcuts in code or process, which is not what is being described when comparing candidate models.
    • D. Production readiness is a certification step that happens after a model is chosen, not the process of comparing multiple candidates.

    Domain 1.0: Fundamentals of AI and ML

    1.1 Explain basic AI concepts and terminologies.

    5.An airline generates personalized seat upgrade offers for customers browsing its website and must return a prediction within milliseconds of the request. Which type of inferencing best fits this requirement?

    1. A.Real-time inferencing, because it returns predictions for individual requests with very low latency as they arrive.
    2. B.Batch inferencing, because it groups many requests together and returns predictions on a fixed periodic schedule.
    3. C.Training inferencing, because it recalculates model weights each time a customer loads the website.
    4. D.Offline inferencing, because it stores predictions overnight for the airline to review the next business day.
    Show answer & explanation

    Correct answer: AReal-time inferencing, because it returns predictions for individual requests with very low latency as they arrive.

    • A. Real-time inferencing is correct because it is designed to serve predictions for single incoming requests with millisecond-scale latency, matching the airline's need for an instant offer.
    • B. Batch inferencing processes large groups of records together on a schedule and is not suited to returning a prediction the moment a single customer loads a page.
    • C. There is no inferencing mode called 'training inferencing'; training adjusts model weights and is a separate phase that happens before inferencing, not on every page load.
    • D. Offline or overnight processing introduces delay that does not meet a millisecond response requirement for an individual browsing customer.

    1.2 Identify practical use cases for AI.

    6.Which AWS AI service uses computer vision to detect objects, scenes, and unsafe content within images and videos?

    1. A.Amazon Textract
    2. B.Amazon Rekognition
    3. C.Amazon Comprehend
    4. D.Amazon Polly
    Show answer & explanation

    Correct answer: BAmazon Rekognition

    • A. Amazon Textract extracts printed and handwritten text, forms, and tables from scanned documents; it does not analyze image content such as objects or scenes.
    • B. Amazon Rekognition is correct because it applies computer vision to identify objects, scenes, activities, and inappropriate content in images and video.
    • C. Amazon Comprehend performs natural language processing on text, such as sentiment and entity extraction, rather than analyzing image or video content.
    • D. Amazon Polly converts written text into lifelike spoken audio and has no capability for analyzing image or video content.

    1.3 Describe the ML development lifecycle.

    7.A company evaluating a binary classifier for loan default prediction wants a single metric that balances both precision and recall, since the dataset has far more non-default cases than default cases. Which metric should the team prioritize?

    1. A.F1 score
    2. B.Overall accuracy
    3. C.Development cost
    4. D.Customer feedback score
    Show answer & explanation

    Correct answer: AF1 score

    • A. F1 score is correct because it is the harmonic mean of precision and recall, making it a more informative single metric than accuracy when classes are imbalanced.
    • B. Overall accuracy is incorrect because with a highly imbalanced dataset, a model can achieve high accuracy simply by predicting the majority class and still miss most true defaults.
    • C. Development cost is incorrect because it is a business metric reflecting spending on building the model, not a measure of classification performance.
    • D. Customer feedback score is incorrect because it reflects subjective user satisfaction rather than the statistical balance of precision and recall for a classifier.

    Domain 2: Fundamentals of GenAI

    Subdomain 2.1: Explain the basic concepts of generative AI (GenAI).

    8.A support team's chatbot keeps returning inconsistent, overly long answers. Without retraining or fine-tuning the model, the team rewrites its instructions to specify the desired tone, format, and length, and adds an example of an ideal response. What practice does this describe?

    1. A.Fine-tuning, which updates the model's weights using a labeled dataset of ideal responses
    2. B.Model distillation, which trains a smaller model to mimic the outputs of the larger model
    3. C.Data selection, which curates the training corpus used during the model's pre-training phase
    4. D.Prompt engineering, which crafts and refines instructions and examples to guide the model's output
    Show answer & explanation

    Correct answer: DPrompt engineering, which crafts and refines instructions and examples to guide the model's output

    • A. Fine-tuning changes the model's underlying weights through additional training, but the scenario explicitly avoids retraining and only adjusts the instructions given to the model.
    • B. Distillation trains a separate, smaller model to mimic a larger one's behavior; it is a training technique, not a way of rewording instructions to an existing deployed model.
    • C. Data selection concerns choosing datasets before pre-training begins, which has no connection to adjusting a chatbot's instructions at inference time.
    • D. This is correct: prompt engineering refines the wording, examples, and structure of instructions given to a model to steer its output without changing its weights.

    Subdomain 2.1: Explain the basic concepts of generative AI (GenAI).

    9.What best describes the token-based pricing model commonly used for foundation model inference?

    1. A.Cost is a flat monthly fee that does not vary with how much the model is used
    2. B.Cost is calculated based on the number of input and output tokens processed for each request
    3. C.Cost is based only on the number of API calls made, regardless of request or response size
    4. D.Cost is determined by the physical storage size of the foundation model's weight files
    Show answer & explanation

    Correct answer: BCost is calculated based on the number of input and output tokens processed for each request

    • A. A flat, usage-independent monthly fee describes a subscription model, not the per-token metering that most foundation model inference pricing actually uses.
    • B. This is correct: token-based pricing charges based on the number of input tokens sent and output tokens generated, so longer prompts and responses cost more.
    • C. Charging strictly per API call regardless of size would ignore the actual amount of text processed, which is not how token-based pricing works.
    • D. The size of the model's stored weight files reflects infrastructure hosting costs, not the per-request charge tied to the tokens processed during inference.

    Subdomain 2.2: Understand the capabilities and limitations of GenAI for solving business problems.

    10.A product team deployed a generative AI writing assistant and wants to measure whether it is actually worth the ongoing subscription cost. Which metric would most directly answer that business question?

    1. A.Return on investment (ROI)
    2. B.Number of model parameters
    3. C.Vector embedding dimensionality
    4. D.Token vocabulary size
    Show answer & explanation

    Correct answer: AReturn on investment (ROI)

    • A. Return on investment is correct because it directly compares the value or savings generated by the tool against its cost, answering whether the subscription is worthwhile.
    • B. The number of model parameters is a technical architecture detail that does not measure business value or cost-effectiveness.
    • C. Vector embedding dimensionality is a technical property of how text is represented internally and has no direct link to cost justification.
    • D. Token vocabulary size describes how many distinct tokens a model recognizes, which does not indicate whether the tool delivers business value relative to cost.

    Subdomain 2.3: Describe AWS infrastructure and technologies for building GenAI applications.

    11.A retail company wants to quickly add a natural-language customer support chatbot to their website by calling a foundation model through a simple API, without provisioning any servers or managing GPU clusters. Which AWS service should they use?

    1. A.Amazon SageMaker AI
    2. B.Amazon Bedrock
    3. C.AWS Lambda
    4. D.Amazon EC2
    Show answer & explanation

    Correct answer: BAmazon Bedrock

    • A. SageMaker AI centers on building, training, and hosting custom machine learning models with more infrastructure configuration, which is more than this team needs for calling a pretrained foundation model.
    • B. This is correct because it is a fully managed, serverless service that provides API access to foundation models without any server or cluster management.
    • C. This is a general-purpose serverless compute service for running code in response to events; it is not itself a source of foundation models.
    • D. This requires provisioning and managing virtual servers, which does not match the serverless, no-infrastructure requirement in the scenario.

    Subdomain 2.3: Describe AWS infrastructure and technologies for building GenAI applications.

    12.What best describes Strands Agents?

    1. A.An open-source SDK that lets developers build AI agents using a model-driven approach with only a few lines of code.
    2. B.A fully managed relational database engine used to store transactional agent conversation logs at scale.
    3. C.A proprietary GUI-only tool that requires no code but only supports a single hardcoded foundation model.
    4. D.A network load balancer service that distributes incoming HTTP requests across a fleet of EC2 instances.
    Show answer & explanation

    Correct answer: AAn open-source SDK that lets developers build AI agents using a model-driven approach with only a few lines of code.

    • A. This is correct because it is an open-source SDK that simplifies building AI agents through a model-driven approach with minimal code.
    • B. This describes a managed database engine for storing transactional data, which is not what this lightweight agent-building SDK provides.
    • C. This describes a no-code, single-model tool, which contradicts the SDK's code-based, model-flexible design.
    • D. This describes a load balancing service for distributing network traffic, which is unrelated to building AI agents.

    Domain 2.0: Fundamentals of GenAI

    2.1 Explain the basic concepts of GenAI.

    13.A team building a customer-support chatbot is loading hundreds of long PDF manuals into a knowledge base. Before creating embeddings, they split each manual into smaller passages of a few paragraphs each so that relevant sections can be retrieved independently. What is this preprocessing step called?

    1. A.Chunking
    2. B.Fine-tuning
    3. C.Tokenization
    4. D.Diffusion
    Show answer & explanation

    Correct answer: AChunking

    • A. Splitting long documents into smaller, retrievable passages before embedding them is called chunking, and it allows a retrieval system to return only the most relevant section instead of an entire manual.
    • B. Fine-tuning refers to further training a foundation model's weights on labeled examples, which is a separate step from breaking documents into passages.
    • C. Tokenization is the process of breaking text into the smaller units (tokens) a model uses internally to process input, which is a different and more granular operation than splitting a manual into paragraph-level passages.
    • D. Diffusion describes an image-generation technique that iteratively removes noise to create pictures, which has no relationship to document preprocessing for a knowledge base.

    2.2 Understand the capabilities and limitations of GenAI for solving business problems.

    14.A legal team asks a generative AI assistant to summarize case law and cites a court ruling that does not exist. Which limitation of generative AI does this describe?

    1. A.Hallucination
    2. B.Latency
    3. C.Token pricing
    4. D.Multi-modality
    Show answer & explanation

    Correct answer: AHallucination

    • A. A hallucination occurs when a generative model produces confident but fabricated or factually incorrect content, such as citing a court ruling that never existed, and it is a well-known limitation of GenAI.
    • B. Latency refers to the response time of a model and has no bearing on whether the content it generates is factually accurate.
    • C. Token pricing describes how usage is billed based on input and output tokens and does not explain fabricated content in a response.
    • D. Multi-modality refers to a model's ability to process multiple input or output types such as text and images, which is unrelated to generating a false citation.

    2.3 Describe AWS infrastructure and technologies for building GenAI applications.

    15.A data science team wants to browse a catalog of pretrained, open-source models, incrementally fine-tune a selected model, and deploy it directly from within SageMaker Studio. Which capability should the team use?

    1. A.Amazon Bedrock Data Automation
    2. B.Amazon SageMaker JumpStart
    3. C.Amazon Q Developer
    4. D.Amazon Bedrock Guardrails
    Show answer & explanation

    Correct answer: BAmazon SageMaker JumpStart

    • A. Bedrock Data Automation extracts structured insights from unstructured multimodal content such as documents and images, and does not provide a catalog of pretrained models to fine-tune within SageMaker Studio.
    • B. SageMaker JumpStart is correct because it provides pretrained, open-source models directly inside SageMaker Studio that can be incrementally trained, tuned, and deployed.
    • C. Amazon Q Developer is a coding assistant that helps write and explain code, not a catalog of pretrained models for fine-tuning inside SageMaker Studio.
    • D. Bedrock Guardrails applies content filtering policies to model input and output, and is unrelated to browsing or fine-tuning pretrained models in SageMaker Studio.

    2.3 Describe AWS infrastructure and technologies for building GenAI applications.

    16.Which of the following best describes a benefit that AWS infrastructure provides for organizations building generative AI applications?

    1. A.Applications inherit AWS data center security controls, encryption capabilities, and compliance certifications that support responsible and safe AI deployments.
    2. B.Applications automatically become compliant with every regulatory framework worldwide without any additional configuration by the customer.
    3. C.Applications are guaranteed to never produce biased or inaccurate outputs because AWS infrastructure filters all model responses.
    4. D.Applications receive unlimited free compute capacity for training foundation models as part of the AWS infrastructure benefit.
    Show answer & explanation

    Correct answer: AApplications inherit AWS data center security controls, encryption capabilities, and compliance certifications that support responsible and safe AI deployments.

    • A. This is correct because building on AWS infrastructure lets applications inherit data center security controls, encryption options, and compliance certifications that support responsible, safe, and secure GenAI deployments.
    • B. AWS infrastructure provides tools and certifications that help with compliance, but customers still share responsibility for configuring their applications to meet specific regulatory requirements.
    • C. AWS infrastructure does not guarantee bias-free or fully accurate model outputs; hallucinations and bias remain risks that require responsible AI practices to manage.
    • D. AWS infrastructure does not provide unlimited free compute; customers pay for the compute and inference resources they consume.

    Domain 3: Applications of Foundation Models

    Subdomain 3.1: Describe design considerations for applications that use foundation models (FMs).

    17.A development team is building a chatbot application on Amazon Bedrock that repeatedly sends the same long system prompt and reference document with every API call. Which foundation model selection criterion primarily addresses reducing the cost and latency of processing this repeated content?

    1. A.Model size
    2. B.Prompt caching
    3. C.Multi-lingual support
    4. D.Output length limit
    Show answer & explanation

    Correct answer: BPrompt caching

    • A. Model size refers to a model's parameter count and general capacity, not to how repeated prompt content is reprocessed on each call.
    • B. Prompt caching lets a model reuse the processed representation of an unchanged prompt prefix, so repeated system prompts and reference documents are not reprocessed on every call, cutting cost and latency.
    • C. Multi-lingual support describes how many languages a model handles well and has no bearing on reprocessing repeated content.
    • D. An output length limit caps how much text is generated in a response and does not affect the cost of reprocessing repeated input content.

    Subdomain 3.1: Describe design considerations for applications that use foundation models (FMs).

    18.An engineer increases the temperature inference parameter before generating marketing taglines with a foundation model. What effect does this change have on the model's output?

    1. A.Responses become more random and varied
    2. B.Responses become shorter
    3. C.Responses become more deterministic and repetitive
    4. D.Responses are translated into more languages
    Show answer & explanation

    Correct answer: AResponses become more random and varied

    • A. Raising the temperature parameter increases randomness in token selection, producing more varied and creative outputs, which suits generating diverse marketing taglines.
    • B. Temperature controls output randomness, not output length, so raising it does not shorten the generated text.
    • C. A higher temperature makes outputs less deterministic and less repetitive, which is the opposite of this effect.
    • D. Temperature has no effect on which languages a model can generate; that depends on the model's trained language capabilities.

    Subdomain 3.2: Choose effective prompt engineering techniques.

    19.An engineer discovers that a few-shot prompt template was edited by an unauthorized teammate who inserted several example input-output pairs containing biased and inaccurate answers. Deployed responses now reflect that bias. Which prompt engineering risk best describes this situation?

    1. A.Prompt exposure, where the prompt's internal instructions are leaked to unauthorized users
    2. B.Prompt hijacking, where user input at runtime overrides the original task instructions
    3. C.Prompt poisoning, where malicious or corrupted examples are inserted into the prompt to bias the model's output
    4. D.Jailbreaking, where crafted runtime input bypasses the model's safety guardrails
    Show answer & explanation

    Correct answer: CPrompt poisoning, where malicious or corrupted examples are inserted into the prompt to bias the model's output

    • A. Exposure is about instructions being leaked outward to users, not about examples being altered inward by an insider. The direction and mechanism of this scenario do not match exposure.
    • B. Hijacking happens through a user's runtime message overriding instructions during a conversation, not through pre-deployment edits to stored few-shot examples. This scenario occurred before any user interaction.
    • C. Poisoning describes exactly this situation: corrupted or biased example pairs were inserted into the prompt template itself, causing the model's future outputs to reflect that bias. The unauthorized edit to stored examples is the defining characteristic of poisoning.
    • D. Jailbreaking involves a user's runtime input crafted to bypass safety restrictions, not an unauthorized edit made to a stored prompt template. No safety guardrail was bypassed in this scenario.

    Subdomain 3.3: Describe the training and fine-tuning process for FMs.

    20.A retailer fine-tunes a customer service model almost entirely on English-language chat transcripts from one region, then deploys it globally and finds it performs poorly on non-English and region-specific queries. Which data preparation issue most directly caused this outcome?

    1. A.Insufficient data labeling across the transcripts used for fine-tuning
    2. B.A lack of representativeness in the training data across languages and regions
    3. C.Overly strict data governance controls applied to the training corpus
    4. D.Excessive reliance on reinforcement learning from human feedback during tuning
    Show answer & explanation

    Correct answer: BA lack of representativeness in the training data across languages and regions

    • A. Labeling accuracy affects whether examples have correct target outputs, but the described failure — poor performance on non-English and regional queries — stems from what languages and regions were included, not from mislabeled examples.
    • B. A training set drawn almost entirely from one language and region lacks representativeness, so the model never learned patterns needed for other languages or regional phrasing, which explains its poor global performance.
    • C. Strict governance controls affect data access and retention policies, not which languages or regions are represented in the dataset, so this would not directly cause the described performance gap.
    • D. The scenario does not mention any reinforcement learning process being used at all, so RLHF reliance cannot explain a language and region coverage gap in the fine-tuning data.

    Subdomain 3.4: Describe methods to evaluate FM performance.

    21.What is the primary purpose of using benchmark datasets to evaluate a foundation model?

    1. A.To measure model performance against a standardized, publicly available set of tasks so results can be compared across models.
    2. B.To generate synthetic training data that increases the size of the model's fine-tuning dataset.
    3. C.To encrypt model outputs before they are stored in an evaluation results bucket.
    4. D.To automatically deploy the best-performing model version to a production endpoint.
    Show answer & explanation

    Correct answer: ATo measure model performance against a standardized, publicly available set of tasks so results can be compared across models.

    • A. Standardized public task sets let teams compare a model's performance consistently against other models, which is the core purpose of benchmark datasets.
    • B. Benchmark datasets are used for evaluation, not to expand or generate fine-tuning training data.
    • C. Encrypting stored outputs is a data protection concern unrelated to the purpose of benchmark-based evaluation.
    • D. Benchmark datasets support scoring and comparison; they do not automatically trigger deployment decisions.

    Subdomain 3.4: Describe methods to evaluate FM performance.

    22.A team built a retrieval-augmented generation (RAG) application that answers questions using a company knowledge base. During evaluation, they find the generated answers are fluent but frequently unsupported by the retrieved documents. Which aspect of the RAG pipeline should the team focus on evaluating further?

    1. A.Whether the retrieved documents are relevant and sufficient to support the generated answer.
    2. B.Whether the foundation model's inference latency meets the application's response time target.
    3. C.Whether the vector database's storage costs stay within the allocated monthly budget.
    4. D.Whether the prompt template uses consistent formatting across all user requests.
    Show answer & explanation

    Correct answer: AWhether the retrieved documents are relevant and sufficient to support the generated answer.

    • A. Answers that are fluent but unsupported point directly to a retrieval quality problem, so evaluating whether retrieved documents actually back up the generated answer is the right focus.
    • B. Response time is a performance concern, not the cause of answers being fluent yet factually unsupported by retrieved content.
    • C. Storage cost is a budgeting concern unrelated to why generated answers lack grounding in retrieved documents.
    • D. Formatting consistency affects presentation, not whether the retrieved context actually supports the generated answer's claims.

    Domain 3.0: Applications of Foundation Models

    3.1 Describe design considerations for applications that use foundation models (FMs).

    23.Which AWS services can be used to store embeddings as the vector store for a Retrieval Augmented Generation solution built with Amazon Bedrock Knowledge Bases? (Select THREE.)(Select 3)

    1. A.Amazon OpenSearch Service
    2. B.Amazon Aurora
    3. C.Amazon Neptune
    4. D.AWS Lambda
    5. E.Amazon CloudFront
    6. F.Amazon Simple Notification Service
    Show answer & explanation

    Correct answers: A, B, CAmazon OpenSearch Service; Amazon Aurora; Amazon Neptune

    • A. Amazon OpenSearch Service provides vector search capabilities and is a supported vector store for Bedrock knowledge bases, making it correct for this scenario.
    • B. Amazon Aurora, through its PostgreSQL-Compatible edition with the pgvector extension, is a supported vector store for storing and querying embeddings in a Bedrock knowledge base, making it correct.
    • C. Amazon Neptune can store and query embeddings as a vector store, including graph-based retrieval through Neptune Analytics, making it correct for this scenario.
    • D. AWS Lambda is a serverless compute service used to run code in response to events, such as processing files or invoking APIs, and does not store or index vector embeddings, so it is incorrect.
    • E. Amazon CloudFront is a content delivery network that caches and serves content close to users, and it has no capability to store or query vector embeddings, so it is incorrect.
    • F. Amazon Simple Notification Service is a pub/sub messaging service for sending notifications between systems, and it does not provide vector storage or similarity search, so it is incorrect.

    3.2 Choose effective prompt engineering techniques.

    24.Which statement correctly distinguishes prompt poisoning from jailbreaking as risks in prompt engineering?

    1. A.Poisoning corrupts examples or data that shape a model's behavior, while jailbreaking uses crafted prompts to bypass a model's safety instructions at runtime.
    2. B.Poisoning uses crafted prompts to bypass a model's safety instructions at runtime, while jailbreaking corrupts examples or data that shape a model's behavior.
    3. C.Poisoning and jailbreaking both describe an attacker gaining direct access to a model's underlying weights and training infrastructure.
    4. D.Poisoning and jailbreaking both describe a model unintentionally revealing its confidential system prompt to a legitimate user.
    Show answer & explanation

    Correct answer: APoisoning corrupts examples or data that shape a model's behavior, while jailbreaking uses crafted prompts to bypass a model's safety instructions at runtime.

    • A. Prompt poisoning corrupts the examples, training data, or few-shot samples that influence a model's behavior, while jailbreaking crafts a runtime prompt designed to bypass the model's built-in safety instructions.
    • B. This reverses the two definitions; poisoning targets the data or examples shaping the model, and jailbreaking targets safety instructions at runtime, not the other way around.
    • C. Neither risk requires gaining direct access to a model's underlying weights or training infrastructure; both are achieved through manipulated inputs rather than infrastructure access.
    • D. Unintentional system prompt exposure describes prompt exposure, a separate risk from poisoning and jailbreaking, which involve corrupting inputs or bypassing safety behavior rather than accidental disclosure.

    3.3 Describe the training and fine-tuning process for FMs.

    25.A financial services firm takes a general-purpose foundation model and further trains it on a large collection of unlabeled financial filings and earnings call transcripts so it becomes fluent in financial terminology and context, without targeting one specific downstream task. Which fine-tuning method does this describe?

    1. A.Transfer learning, which takes a model trained for one task, such as image classification, and reuses it for an unrelated task in a different domain.
    2. B.Adapting the model for a specific domain, which further trains it on domain-specific text so it becomes more fluent in that field's language and context.
    3. C.Instruction tuning, which trains the model on paired instructions and responses so it follows explicit directions more reliably.
    4. D.Reinforcement learning from human feedback, which adjusts the model using a reward signal derived from human preference rankings of its outputs.
    Show answer & explanation

    Correct answer: BAdapting the model for a specific domain, which further trains it on domain-specific text so it becomes more fluent in that field's language and context.

    • A. This reuses a model across an unrelated task and modality, whereas the scenario keeps the same modality and instead builds deeper fluency within one field.
    • B. This is correct because further training a general-purpose model on a large body of domain-specific, unlabeled text so it becomes fluent in that field's language is exactly what adapting a model for a specific domain means.
    • C. This requires paired instructions and desired responses, but the scenario describes training on unlabeled filings and transcripts with no such paired examples.
    • D. This relies on human preference rankings of model outputs as a reward signal, which is not present in a scenario describing further training on unlabeled documents.

    3.4 Describe methods to evaluate FM performance.

    26.An engineering team is fine-tuning an FM for machine translation and needs a metric that scores how many n-grams in the machine-generated translation match n-grams in professionally translated reference sentences, with a penalty for overly short outputs. Which metric fits this requirement?

    1. A.BLEU, which scores n-gram precision against reference translations with a brevity penalty
    2. B.ROUGE, which scores recall-oriented overlap of words against reference summaries
    3. C.BERTScore, which scores semantic similarity using embedding vectors
    4. D.F1 score, which balances precision and recall of classification labels
    Show answer & explanation

    Correct answer: ABLEU, which scores n-gram precision against reference translations with a brevity penalty

    • A. BLEU is correct because it is designed for translation evaluation, scoring n-gram precision against reference translations and applying a brevity penalty for short outputs.
    • B. ROUGE is incorrect here because it is a recall-oriented metric typically applied to summarization tasks, not translation, and does not include a brevity penalty.
    • C. BERTScore is incorrect because it relies on embedding similarity rather than counting matching n-grams or applying a brevity penalty.
    • D. F1 score is incorrect because it is a classification metric balancing precision and recall of labels, not a text-generation overlap metric with a brevity penalty.

    Domain 4: Guidelines for Responsible AI

    Subdomain 4.1: Explain the development of AI systems that are responsible.

    27.A retail company's customer service chatbot, built on Amazon Bedrock, sometimes returns off-topic or toxic replies and occasionally leaks fragments of customers' personal contact details back into the conversation. The company wants a managed, configurable capability that filters harmful content and redacts sensitive information without retraining the underlying foundation model. Which AWS capability should they configure?

    1. A.Amazon Bedrock Guardrails
    2. B.SageMaker Clarify
    3. C.SageMaker Model Monitor
    4. D.Amazon Augmented AI (A2I)
    Show answer & explanation

    Correct answer: AAmazon Bedrock Guardrails

    • A. Amazon Bedrock Guardrails provides configurable content filters, denied topics, word filters, and sensitive information filters that can block or mask PII and harmful content without changing the underlying model.
    • B. SageMaker Clarify computes bias and explainability metrics for trained models and is not designed to filter live conversational content or redact PII in real time.
    • C. SageMaker Model Monitor tracks data quality, model quality, and bias drift for deployed SageMaker AI endpoints, not conversational content safety in a chatbot.
    • D. Amazon Augmented AI routes low-confidence predictions to human reviewers and does not filter chat content or redact sensitive information in real time.

    Subdomain 4.1: Explain the development of AI systems that are responsible.

    28.A classification model achieves 99% accuracy on its training data but only 61% accuracy on new, unseen validation data. Which effect of bias and variance does this describe?

    1. A.Overfitting
    2. B.Underfitting
    3. C.Fairness violation
    4. D.Data poisoning
    Show answer & explanation

    Correct answer: AOverfitting

    • A. A large gap between near-perfect training accuracy and much lower validation accuracy is the classic signature of overfitting, where the model memorizes training data rather than generalizing.
    • B. Underfitting shows up as poor performance on both training and validation data, not the high training accuracy seen here.
    • C. A fairness violation involves unequal treatment across demographic groups, which is a different concept from a training-versus-validation accuracy gap.
    • D. Data poisoning refers to deliberately corrupted training data causing malicious behavior, not a natural generalization gap between training and validation accuracy.

    Subdomain 4.2: Recognize the importance of transparent and explainable models.

    29.An insurance company must choose between two models for pricing decisions: a linear model that adjusters can fully explain to customers, and a gradient-boosted ensemble that scores 5% higher on accuracy but cannot be easily explained. Which factor should most directly guide this decision when regulations require customers to receive a clear reason for their premium?

    1. A.The regulatory requirement for clear, customer-facing reasoning should outweigh the small accuracy gain
    2. B.The model with the highest accuracy should always be chosen regardless of any other business requirement
    3. C.The model that trains fastest on the currently available compute infrastructure should be chosen instead
    4. D.The model requiring the smallest storage footprint for its serialized artifact should be selected
    Show answer & explanation

    Correct answer: AThe regulatory requirement for clear, customer-facing reasoning should outweigh the small accuracy gain

    • A. When a legal requirement mandates that customers receive clear reasons for a decision, an explainable model that satisfies that obligation should take priority over a modest accuracy improvement from an unexplainable ensemble.
    • B. Always choosing the highest-accuracy model ignores the stated regulatory obligation to provide customers with a clear, explainable reason for their premium.
    • C. Training speed is an operational convenience that does not address the regulatory need for customer-facing explainability.
    • D. Artifact storage size is an infrastructure cost consideration that has no bearing on whether the model can satisfy the explainability regulation.

    Domain 4.0: Guidelines for Responsible AI

    4.1 Explain the development of AI systems that are responsible.

    30.A model achieves 98% accuracy on its training data but only 61% accuracy on new, unseen data. Which term describes this effect?

    1. A.Overfitting, where the model learns patterns specific to the training data that do not generalize
    2. B.Underfitting, where the model is too simple to capture patterns in the training data
    3. C.Data drift, where the statistical properties of the production data change over time
    4. D.Label noise, where incorrect labels in the training data reduce overall model quality
    Show answer & explanation

    Correct answer: AOverfitting, where the model learns patterns specific to the training data that do not generalize

    • A. Overfitting is correct because a large gap between very high training accuracy and much lower accuracy on unseen data is the classic sign that the model memorized training-specific patterns instead of learning generalizable ones.
    • B. Underfitting is incorrect because it describes a model that performs poorly on both training and unseen data due to being too simple, whereas this model performs extremely well on training data.
    • C. Data drift is incorrect because it describes production input data changing after deployment over time, not a one-time gap between training accuracy and accuracy on unseen evaluation data.
    • D. Label noise is incorrect because it refers to incorrect labels degrading overall model quality on both training and evaluation data, not a large accuracy gap between the two.

    4.2 Recognize the importance of transparent and explainable models.

    31.Which of the following reflect human-centered design principles for explainable AI? (Select TWO.)(Select 2)

    1. A.Tailor the depth and format of an explanation to the knowledge level and needs of the person receiving it
    2. B.Provide a way for end users to give feedback on whether an explanation actually helped them understand a decision
    3. C.Present the exact same explanation format to every user regardless of their role or familiarity with the model
    4. D.Remove any mention of model limitations from user-facing explanations to keep the interface simple
    5. E.Optimize only for the shortest possible training time when designing the explanation interface
    Show answer & explanation

    Correct answers: A, BTailor the depth and format of an explanation to the knowledge level and needs of the person receiving it; Provide a way for end users to give feedback on whether an explanation actually helped them understand a decision

    • A. Human-centered explainable AI design calls for adapting explanation depth and format to the audience, since a regulator, a clinician, and an end user need different levels of detail.
    • B. Collecting user feedback on whether an explanation was actually understood is a core human-centered practice, since it lets the explanation interface be improved based on real user comprehension.
    • C. Using one fixed explanation format for every user ignores differences in expertise and needs, which runs counter to human-centered design rather than reflecting it.
    • D. Hiding known model limitations from users undermines trust and transparency, which is the opposite of what human-centered explainable AI design aims to achieve.
    • E. Training time is a model-development concern unrelated to how understandable an explanation is to the person receiving it, so it is not a human-centered design principle.

    Domain 5: Security, Compliance, and Governance for AI Solutions

    Subdomain 5.1: Explain methods to secure AI systems.

    32.What is the primary purpose of tracking data lineage for datasets used to train an AI model?

    1. A.To document where data originated and how it was transformed on its path to the model
    2. B.To compress training data so it consumes less storage
    3. C.To automatically improve the accuracy of the trained model
    4. D.To encrypt training data using a customer-managed key
    Show answer & explanation

    Correct answer: ATo document where data originated and how it was transformed on its path to the model

    • A. Data lineage tracks the origin of data and every transformation it undergoes, giving teams traceability and accountability for what fed into a model.
    • B. Data lineage is a traceability and documentation practice; it has no relationship to reducing the storage footprint of data.
    • C. Tracking where data came from does not itself change model behavior or improve accuracy; it is a governance and traceability practice.
    • D. Lineage tracking documents data movement and transformation history; encryption is a separate data protection control, not a lineage function.

    Subdomain 5.2: Recognize governance and compliance regulations for AI systems.

    33.A marketing team subscribes to a third-party SaaS application that has generative AI features built in, and the team has no ability to customize the underlying model or access its training data. According to the Generative AI Security Scoping Matrix, which perspective should the organization adopt when assessing risk for this use case?

    1. A.A buyer's perspective focused on reviewing the vendor's data handling terms and enterprise agreement
    2. B.A builder's perspective focused on threat modeling the model architecture the team controls
    3. C.A builder's perspective focused on securing the training pipeline the team operates
    4. D.A buyer's perspective focused on patching vulnerabilities in the model's underlying infrastructure
    Show answer & explanation

    Correct answer: AA buyer's perspective focused on reviewing the vendor's data handling terms and enterprise agreement

    • A. For an off-the-shelf application where the organization cannot customize the model, the scoping matrix recommends a buyer's perspective centered on reviewing the vendor's data handling terms and enterprise agreement rather than the underlying technology.
    • B. A builder's perspective involving threat modeling applies to more customized or internally developed use cases where the organization controls the model, which does not describe a subscribed third-party SaaS feature.
    • C. Securing a training pipeline is only relevant when the organization actually operates that pipeline, which is not the case for a purchased SaaS application with an embedded model.
    • D. Patching underlying infrastructure is the vendor's responsibility in an off-the-shelf SaaS scenario, and a buyer in this scope focuses on contractual and data governance review rather than infrastructure patching.

    Domain 5.0: Security, Compliance, and Governance for AI Solutions

    5.1 Explain methods to secure AI systems.

    34.A company wants to protect the confidentiality of the datasets it stores for model training and of the traffic it sends to a managed AI service. Which combination correctly describes standard AWS mechanisms for encryption at rest and encryption in transit?

    1. A.Encrypt stored data using AWS KMS-managed keys, and protect data moving over the network using TLS
    2. B.Encrypt stored data using TLS certificates, and protect data moving over the network using AWS KMS keys
    3. C.Rely on IAM password policies to encrypt stored data, and use VPC route tables to encrypt network traffic
    4. D.Rely on Amazon CloudWatch alarms to encrypt stored data, and use security group rules to encrypt network traffic
    Show answer & explanation

    Correct answer: AEncrypt stored data using AWS KMS-managed keys, and protect data moving over the network using TLS

    • Encrypt stored data using AWS KMS-managed keys, and protect data moving over the network using TLS. AWS KMS manages the encryption keys used to protect data at rest in services like S3 and SageMaker, while TLS is the standard protocol used to encrypt data in transit between clients and AWS services.
    • Encrypt stored data using TLS certificates, and protect data moving over the network using AWS KMS keys. This swaps the two mechanisms; TLS is the transport-layer protocol for data in transit, and KMS keys are used for encrypting stored data, not the reverse.
    • Rely on IAM password policies to encrypt stored data, and use VPC route tables to encrypt network traffic. IAM password policies govern user credential strength and route tables direct network paths; neither mechanism performs encryption of stored data or network traffic.
    • Rely on Amazon CloudWatch alarms to encrypt stored data, and use security group rules to encrypt network traffic. CloudWatch alarms monitor metrics and trigger notifications, and security groups act as network traffic filters; neither one applies cryptographic encryption to data at rest or in transit.

    5.2 Recognize governance and compliance regulations for AI systems.

    35.A compliance team wants a single AWS service that continuously evaluates whether their S3 buckets and EC2 security groups remain compliant with an internal encryption-at-rest and open-port policy, flags any resource that drifts out of compliance, and lets them see what the resource's settings looked like six months ago. Which AWS service should they configure to meet this requirement?

    1. A.AWS Config with custom rules and configuration history
    2. B.AWS Artifact with downloaded compliance reports
    3. C.Amazon Inspector with vulnerability scan findings
    4. D.AWS Trusted Advisor with cost optimization checks
    Show answer & explanation

    Correct answer: AAWS Config with custom rules and configuration history

    • AWS Config with custom rules and configuration history. AWS Config rules continuously evaluate resource settings such as encryption status and security group ports against defined conditions and flag noncompliant resources, while its configuration history lets the team view settings from months earlier. This combination of continuous rule evaluation plus historical lookback matches every part of the requirement.
    • AWS Artifact with downloaded compliance reports. AWS Artifact provides static, pre-generated compliance documents about AWS's own infrastructure rather than continuously evaluating a customer's individual S3 buckets or security groups. It offers no mechanism for tracking a customer resource's configuration history.
    • Amazon Inspector with vulnerability scan findings. Amazon Inspector focuses on scanning compute resources and container images for software vulnerabilities and network reachability issues, not on evaluating encryption settings against a custom internal policy or storing configuration history. Its findings are vulnerability-oriented rather than configuration-drift-oriented.
    • AWS Trusted Advisor with cost optimization checks. Trusted Advisor offers point-in-time best-practice recommendations across several categories but does not continuously evaluate custom internal policies or retain a historical record of a resource's past configuration. It lacks the customizable rule and history features the scenario requires.

    Want the full experience?

    These are just samples. Practice the full AWS Certified AI Practitioner (AIF-C01) question bank in quiz mode — free, no signup, with domain practice and exam simulation.