SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
AIF-C01 practice

AIF-C01 sample questions — 25 answered and explained

25 AIF-C01 sample questions written to the official AWS Certified AI Practitioner exam guide, grouped by exam domain and weighted like the real exam. Each shows the correct answer, why every other option is wrong, and the lesson that teaches it. None of them repeat the examples on the other AIF-C01 practice pages.

On this page
25
answers included
Full bank
418
on the practice page
Domains
5
weighted like the exam
Free, no account
5/day
a free account allows 30 a day

Domain 1: Fundamentals of AI and ML

20% of the AIF-C01 exam, so 5 of the 25 questions on this page.

Question 1Fundamentals of AI and ML

Immediately after training, a model scores 99% accuracy on its training data but only 71% on a held-out test set drawn from the same source and time period. Which problem does this indicate?

Choose one.

  • a
    Underfitting

    Underfitting shows poor results on the training data as well; here the training score is excellent.

  • b
    Data drift

    Data drift is a drop in production performance when real-world data changes over time; the test set here comes from the same source and period, and the gap appears right after training.

  • c
    Class imbalance

    Class imbalance means one outcome dominates the training labels; it does not by itself explain a large gap between training and test accuracy on the same data.

  • d
    Overfitting Correct

    Excellent training accuracy with much worse accuracy on unseen data from the same distribution means the model memorized the training data instead of generalizing.

The concept

Overfitting: a model fits its training data too closely, including noise, and generalizes poorly to new data.

Why that’s the answer

The deciding signal is the gap: near-perfect on training data, much worse on unseen data from the same distribution. That is overfitting. Data drift is the tempting distractor because performance on new data is poor, but drift happens over time in production as real-world data changes; here the test data is from the same source and period and the gap shows up immediately. Underfitting would be poor on the training data too.

How to reason it out
  1. Compare training performance with performance on unseen data.
  2. A large gap with strong training results points to overfitting.
  3. Rule out drift by noting the test data matches the training distribution and time.

Exam tip: Great on training data, poor on new data from the same distribution means overfitting.

AI vs ML vs Deep Learning: Core AIF-C01 Concepts and Terminology — the lesson that teaches this.

Question 2Fundamentals of AI and ML

During evaluation, a model scores poorly on its training data and almost equally poorly on a validation set. Adding more training examples of the same kind does not improve either score. What is this called?

Choose one.

  • a
    Overfitting

    Overfitting performs well on training data and poorly on new data; here the training score is poor as well.

  • b
    Good fit

    A good fit performs well on both training and new data, not poorly on both.

  • c
    Data drift

    Data drift is a change in production data over time; it does not explain poor performance on the training data itself.

  • d
    Underfitting Correct

    Poor results on both the training data and new data mean the model is too simple to capture the underlying pattern.

The concept

Underfitting: a model is too simple to capture the real pattern, so it performs poorly even on its training data.

Why that’s the answer

Poor performance on the training data and similar poor performance on validation data is the signature of underfitting: the model has not captured the pattern at all. Overfitting is the opposite (strong on training, weak on new data), a good fit is strong on both, and data drift describes production data changing over time rather than a model that cannot learn its own training data.

How to reason it out
  1. Check the training score first: poor training performance rules out overfitting.
  2. Poor on both training and validation data points to underfitting.
  3. Rule out drift, which concerns production data changing over time.

Exam tip: Bad on training and bad on new data means underfitting.

AI vs ML vs Deep Learning: Core AIF-C01 Concepts and Terminology — the lesson that teaches this.

Question 3Fundamentals of AI and ML

A support team wants software that reads incoming customer emails, detects whether each writer is frustrated, and pulls out any product names mentioned. Which field of AI does this work belong to?

Choose one.

  • a
    Computer vision

    Computer vision interprets images and video; the input here is email text.

  • b
    Natural language processing Correct

    Detecting sentiment and extracting entities such as product names from written text are core natural language processing tasks.

  • c
    Speech recognition

    Speech recognition converts spoken audio into text; these emails are already written text.

  • d
    Optical character recognition

    OCR extracts printed or handwritten characters from images of documents; the emails arrive as text, and OCR does not judge sentiment or identify entities.

The concept

NLP is the field of AI that understands and works with human language, such as sentiment analysis and entity extraction.

Why that’s the answer

Judging the writer's emotion (sentiment analysis) and pulling out product names (entity extraction) from written email text are natural language processing tasks. Optical character recognition is tempting because it deals with text, but it only turns images of characters into text and does not interpret meaning. Computer vision works on images and speech recognition on audio.

How to reason it out
  1. Identify the input type: written email text.
  2. Identify the tasks: sentiment detection and entity extraction.
  3. Match understanding the meaning of text to NLP; rule out image, audio, and character-extraction fields.

Exam tip: Understanding the meaning of text (sentiment, entities) is NLP.

AI vs ML vs Deep Learning: Core AIF-C01 Concepts and Terminology — the lesson that teaches this.

Question 4Fundamentals of AI and ML

Which AI capability interprets images and video, for example detecting objects or spotting defects on a production line?

Choose one.

  • a
    Computer vision Correct

    Computer vision is the field that helps machines interpret images and video, such as detecting objects or defects.

  • b
    Natural language processing

    NLP works with human language, not with images or video.

  • c
    Speech recognition

    Speech recognition converts spoken audio to text and does not analyze images.

  • d
    Forecasting

    Forecasting predicts future numeric values from history, not visual content.

The concept

Computer vision interprets images and video.

Why that’s the answer

Detecting objects or spotting defects in images and video is a computer vision task. NLP works on human language and speech recognition on spoken audio, while forecasting predicts future numeric values, so none of them interprets visual input.

How to reason it out
  1. Identify the input as images or video.
  2. Match visual interpretation to computer vision.
  3. Rule out language, audio, and numeric-prediction fields.

Exam tip: Interpreting images and video is computer vision.

AI vs ML vs Deep Learning: Core AIF-C01 Concepts and Terminology — the lesson that teaches this.

Question 5Fundamentals of AI and ML

A chatbot runs on a neural network with billions of parameters that was pre-trained on a huge corpus of books and web pages. It produces each reply one word at a time by predicting what should come next. Which type of model is this?

Choose one.

  • a
    A text embedding model

    An embedding model is also pre-trained on text, but it turns input into numeric vectors for search and similarity; it does not generate replies.

  • b
    A diffusion model

    A diffusion model is generative, but it creates images by gradually removing noise, not text by predicting the next word.

  • c
    A speech recognition model

    Speech recognition converts spoken audio into text; it transcribes what was said rather than writing new replies.

  • d
    A large language model Correct

    A very large neural network pre-trained on huge volumes of text that generates language by predicting what comes next is a large language model.

The concept

A large language model (LLM) is a very large neural network trained on huge amounts of text so it can understand and generate language.

Why that’s the answer

Billions of parameters, pre-training on a vast body of text, and generating each reply by predicting the next word are the defining traits of a large language model, the engine behind most generative AI text applications. An embedding model is the closest twin, since it is also trained on text, but it outputs vectors rather than generated language. A diffusion model is generative but produces images, and a speech recognition model transcribes audio instead of writing new text.

How to reason it out
  1. Note the training data: a vast amount of written text.
  2. Note the behavior: it generates new text by predicting what comes next.
  3. Separate text models that generate (LLMs) from text models that only encode (embedding models).
  4. Match a huge text-trained model that generates language to an LLM.

Exam tip: Huge neural network + vast text + generates language = LLM.

AI vs ML vs Deep Learning: Core AIF-C01 Concepts and Terminology — the lesson that teaches this.

Domain 2: Fundamentals of GenAI

24% of the AIF-C01 exam, so 6 of the 25 questions on this page.

Question 6Fundamentals of GenAI

What role does the transformer play in large language models (LLMs)?

Choose one.

  • a
    It is the pricing scheme that bills each LLM request by its input and output tokens.

    Billing by input and output tokens is token-based pricing, not the transformer.

  • b
    It is the database that stores embeddings so that relevant text can be retrieved.

    Storing embeddings for retrieval is the job of a vector database, not a model architecture.

  • c
    It is the preprocessing step that splits raw text into tokens before inference.

    Splitting text into tokens is tokenization; the transformer then processes those tokens.

  • d
    It is the neural-network architecture, based on attention, that LLMs are built on. Correct

    Correct. Most modern LLMs use the transformer architecture, whose attention mechanism weighs how tokens relate to each other.

The concept

A transformer is the neural-network architecture behind most modern large language models.

Why that’s the answer

Its attention mechanism lets the model weigh how much each token relates to the others, which is why transformer-based LLMs handle long, context-rich text well. Token-based pricing, vector databases and tokenization are real parts of a GenAI application, but none of them is the model architecture.

How to reason it out
  1. Associate the transformer with model architecture.
  2. Recall that its attention mechanism relates tokens to each other.
  3. Separate it from pricing, storage and tokenization.

Exam tip: The transformer, built on attention, is the architecture that powers today's LLMs.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Question 7Fundamentals of GenAI

A support team wants each long customer-ticket thread condensed into a short brief that the next agent can read in a few seconds. Which generative AI use case does this match?

Choose one.

  • a
    Translation

    Translation converts text into another language; it does not shorten the thread.

  • b
    Summarization Correct

    Correct. Summarization condenses long content into a shorter brief that keeps the key points.

  • c
    Code generation

    Code generation writes software from a request; it does not condense conversations.

  • d
    Semantic search

    Semantic search finds related content by meaning; it retrieves threads rather than condensing one.

The concept

Summarization is the GenAI use case of condensing long documents or threads into a short brief.

Why that’s the answer

The need is to turn a long thread into a short brief, which is summarization. Translation changes the language, code generation writes code, and semantic search finds relevant content, so none of them produces a condensed version of the thread.

How to reason it out
  1. Find the verb in the scenario: condense long content.
  2. Map that verb to the summarization use case.
  3. Eliminate translating, coding and searching.

Exam tip: Condensing long content into a short brief is summarization.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Question 8Fundamentals of GenAI

A developer asks a generative AI tool to write a function from a plain-language description of what it should do. Which use case does this represent?

Choose one.

  • a
    Code generation Correct

    Code generation writes, explains, or fixes code from a plain-language request.

  • b
    Summarization

    Summarization condenses existing content; it does not write new code.

  • c
    Semantic search

    Semantic search finds relevant content by meaning; it does not author a function.

  • d
    Recommendation

    A recommendation engine suggests relevant items; it does not generate code.

The concept

Code generation is the GenAI use case of producing software from a plain-language request.

Why that’s the answer

Turning a description of behaviour into a working function is code generation. Summarization condenses existing content, semantic search retrieves content by meaning, and a recommendation engine suggests relevant items, so none of them writes the function.

How to reason it out
  1. Identify the output: new code written from a description.
  2. Match it to code generation.
  3. Rule out summarizing, searching and recommending.

Exam tip: Writing code from a plain-language request is the code generation use case.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Question 9Fundamentals of GenAI

Two internal chatbots handle the same number of requests each month. One attaches a 40-page policy document to every request; the other sends a two-sentence prompt. The first chatbot's inference bill is many times higher. Which pricing model explains the difference?

Choose one.

  • a
    Provisioned throughput, billed hourly for model capacity that is reserved in advance

    Provisioned throughput charges for reserved capacity over time, so two chatbots on the same capacity would not differ by prompt length.

  • b
    Per-request pricing, where each call to the model is charged at one fixed rate

    With a fixed price per call, the same number of requests would cost the same regardless of prompt length.

  • c
    Storage pricing, based on how many embeddings are kept in a vector database

    Neither chatbot is described as storing embeddings; the difference comes from the text sent on each call.

  • d
    Token-based pricing, where cost depends on the input and output tokens Correct

    Correct. Every request from the first chatbot carries thousands of extra input tokens, and each one is billed.

The concept

Token-based pricing charges for the number of input and output tokens processed, so cost scales with the amount of text per call.

Why that’s the answer

Both chatbots make the same number of calls, so a per-call price would make their bills equal, and reserved capacity is billed by time rather than by prompt size. The only difference is that one sends a 40-page document as input on every call; with token-based pricing those extra input tokens are billed each time.

How to reason it out
  1. Note what is equal (request count) and what differs (text sent per request).
  2. Recall that on-demand inference bills input plus output tokens.
  3. Conclude that token-based pricing explains why a longer prompt costs more.

Exam tip: Token-based pricing charges for input plus output tokens, so the same request count can cost far more when prompts are long.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Question 10Fundamentals of GenAI

What does context engineering refer to in a foundation model application?

Choose one.

  • a
    Choosing a model with a larger context window so more tokens fit in each request.

    A larger context window raises how much can be sent, but it does not decide which information is relevant; filling it with everything adds token cost.

  • b
    Writing one fixed instruction that sets the tone and format of the assistant's replies.

    A fixed instruction tells the model how to answer, but it supplies no task-specific information chosen for each request.

  • c
    Fine-tuning the model weights on labelled examples taken from the company's domain.

    Fine-tuning changes the model's weights through extra training; context engineering changes what the model is given with each request.

  • d
    Supplying the model with relevant information, in the right amount, on each request. Correct

    Correct. Context engineering decides which documents, examples and instructions go into each request, balancing answer quality against token cost.

The concept

Context engineering is the practice of giving a model the right information, in the right amount, at the right time so it produces accurate, relevant answers.

Why that’s the answer

A foundation model only knows what it learned in training plus what it receives in the request, so choosing that information is what makes an application work. Too little context gives weak answers; too much wastes tokens and can overflow the context window. A bigger context window only raises the limit, a fixed tone-and-format instruction is prompt wording rather than information selected per request, and fine-tuning changes the model itself.

How to reason it out
  1. Recall that a model relies on its request for task-specific facts.
  2. Match choosing which information to supply, and how much, to context engineering.
  3. Reject options that only raise a limit, only set tone and format, or change the model's weights.

Exam tip: Context engineering means giving the model the right information at the right time, without wasting tokens.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Question 11Fundamentals of GenAI

What is the role of the Model Context Protocol (MCP) in agentic AI?

Choose one.

  • a
    An open standard that lets agents connect to external tools, data and systems. Correct

    Correct. MCP gives agents a common interface for reaching outside tools and data instead of a custom integration for each one.

  • b
    A standard that lets agents delegate tasks and exchange messages with other agents.

    Agent-to-agent messaging is covered by separate agent communication standards; MCP connects an agent to tools and data sources.

  • c
    A standard file format for exchanging trained model weights between frameworks.

    Formats for moving model weights between frameworks exist, but MCP does not package models; it connects running agents to external systems.

  • d
    A protocol that compresses the conversation context to reduce token usage.

    Despite 'context' in its name, MCP does not compress prompts or cut tokens; it gives agents a standard way to reach tools and data.

The concept

The Model Context Protocol (MCP) is an open standard for connecting AI agents to external systems, tools and data sources.

Why that’s the answer

Instead of building a custom integration for every tool, an MCP server exposes a system in a standard way and any MCP-capable agent can use it. Agent-to-agent messaging, model-weight exchange formats and context compression are all plausible-sounding standards, but none of them is what MCP does: it connects agents to outside tools, data and systems.

How to reason it out
  1. Recall MCP's role: a standard connection between an agent and external systems.
  2. Separate it from standards for agent-to-agent messaging or model file exchange.
  3. Do not read 'context' in the name as prompt compression.

Exam tip: MCP is the open standard that connects agents to external tools and data.

Generative AI Concepts: Tokens, Embeddings, and Foundation Models (AIF-C01) — the lesson that teaches this.

Domain 3: Applications of Foundation Models

28% of the AIF-C01 exam, so 7 of the 25 questions on this page.

Question 12Applications of Foundation Models

A company's chatbot uses a large foundation model that gives good answers but is slow and costly at its traffic volume. The company wants a compact model that keeps most of that quality for this one task. Which approach fits?

Choose one.

  • a
    RAG over the company's help articles

    RAG adds knowledge to prompts; the same large, slow model would still answer every request.

  • b
    Fine-tuning the large model on chat logs

    Fine-tuning specialises the model but leaves it just as large, so latency and serving cost stay the same.

  • c
    Prompt caching for the repeated system prompt

    Caching a repeated prompt prefix trims cost and latency per call, but it keeps the large model; it does not produce a compact one.

  • d
    Distilling the large model into a student model Correct

    Distillation trains a smaller student model on the large teacher's outputs so it keeps most task quality at lower latency and cost.

The concept

Model distillation transfers a large model's task behaviour into a smaller, faster, cheaper model.

Why that’s the answer

The deciding requirement is a compact model that keeps most of the quality. Distillation trains a smaller student on the teacher's responses for this task, cutting latency and per-request cost. Prompt caching is the tempting option because it also lowers cost and latency, but the large model still serves every call. RAG and fine-tuning change what the model knows or how it behaves, not its size.

How to reason it out
  1. Note the problem: good quality, but too slow and costly.
  2. Note the requirement: a compact model with similar task quality.
  3. Separate approaches that keep the large model from the one that produces a smaller model.

Exam tip: Want a smaller, cheaper model that behaves like a big one? Distil it.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 13Applications of Foundation Models

A retailer's assistant answers return-policy questions from documents through a knowledge base. The retailer now wants it to create the return label, update the order record and email the customer when asked. What should the design add?

Choose one.

  • a
    Fine-tuning on past return conversations so the model learns the steps

    Fine-tuning changes how the model writes; it still cannot call systems to create labels or update orders.

  • b
    An agent that calls the shipping, order and messaging tools in sequence Correct

    An agent gives the model tools (APIs) and orchestration to plan and carry out the steps, so it can take the actions, not just describe them.

  • c
    More return documents in the knowledge base so answers cover each step

    More documents improve answers about the process, but the assistant would still only reply with text.

  • d
    A vector index of order records so the model can find each customer

    Retrieving order data lets the model read records; it does not let it change them or trigger shipping and email.

The concept

AI agents let a foundation model take actions across systems by calling tools and orchestrating multi-step tasks.

Why that’s the answer

The new requirement is to do things: create a label, update a record, send an email. A RAG assistant, however well informed, only produces text. An agent adds tools the model can call and orchestration that sequences them, which is the business case for agents. More documents or a vector index improve what the model knows, and fine-tuning changes its style, but none of them lets it act.

How to reason it out
  1. Separate 'answer questions' (RAG) from 'perform tasks' (agent).
  2. Notice the request involves several actions in different systems.
  3. Choose the design that adds tools plus orchestration.

Exam tip: Answering from documents is RAG; carrying out multi-step tasks in other systems needs an agent.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 14Applications of Foundation Models

An interactive chatbot must reply while users wait on screen, and slow replies make users leave. Which foundation model selection criterion matters most for this requirement?

Choose one.

  • a
    Supported languages

    Language support matters when users write in several languages; the stated problem is speed.

  • b
    Input modality

    Modality is about which data types the model accepts, such as images or audio, not how fast it answers.

  • c
    Response latency Correct

    Latency is how long the model takes to answer; an interactive chat needs it low.

  • d
    Customization options

    Customization covers fine-tuning and similar adaptation; it does not address reply speed.

The concept

Latency, the time a model takes to respond, is the selection criterion for real-time interactive use.

Why that’s the answer

The scenario stresses one thing: users waiting for replies. That maps to latency, which usually favours smaller, faster models. Languages, modality and customization are real criteria, but each answers a different requirement.

How to reason it out
  1. Find the constraint the scenario stresses: reply speed.
  2. Map speed to the latency criterion.
  3. Set aside criteria that address languages, data types or adaptation.

Exam tip: Users waiting on a live reply: latency is the deciding selection criterion.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 15Applications of Foundation Models

An application serves customers who write in English, Spanish and Japanese, and each answer must come back in the customer's own language. Which foundation model selection criterion should drive the choice?

Choose one.

  • a
    Low response latency

    Latency matters for speed, which the scenario does not stress.

  • b
    Prompt caching support

    Prompt caching lowers cost and latency for repeated prompt content; it does not add language ability.

  • c
    Model size and complexity

    A larger model is not automatically multi-lingual; the criterion to check is the languages the model supports.

  • d
    Multi-lingual support Correct

    The model must understand and generate all three languages, so multi-lingual support decides.

The concept

Multi-lingual support is a foundation model selection criterion: the model must handle every language its users write in.

Why that’s the answer

The requirement is to read and answer in English, Spanish and Japanese. A model that lacks one of these languages fails regardless of its speed, size or caching. Model size is the tempting choice because bigger models often cover more, but the criterion to check is the model's stated language support.

How to reason it out
  1. Identify the requirement: several input and output languages.
  2. Map it to the multi-lingual criterion.
  3. Do not assume size implies language coverage.

Exam tip: Users in several languages: choose a model by its multi-lingual support.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 16Applications of Foundation Models

A team is choosing between RAG and fine-tuning to make a model answer from its product catalog. Which statement about their relative cost and effort is accurate?

Choose one.

  • a
    Fine-tuning usually costs less than RAG because it needs no vector store to run

    Fine-tuning needs a paid training job, labeled data, and repeated runs as data changes, which usually costs more than running a vector store.

  • b
    RAG and fine-tuning usually cost the same because both update the model's weights

    RAG does not update weights at all; only fine-tuning does.

  • c
    RAG usually costs less up front because it adds data without a training job Correct

    RAG connects the catalog through retrieval with no training job, so its up-front cost and effort are lower than fine-tuning.

  • d
    RAG usually costs more up front because the catalog is used to retrain the model

    RAG never retrains the model; that description fits fine-tuning.

The concept

RAG is usually cheaper and less effort to set up than fine-tuning because it needs no training.

Why that’s the answer

Fine-tuning requires preparing labeled data, running a training job and repeating it when the data changes. RAG adds the catalog through retrieval and leaves the model unchanged; its costs are indexing and storing embeddings. The distractors either claim RAG retrains the model or that both change weights, which is the misconception the item tests.

How to reason it out
  1. Recall which approach changes weights: only fine-tuning.
  2. Link training jobs to higher up-front cost and effort.
  3. Choose the statement that RAG adds data without training.

Exam tip: RAG sits below fine-tuning on the cost ladder because it adds data without a training job.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 17Applications of Foundation Models

An HR chatbot built on a foundation model confidently states leave rules that do not appear in the company handbook. The company wants answers based on the handbook without running a training job. Which change fits?

Choose one.

  • a
    Set the temperature to 0 so each answer is generated the same way

    A temperature of 0 makes output repeatable, but a repeatable answer can still be invented; it adds no handbook facts.

  • b
    Fine-tune the model on the handbook and redeploy it after each edit

    Fine-tuning is a training job, which the company wants to avoid, and it would need repeating whenever the handbook changes.

  • c
    Raise the maximum output tokens so the model can explain its reasoning

    Longer answers do not supply the facts; the model would still rely on its training data.

  • d
    Retrieve the relevant handbook passages and add them to the prompt Correct

    This grounds each answer in the handbook text (RAG), which reduces hallucinated rules without training.

The concept

RAG reduces hallucination by grounding the model's answer in retrieved source content.

Why that’s the answer

The model is filling gaps in its knowledge with confident fabrications, which is hallucination. Supplying the relevant handbook passages in the prompt gives it real facts to answer from. A temperature of 0 is the tempting option because it makes answers stable, but stable is not the same as correct. Fine-tuning breaks the no-training constraint, and more output tokens only lengthen the answer.

How to reason it out
  1. Name the symptom: confident answers not in the source, a hallucination.
  2. Ask what gives the model the missing facts at answer time.
  3. Reject stability and length settings, and the option that needs training.

Exam tip: Hallucination from missing knowledge is fixed by grounding (RAG), not by lowering temperature.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Question 18Applications of Foundation Models

Summaries produced by a foundation model regularly stop in mid-sentence on long reports, even though the request stays well within the model's context window. Which setting is the most likely cause?

Choose one.

  • a
    Maximum output tokens is set too low for these reports Correct

    The output cap ends generation when it is reached, cutting the summary off mid-sentence.

  • b
    The temperature value is set too low for these reports

    A low temperature makes wording more predictable; it does not stop generation early.

  • c
    The top-p sampling value is set too low for these reports

    Top-p narrows the word choices but does not limit how many tokens are produced.

  • d
    The top-k sampling value is set too high for these reports

    Top-k widens or narrows candidate words; it has no effect on where the answer ends.

The concept

Maximum output tokens caps how long a generated response can be.

Why that’s the answer

Answers that stop mid-sentence hit a length limit. With the context window ruled out by the stem, the limit is the output cap. Temperature, top-p and top-k all shape which words are chosen, not how many, so they cannot cause truncation.

How to reason it out
  1. Read the symptom: output cut off mid-sentence.
  2. Use the stem to rule out the context window.
  3. Pick the parameter that limits output length.

Exam tip: Truncated answers point to the maximum output tokens setting; sampling settings change word choice, not length.

Foundation Model Design: Selection, RAG, and Customization (AIF-C01) — the lesson that teaches this.

Domain 4: Guidelines for Responsible AI

14% of the AIF-C01 exam, so 4 of the 25 questions on this page.

Question 19Guidelines for Responsible AI

A generative AI tool produces marketing images that closely reproduce copyrighted artwork from its training data. Which legal risk of generative AI does this represent?

Choose one.

  • a
    Hallucinated output presented as fact

    Hallucination is false or unsupported content; the images here faithfully copy real artwork, so the problem is not fabrication.

  • b
    Intellectual-property infringement Correct

    Reproducing copyrighted artwork from training data exposes the company to intellectual-property infringement claims.

  • c
    Biased output against a demographic group

    Biased output is unequal treatment of groups; nothing in the scenario concerns how groups are treated.

  • d
    End-user exposure to harmful content

    End-user risk concerns users meeting harmful or offensive content or over-trusting output; copying artwork is an ownership problem.

The concept

Generated content that reproduces copyrighted training material creates intellectual-property infringement risk.

Why that’s the answer

The images closely copy copyrighted artwork, which is the definition of an IP infringement claim risk. Hallucination is fabricated content, biased output is unequal treatment of groups, and end-user risk is harm to the people using the system; none matches reproduced artwork.

How to reason it out
  1. Identify what went wrong: output copies someone else's protected work.
  2. Map protected-work copying to intellectual property.
  3. Rule out fabrication, bias and end-user harm.

Exam tip: Output that copies protected work from training data means intellectual-property infringement risk.

Responsible AI: Bias, Fairness, and Amazon Bedrock Guardrails — the lesson that teaches this.

Question 20Guidelines for Responsible AI

A generative AI assistant confidently tells a customer about a refund policy that does not actually exist, and the customer acts on it. Which generative AI risk is illustrated?

Choose one.

  • a
    Intellectual-property infringement

    Nothing copyrighted was reproduced; the model invented false information instead.

  • b
    Biased model output

    Biased output treats groups unequally; the problem here is an invented policy, not unequal treatment.

  • c
    Prompt injection

    Prompt injection is a user manipulating instructions to subvert the model; nobody attacked the assistant here, it fabricated the policy on its own.

  • d
    Hallucination Correct

    A hallucination is when the model states plausible but false information confidently, as with the invented refund policy.

The concept

A hallucination is confident, plausible output that is false; acting on it creates legal and trust risk.

Why that’s the answer

The assistant invented a refund policy and stated it confidently, which is a hallucination; because the customer relied on it, the business carries the consequence. IP infringement is copying protected work, biased output is unequal treatment of groups, and prompt injection requires a user manipulating the model.

How to reason it out
  1. Identify the symptom: a confident statement about something that does not exist.
  2. Map fabricated-but-plausible content to hallucination.
  3. Rule out copying, bias and attacker-driven manipulation.

Exam tip: Confident, plausible, false output is a hallucination, and the business owns what customers do with it.

Responsible AI: Bias, Fairness, and Amazon Bedrock Guardrails — the lesson that teaches this.

Question 21Guidelines for Responsible AI

A facial-analysis model performs well on people with one skin tone but noticeably worse on people with other skin tones. Which property of its training data most likely caused this?

Choose one.

  • a
    Labels that were inconsistent across the image set

    Inconsistent labels hurt accuracy broadly; they would not explain good results for one skin tone and poor results for others.

  • b
    Far fewer training images of some demographics than others Correct

    An unbalanced dataset underrepresents some demographics, so the model learns their features poorly and performs worse for them.

  • c
    Images collected from vetted, licensed photo sources

    Curated, licensed sources are a good practice; on their own they say nothing about how evenly people are represented.

  • d
    Too few training images overall for a model of this size

    A dataset that is too small overall weakens performance for everyone, not specifically for some skin tones.

The concept

An unbalanced dataset produces a model that underperforms for underrepresented groups.

Why that’s the answer

Errors that concentrate on particular demographics point to unequal representation in the training data: the model saw too few examples of some groups. Inconsistent labels and a small dataset would degrade results across the board, and vetted licensed sources concern provenance, not balance.

How to reason it out
  1. Notice the pattern: errors fall on specific groups, not everyone.
  2. Ask which data property affects groups unequally.
  3. Choose under-representation (an unbalanced dataset).
  4. Reject causes that would lower accuracy for all groups.

Exam tip: Errors concentrated on one group usually trace back to that group being underrepresented in the data.

Responsible AI: Bias, Fairness, and Amazon Bedrock Guardrails — the lesson that teaches this.

Question 22Guidelines for Responsible AI

A lending model's historical training data over-represents one group of applicants, and its predictions disadvantage the others. Which change to the training data best reduces this bias?

Choose one.

  • a
    Collect more examples of the over-represented group

    More data from the dominant group widens the imbalance and strengthens the bias.

  • b
    Remove the protected attribute column from the inputs

    Dropping the attribute does not remove the skew: correlated features such as postcode can act as proxies, and the data is still unbalanced.

  • c
    Train a larger model on the existing skewed dataset

    A larger model learns the same skewed pattern, often more precisely; the bias comes from the data, not model capacity.

  • d
    Add curated examples so every group is represented Correct

    Rebalancing with curated examples of the underrepresented groups fixes the root cause, the unbalanced data.

The concept

Bias learned from unbalanced data is fixed at the data: curated, inclusive, balanced representation.

Why that’s the answer

The model learned its skew from data dominated by one group, so the effective fix is adding curated examples until every group is represented. Removing the protected attribute is tempting but leaves proxy features and the imbalance in place; a larger model or more dominant-group data reproduces or amplifies the skew.

How to reason it out
  1. Locate the root cause: the training data is unbalanced.
  2. Prefer fixes that change the data's representation.
  3. Recognize that dropping an attribute leaves proxies in correlated features.
  4. Choose rebalancing with curated, representative examples.

Exam tip: Fix data-driven bias by rebalancing the data; removing the sensitive column alone does not.

Responsible AI: Bias, Fairness, and Amazon Bedrock Guardrails — the lesson that teaches this.

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

14% of the AIF-C01 exam, so 3 of the 25 questions on this page.

Question 23Security, Compliance, and Governance for AI Solutions

A team has added input checks to its chatbot, but testers still find crafted prompts that slip through. The team wants a further layer that stops a successful attack from showing harmful or confidential content to users. What should the team add?

Choose one.

  • a
    Lower the model's temperature so its responses are more predictable

    Lower temperature reduces randomness but an injected instruction is still followed; nothing checks what is shown.

  • b
    Screen every model response with output filters before display Correct

    Correct. Output filtering and validation is the layer after the model: even if an injection succeeds, unsafe or confidential content is blocked before users see it.

  • c
    Retrain the model on a larger set of benign conversations

    More benign training data does not reliably teach a probabilistic model to resist new crafted prompts, and it adds no check on what is shown.

  • d
    Encrypt prompts and responses in transit with TLS

    TLS protects data on the network from outsiders; it does not inspect what the model returns to the legitimate user.

The concept

Because model behaviour is probabilistic, input checks alone cannot stop prompt injection; output filtering and validation is the defense-in-depth layer that catches what gets through.

Why that’s the answer

The team needs a control that works even when the attack has already succeeded, so it must act on the response. Output filters (for example, Amazon Bedrock Guardrails on outputs or custom validation) do this. Lower temperature and retraining try to change the model's behaviour but give no guarantee, and TLS protects the network path, not the content shown.

How to reason it out
  1. Note that input checks are already failing.
  2. Look for a control that acts after the model, on the response.
  3. Output filtering and validation is the last layer before the user.

Exam tip: Prompt injection defense is layered: filter and validate output, not only input.

Securing AI Systems on AWS: IAM, Encryption, Guardrails, and Grounding — the lesson that teaches this.

Question 24Security, Compliance, and Governance for AI Solutions

A chatbot sometimes invents product policies. The approved policy documents change every week, and the team wants each answer based on the current documents without retraining the model. Which technique should the team use?

Choose one.

  • a
    Retrieve passages from the policy documents for each prompt Correct

    Correct. Retrieval Augmented Generation fetches current passages at answer time and supplies them to the model, so answers are grounded without retraining.

  • b
    Fine-tune the model on the policy documents each month

    Fine-tuning is retraining, which the team wants to avoid, and monthly updates would lag weekly changes.

  • c
    Lower the temperature so answers vary less between runs

    Lower temperature makes output more consistent, not more correct; the model still has no access to the current policies.

  • d
    Add a few example answers to the system prompt template

    Few-shot examples shape format and tone, but a handful of fixed examples cannot hold a weekly-changing policy set.

The concept

RAG grounding retrieves relevant passages from a trusted, up-to-date knowledge base at answer time and has the model answer from them.

Why that’s the answer

Two constraints decide it: answers must reflect documents that change weekly, and there must be no retraining. Retrieval at answer time meets both. Fine-tuning is retraining and lags behind, temperature only changes variability, and few-shot examples cannot carry a whole changing policy set.

How to reason it out
  1. Note the constraints: current documents, no retraining.
  2. Eliminate fine-tuning (retraining) and temperature (not about facts).
  3. Choose retrieval at answer time: RAG grounding.

Exam tip: Fresh facts, no retraining: ground answers with RAG.

Securing AI Systems on AWS: IAM, Encryption, Guardrails, and Grounding — the lesson that teaches this.

Question 25Security, Compliance, and Governance for AI Solutions

An insurance assistant must send answers the model is unsure about to a human adjuster, while answers it is sure about go straight to the customer. Which technique enables this routing?

Choose one.

  • a
    Scoring each answer's confidence against a set threshold Correct

    Correct. A confidence score per answer, compared with a threshold, decides which answers go to a human.

  • b
    Validating each answer against a JSON output schema

    Schema validation checks the answer's format; a well-formed answer can still be wrong, so it cannot measure certainty.

  • c
    Grounding each answer in retrieved policy passages

    Grounding improves accuracy, but on its own it gives no per-answer signal for when to involve a human.

  • d
    Filtering each answer through denied-topic rules

    Denied topics block subjects the assistant must not discuss; they do not measure how certain an answer is.

The concept

Confidence scoring attaches a certainty measure to each output so low-confidence answers can be flagged or routed to human review.

Why that’s the answer

The routing decision depends on how certain each answer is, which is what confidence scoring provides, compared against a threshold. Schema validation checks format, grounding improves accuracy without producing a routing signal, and denied topics block subjects.

How to reason it out
  1. Identify the decision: route by certainty.
  2. Find the technique that produces a per-answer certainty value.
  3. Confidence scoring plus a threshold routes low-confidence answers to a human.

Exam tip: Route uncertain answers to humans with confidence scoring.

Securing AI Systems on AWS: IAM, Encryption, Guardrails, and Grounding — the lesson that teaches this.

Keep going with AIF-C01

AIF-C01 practice by domain

AIF-C01 sample questions: your questions

No. Real exam questions are confidential. These are original questions written to the skills in the official AIF-C01 exam guide, so they test the same knowledge in the same style without being copies of the exam.

Source

The domains and weights on this page come from the official AIF-C01 exam guide.