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
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)
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?
- ARegression
- BAnomaly detection with no labels
- CClustering
- DReinforcement learning
Show answer and explanationHide answer
Correct answer: APredicting 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.
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?
- ASupervised classification with known labels
- BReinforcement learning with a reward for each email
- CRegression on the email length
- DUnsupervised clustering
Show answer and explanationHide answer
Correct answer: DUnsupervised 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.
Question 3
Which statement best describes overfitting in a machine learning model?
- AThe model performs equally well on training and new data
- BThe model learns noise in the training data and performs poorly on new data
- CThe model is too simple to capture any pattern
- DThe model trains faster when the dataset is larger
Show answer and explanationHide answer
Correct answer: BOverfitting 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.
Question 4
A team splits its dataset into training, validation, and test sets. What is the main purpose of the test set?
- AChoosing the batch size during training
- BStoring the model artifacts
- CTraining the model parameters
- DEstimating how well the final model generalizes to unseen data
Show answer and explanationHide answer
Correct answer: DThe 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.
Question 5
Which AWS service provides a managed environment to build, train, and deploy machine learning models at scale?
- AAmazon SageMaker
- BAWS Budgets
- CAmazon Rekognition
- DAmazon Polly
Show answer and explanationHide answer
Correct answer: AAmazon 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.
Question 6
A company wants to extract text, tables, and forms from scanned invoices without training a custom model. Which service should be used?
- AAmazon Transcribe
- BAmazon Translate
- CAmazon Textract
- DAmazon Lex
Show answer and explanationHide answer
Correct answer: CAmazon 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)
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?
- AIncreasing the temperature to 1.5
- BRetrieval Augmented Generation (RAG) with a knowledge base over the documents
- CFine-tuning the model once a year on old policies
- DAsking the model to memorize the documents in its prompt each time without retrieval
Show answer and explanationHide answer
Correct answer: BRAG 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.
Question 8
Which Amazon Bedrock feature helps build RAG applications by connecting a foundation model to data sources managed in a knowledge base?
- AAmazon Bedrock batch inference with no data source
- BKnowledge Bases for Amazon Bedrock
- CAmazon Bedrock Guardrails only
- DAmazon Bedrock model import of custom weights
Show answer and explanationHide answer
Correct answer: BKnowledge 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.
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?
- AFine-tuning the model on the labeled domain dataset
- BUsing the model without any domain data
- CChanging the model's name in the prompt
- DReducing the context window to zero
Show answer and explanationHide answer
Correct answer: AFine-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.
Question 10
Which technique teaches a model to follow instructions better by training it on pairs of instructions and desired responses?
- APrincipal component analysis
- BHyperparameter sweeping only
- CFeature scaling
- DInstruction tuning
Show answer and explanationHide answer
Correct answer: DInstruction tuning trains on instruction and response pairs to improve following tasks. PCA reduces dimensionality, sweeping tunes hyperparameters, and scaling is a preprocessing step.
Question 11
A company wants to evaluate several foundation models on its own tasks before choosing one. Which approach is best?
- ARunning an evaluation with representative prompts and measuring quality, cost, and latency for each model
- BTesting only one prompt on one model
- CChoosing the model with the largest number of parameters without testing
- DChoosing the model whose name sounds most advanced
Show answer and explanationHide answer
Correct answer: AEvaluating 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.
Question 12
Which metric category is used to judge the quality of a generated summary against reference summaries?
- APacket loss percentage
- BROUGE-style overlap metrics
- CMean squared error on pixel values
- DFrame rate of the video stream
Show answer and explanationHide answer
Correct answer: BROUGE 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)
Question 13
What is a foundation model in generative AI?
- AA model that works only on a single predefined task
- BA rule-based system with fixed if-then statements
- CA large model pre-trained on broad data that can be adapted to many downstream tasks
- DA dataset used to store embeddings
Show answer and explanationHide answer
Correct answer: CFoundation 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.
Question 14
What is a token in the context of large language models?
- AA cryptographic key that unlocks the model
- BA billing unit for compute only
- CA unit of text, such as a word piece, that the model processes as input or output
- DA type of neural network layer
Show answer and explanationHide answer
Correct answer: CTokens 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.
Question 15
Which term describes the maximum amount of text, measured in tokens, that a model can consider at one time?
- AContext window
- BBatch normalization
- CLearning rate
- DEpoch count
Show answer and explanationHide answer
Correct answer: AThe 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.
Question 16
A developer notices that a model's responses become more random when the temperature setting is increased. Which explanation is correct?
- AHigher temperature retrains the model after each request
- BHigher temperature makes the context window larger
- CHigher temperature reduces the number of tokens generated
- DHigher temperature flattens the probability distribution, so less likely tokens are sampled more often
Show answer and explanationHide answer
Correct answer: DTemperature 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.
Question 17
Which technique gives a model a few examples inside the prompt to show the desired output format?
- AModel distillation
- BFeature hashing
- CFew-shot prompting
- DGradient clipping
Show answer and explanationHide answer
Correct answer: CFew-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.
Question 18
What is a hallucination in a generative AI model?
- AA model crash caused by insufficient memory
- BA high temperature setting chosen by the user
- CA confident output that is factually incorrect or not supported by the input or sources
- DA model that refuses to answer
Show answer and explanationHide answer
Correct answer: CHallucinations 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)
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?
- ASharing one long-term IAM access key across the developer team for service calls
- BDisabling AWS CloudTrail logging in the account so that Bedrock usage stays private
- CMaking the Bedrock runtime endpoint public with no authentication
- DIAM policies that grant bedrock invoke permissions only to approved roles
Show answer and explanationHide answer
Correct answer: DIAM policies restrict which principals can invoke Bedrock models, which enforces least privilege. Public endpoints, shared keys and disabled audit trails weaken security and governance.
Question 20
Which AWS service records API activity for AI services so that the company can audit who invoked a model and when?
- AAWS CloudTrail
- BAmazon Textract
- CAmazon Polly
- DAmazon Transcribe
Show answer and explanationHide answer
Correct answer: ACloudTrail records API calls including model invocations for auditing. Polly, Transcribe and Textract are AI services themselves and do not provide audit trails.
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?
- AAmazon Lex
- BAmazon Macie
- CAmazon Forecast
- DAWS Snow Family
Show answer and explanationHide answer
Correct answer: BAmazon Macie discovers and classifies sensitive data such as personal information in S3. Lex, Forecast and Snow are not data discovery services for S3.
Question 22
Which principle should guide the encryption of data used to train and run AI models on AWS?
- AEncrypting data at rest and in transit using managed keys with appropriate access controls
- BSending training data over public HTTP endpoints during development for convenience
- CStoring raw training data unencrypted in S3 buckets for faster model access
- DSharing encryption keys openly in internal wiki pages and project documentation
Show answer and explanationHide answer
Correct answer: AEncryption 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.
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?
- AAmazon Personalize
- BAWS Config
- CAmazon Comprehend
- DAWS Snowcone
Show answer and explanationHide answer
Correct answer: BAWS Config records configurations and evaluates them against rules, providing continuous compliance evidence. Comprehend, Personalize and Snowcone do not evaluate configuration compliance.
Question 24
Which AWS service provides a catalog of compliance reports and certifications that customers can use as evidence for audits?
- AAWS Artifact
- BAmazon Lightsail
- CAmazon Kendra
- DAWS Cloud9
Show answer and explanationHide answer
Correct answer: AAWS 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)
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?
- ABias and fairness problems in model outcomes
- BModel drift from shifts in incoming data
- CLatency in inference responses during peak
- DData residency restrictions by region
Show answer and explanationHide answer
Correct answer: ADifferent 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.
Question 26
Which Amazon SageMaker capability helps identify potential bias in training data and in model predictions?
- ASageMaker Feature Store only
- BSageMaker Ground Truth labeling only
- CSageMaker Edge Manager
- DSageMaker Clarify
Show answer and explanationHide answer
Correct answer: DSageMaker 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.
Question 27
Which AWS feature lets developers define content filters, denied topics, and sensitive information rules applied to model inputs and outputs?
- AAWS Trusted Advisor
- BAmazon Inspector
- CAmazon Bedrock batch inference only
- DAmazon Bedrock Guardrails
Show answer and explanationHide answer
Correct answer: DBedrock 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.
Question 28
Which practice improves transparency for stakeholders who need to understand a model's intended use, limitations, and training data?
- APublishing model cards that document purpose, data sources, evaluation results, and limitations
- BRemoving the description of training data sources from the release documentation today
- CKeeping the model's documentation private to the development team and internal staff
- DHiding the evaluation results from external stakeholders so that follow-up questions are easily deflected
Show answer and explanationHide answer
Correct answer: AModel cards communicate intended use, data, evaluations and limitations, which supports informed decisions. Private-only documentation, hidden results and removed data information reduce transparency.
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?
- ANo content filters, because the model is from a trusted provider
- BContent filters and human review for high-risk outputs, with ongoing monitoring
- CAllowing the model to publish outputs directly without manual review
- DLimiting monitoring to uptime checks and basic service availability metrics
Show answer and explanationHide answer
Correct answer: BContent 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.
Question 30
Which term describes the principle that a model's outputs should be explainable to the people affected by its decisions?
- AExplainability
- BReplication lag
- CElasticity
- DMulti-tenancy
Show answer and explanationHide answer
Correct answer: AExplainability 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.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.