All AWS exams

Free AIF-C01 practice test: 30 questions with answers

30 original questions for AWS Certified AI Practitioner, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions
Real exam
65 questions, 90 min

AIF-C01 exam guide: topics, cost and format

All 30 AIF-C01 questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Fundamentals of AI and ML (6 questions)

  1. Question 1

    A retailer wants to predict next month's sales for each store using historical numeric data. Which type of machine learning problem is this?

    1. ARegression
    2. BAnomaly detection with no labels
    3. CClustering
    4. DReinforcement learning
    Show answer and explanation
    Correct answer: A

    Predicting a continuous numeric value from labeled historical data is regression. Clustering groups unlabeled data, reinforcement learning learns from rewards, and anomaly detection flags unusual points rather than predicting a value.

  2. Question 2

    A company has thousands of customer emails with no labels and wants to discover natural groups of similar topics. Which approach fits best?

    1. ASupervised classification with known labels
    2. BReinforcement learning with a reward for each email
    3. CRegression on the email length
    4. DUnsupervised clustering
    Show answer and explanation
    Correct answer: D

    Unsupervised clustering groups unlabeled data by similarity, which reveals natural topic groups. Classification needs labels, regression predicts numbers, and reinforcement learning needs an environment with rewards.

  3. Question 3

    Which statement best describes overfitting in a machine learning model?

    1. AThe model performs equally well on training and new data
    2. BThe model learns noise in the training data and performs poorly on new data
    3. CThe model is too simple to capture any pattern
    4. DThe model trains faster when the dataset is larger
    Show answer and explanation
    Correct answer: B

    Overfitting means the model memorizes training details and generalizes poorly to new data. Equal performance indicates good generalization, underfitting describes overly simple models, and training speed is unrelated.

  4. Question 4

    A team splits its dataset into training, validation, and test sets. What is the main purpose of the test set?

    1. AChoosing the batch size during training
    2. BStoring the model artifacts
    3. CTraining the model parameters
    4. DEstimating how well the final model generalizes to unseen data
    Show answer and explanation
    Correct answer: D

    The test set is held out until the end to give an unbiased estimate of generalization. Training data fits parameters, validation tunes choices, and storage is unrelated to evaluation.

  5. Question 5

    Which AWS service provides a managed environment to build, train, and deploy machine learning models at scale?

    1. AAmazon SageMaker
    2. BAWS Budgets
    3. CAmazon Rekognition
    4. DAmazon Polly
    Show answer and explanation
    Correct answer: A

    Amazon SageMaker is the managed service for the full machine learning lifecycle, including building, training and deploying models. Rekognition provides prebuilt vision APIs, Polly converts text to speech, and Budgets tracks costs.

  6. Question 6

    A company wants to extract text, tables, and forms from scanned invoices without training a custom model. Which service should be used?

    1. AAmazon Transcribe
    2. BAmazon Translate
    3. CAmazon Textract
    4. DAmazon Lex
    Show answer and explanation
    Correct answer: C

    Amazon Textract extracts text, tables and forms from documents using managed models. Transcribe converts speech to text, Translate converts language, and Lex builds conversational interfaces.

Applications of Foundation Models (6 questions)

  1. Question 7

    A company wants a model to answer questions using its internal policy documents, with answers that reflect the latest versions without retraining. Which approach fits best?

    1. AIncreasing the temperature to 1.5
    2. BRetrieval Augmented Generation (RAG) with a knowledge base over the documents
    3. CFine-tuning the model once a year on old policies
    4. DAsking the model to memorize the documents in its prompt each time without retrieval
    Show answer and explanation
    Correct answer: B

    RAG retrieves current passages from the document store and adds them to the prompt, so answers follow updated documents without retraining. Annual fine-tuning lags behind changes, high temperature increases randomness, and manual prompting does not scale.

  2. Question 8

    Which Amazon Bedrock feature helps build RAG applications by connecting a foundation model to data sources managed in a knowledge base?

    1. AAmazon Bedrock batch inference with no data source
    2. BKnowledge Bases for Amazon Bedrock
    3. CAmazon Bedrock Guardrails only
    4. DAmazon Bedrock model import of custom weights
    Show answer and explanation
    Correct answer: B

    Knowledge Bases for Amazon Bedrock manage ingestion, embeddings and retrieval for RAG. Guardrails control content, custom model import brings weights in, and batch inference runs jobs but does not connect data sources.

  3. Question 9

    A team wants to improve a foundation model's responses for a specialized legal domain using a labeled dataset of questions and expert answers. Which approach is most appropriate?

    1. AFine-tuning the model on the labeled domain dataset
    2. BUsing the model without any domain data
    3. CChanging the model's name in the prompt
    4. DReducing the context window to zero
    Show answer and explanation
    Correct answer: A

    Fine-tuning on labeled domain examples adapts the model to specialized responses. Using no domain data, renaming the model and removing context do not improve domain behavior.

  4. Question 10

    Which technique teaches a model to follow instructions better by training it on pairs of instructions and desired responses?

    1. APrincipal component analysis
    2. BHyperparameter sweeping only
    3. CFeature scaling
    4. DInstruction tuning
    Show answer and explanation
    Correct answer: D

    Instruction tuning trains on instruction and response pairs to improve following tasks. PCA reduces dimensionality, sweeping tunes hyperparameters, and scaling is a preprocessing step.

  5. Question 11

    A company wants to evaluate several foundation models on its own tasks before choosing one. Which approach is best?

    1. ARunning an evaluation with representative prompts and measuring quality, cost, and latency for each model
    2. BTesting only one prompt on one model
    3. CChoosing the model with the largest number of parameters without testing
    4. DChoosing the model whose name sounds most advanced
    Show answer and explanation
    Correct answer: A

    Evaluating with representative prompts and measuring quality, cost and latency gives evidence for the choice. Size alone does not guarantee quality for a task, and names or single prompts are not evaluations.

  6. Question 12

    Which metric category is used to judge the quality of a generated summary against reference summaries?

    1. APacket loss percentage
    2. BROUGE-style overlap metrics
    3. CMean squared error on pixel values
    4. DFrame rate of the video stream
    Show answer and explanation
    Correct answer: B

    ROUGE measures overlap between generated and reference text, which is common for summarization evaluation. Pixel error, frame rate and packet loss are unrelated to text quality.

Fundamentals of GenAI (6 questions)

  1. Question 13

    What is a foundation model in generative AI?

    1. AA model that works only on a single predefined task
    2. BA rule-based system with fixed if-then statements
    3. CA large model pre-trained on broad data that can be adapted to many downstream tasks
    4. DA dataset used to store embeddings
    Show answer and explanation
    Correct answer: C

    Foundation models are large, pre-trained models that can be adapted or prompted for many tasks. Single-task models, datasets and rule-based systems do not match this definition.

  2. Question 14

    What is a token in the context of large language models?

    1. AA cryptographic key that unlocks the model
    2. BA billing unit for compute only
    3. CA unit of text, such as a word piece, that the model processes as input or output
    4. DA type of neural network layer
    Show answer and explanation
    Correct answer: C

    Tokens are the units models read and generate, and they can be whole words or parts of words. They are not keys, and although token counts affect billing, a token is not a billing unit alone or a layer.

  3. Question 15

    Which term describes the maximum amount of text, measured in tokens, that a model can consider at one time?

    1. AContext window
    2. BBatch normalization
    3. CLearning rate
    4. DEpoch count
    Show answer and explanation
    Correct answer: A

    The context window is the amount of input and prior output the model can attend to in one request. Learning rate and epoch count are training settings, and batch normalization is a layer technique.

  4. Question 16

    A developer notices that a model's responses become more random when the temperature setting is increased. Which explanation is correct?

    1. AHigher temperature retrains the model after each request
    2. BHigher temperature makes the context window larger
    3. CHigher temperature reduces the number of tokens generated
    4. DHigher temperature flattens the probability distribution, so less likely tokens are sampled more often
    Show answer and explanation
    Correct answer: D

    Temperature scales the probabilities used for sampling, so higher values make less likely tokens more probable and increase variety. It does not change token limits, retrain models or enlarge context windows.

  5. Question 17

    Which technique gives a model a few examples inside the prompt to show the desired output format?

    1. AModel distillation
    2. BFeature hashing
    3. CFew-shot prompting
    4. DGradient clipping
    Show answer and explanation
    Correct answer: C

    Few-shot prompting includes examples in the prompt to guide the model's behavior without changing its weights. Distillation, gradient clipping and feature hashing are different techniques.

  6. Question 18

    What is a hallucination in a generative AI model?

    1. AA model crash caused by insufficient memory
    2. BA high temperature setting chosen by the user
    3. CA confident output that is factually incorrect or not supported by the input or sources
    4. DA model that refuses to answer
    Show answer and explanation
    Correct answer: C

    Hallucinations are plausible-sounding outputs that are not grounded in facts or sources. Crashes, temperature settings and refusals are different behaviors.

Security, Compliance, and Governance for AI Solutions (6 questions)

  1. Question 19

    A company wants to ensure that only approved users can invoke a generative AI model in Amazon Bedrock. Which control should be used?

    1. ASharing one long-term IAM access key across the developer team for service calls
    2. BDisabling AWS CloudTrail logging in the account so that Bedrock usage stays private
    3. CMaking the Bedrock runtime endpoint public with no authentication
    4. DIAM policies that grant bedrock invoke permissions only to approved roles
    Show answer and explanation
    Correct answer: D

    IAM policies restrict which principals can invoke Bedrock models, which enforces least privilege. Public endpoints, shared keys and disabled audit trails weaken security and governance.

  2. Question 20

    Which AWS service records API activity for AI services so that the company can audit who invoked a model and when?

    1. AAWS CloudTrail
    2. BAmazon Textract
    3. CAmazon Polly
    4. DAmazon Transcribe
    Show answer and explanation
    Correct answer: A

    CloudTrail records API calls including model invocations for auditing. Polly, Transcribe and Textract are AI services themselves and do not provide audit trails.

  3. Question 21

    A healthcare company must protect training data that contains personal health information stored in Amazon S3. Which service helps discover and protect sensitive data in S3?

    1. AAmazon Lex
    2. BAmazon Macie
    3. CAmazon Forecast
    4. DAWS Snow Family
    Show answer and explanation
    Correct answer: B

    Amazon Macie discovers and classifies sensitive data such as personal information in S3. Lex, Forecast and Snow are not data discovery services for S3.

  4. Question 22

    Which principle should guide the encryption of data used to train and run AI models on AWS?

    1. AEncrypting data at rest and in transit using managed keys with appropriate access controls
    2. BSending training data over public HTTP endpoints during development for convenience
    3. CStoring raw training data unencrypted in S3 buckets for faster model access
    4. DSharing encryption keys openly in internal wiki pages and project documentation
    Show answer and explanation
    Correct answer: A

    Encryption at rest and in transit with managed keys and access controls protects sensitive training and inference data. Unencrypted storage, plain HTTP and shared keys in documents expose it.

  5. Question 23

    A company wants to prove to auditors that its AI systems comply with its own policies over time. Which AWS service helps evaluate resource configurations against rules continuously?

    1. AAmazon Personalize
    2. BAWS Config
    3. CAmazon Comprehend
    4. DAWS Snowcone
    Show answer and explanation
    Correct answer: B

    AWS Config records configurations and evaluates them against rules, providing continuous compliance evidence. Comprehend, Personalize and Snowcone do not evaluate configuration compliance.

  6. Question 24

    Which AWS service provides a catalog of compliance reports and certifications that customers can use as evidence for audits?

    1. AAWS Artifact
    2. BAmazon Lightsail
    3. CAmazon Kendra
    4. DAWS Cloud9
    Show answer and explanation
    Correct answer: A

    AWS Artifact provides compliance reports and agreements that support audit evidence. Kendra is search, Cloud9 is an IDE and Lightsail is simple compute.

Guidelines for Responsible AI (6 questions)

  1. Question 25

    A lending company's model approves applications at very different rates for two demographic groups with similar credit profiles. Which concept describes this issue?

    1. ABias and fairness problems in model outcomes
    2. BModel drift from shifts in incoming data
    3. CLatency in inference responses during peak
    4. DData residency restrictions by region
    Show answer and explanation
    Correct answer: A

    Different outcomes for similar profiles across groups indicates bias or unfairness. Drift refers to changing data over time, latency is a performance measure, and residency is a data location requirement.

  2. Question 26

    Which Amazon SageMaker capability helps identify potential bias in training data and in model predictions?

    1. ASageMaker Feature Store only
    2. BSageMaker Ground Truth labeling only
    3. CSageMaker Edge Manager
    4. DSageMaker Clarify
    Show answer and explanation
    Correct answer: D

    SageMaker Clarify detects bias in datasets and models and explains predictions. Feature Store manages features, Ground Truth labels data, and Edge Manager deploys models to devices.

  3. Question 27

    Which AWS feature lets developers define content filters, denied topics, and sensitive information rules applied to model inputs and outputs?

    1. AAWS Trusted Advisor
    2. BAmazon Inspector
    3. CAmazon Bedrock batch inference only
    4. DAmazon Bedrock Guardrails
    Show answer and explanation
    Correct answer: D

    Bedrock Guardrails define policies such as denied topics, content filters and sensitive information handling for inputs and outputs. Batch inference runs jobs, Trusted Advisor gives best-practice checks, and Inspector scans for vulnerabilities.

  4. Question 28

    Which practice improves transparency for stakeholders who need to understand a model's intended use, limitations, and training data?

    1. APublishing model cards that document purpose, data sources, evaluation results, and limitations
    2. BRemoving the description of training data sources from the release documentation today
    3. CKeeping the model's documentation private to the development team and internal staff
    4. DHiding the evaluation results from external stakeholders so that follow-up questions are easily deflected
    Show answer and explanation
    Correct answer: A

    Model cards communicate intended use, data, evaluations and limitations, which supports informed decisions. Private-only documentation, hidden results and removed data information reduce transparency.

  5. Question 29

    A company uses a generative model for customer communications and wants to prevent the model from producing harmful content. Which combination is most appropriate?

    1. ANo content filters, because the model is from a trusted provider
    2. BContent filters and human review for high-risk outputs, with ongoing monitoring
    3. CAllowing the model to publish outputs directly without manual review
    4. DLimiting monitoring to uptime checks and basic service availability metrics
    Show answer and explanation
    Correct answer: B

    Content filters, human review for high-risk outputs and ongoing monitoring form a layered approach to responsible use. Trusting the provider alone, publishing unreviewed and uptime-only monitoring leave gaps.

  6. Question 30

    Which term describes the principle that a model's outputs should be explainable to the people affected by its decisions?

    1. AExplainability
    2. BReplication lag
    3. CElasticity
    4. DMulti-tenancy
    Show answer and explanation
    Correct answer: A

    Explainability means that people can understand the factors behind a model's decisions. Elasticity, replication lag and multi-tenancy are cloud architecture concepts.

Want more AIF-C01 questions?

The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.

Full question bank · 100 questions
$59$84

Both formats together. The best value.

Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.