20 original questions for AWS Certified Machine Learning Engineer – Associate, grouped by the exam’s 4 domains. Open “Show answer” under each one for the right answer and why every option is right or wrong.
Data Preparation for ML and AI
28% of the scored exam · 6 sample questions
Question 1
A company is building a retrieval-augmented assistant on Amazon Bedrock Knowledge Bases over about 40 million document chunks. Most chunks are queried rarely, sub-second retrieval is acceptable, and the main goal is to keep the cost of storing the embeddings as low as possible without running a cluster. Which vector store should the knowledge base use?
AAn Amazon DynamoDB table with one item per embedding
BAmazon S3 Vectors
CAn Amazon OpenSearch Service domain with dedicated data nodes
DAmazon Aurora PostgreSQL with pgvector on provisioned instances
Show answerHide answer
Correct answer: B. S3 Vectors stores and queries vectors without any infrastructure to provision, at low storage cost. It works as a Bedrock knowledge base vector store, and sub-second latency is enough for infrequent queries.
A. DynamoDB has no built-in vector similarity search, so the assistant couldn't retrieve the chunks nearest to a question.
B. Correct. S3 Vectors is purpose-built, cost-optimized vector storage with no infrastructure to provision. It can be a Bedrock knowledge base's vector store, and it answers infrequent queries in under a second.
C. A provisioned OpenSearch domain gives high query rates and low latency, but you pay for the cluster all the time, which isn't the cheapest choice for rarely queried vectors.
D. pgvector on Aurora works, but you pay for database instances around the clock, which costs more for a large store that is rarely queried.
Analysts with little coding experience need to explore a tabular dataset of loan applications, check it for target leakage and correlated features, apply common transformations such as encoding categories and filling missing values, and then export the steps so a pipeline can repeat them. Which AWS tool fits best?
AAn Amazon Managed Service for Apache Flink application
BAmazon Athena queries written for each check
CAWS Glue crawlers that catalog the dataset
DAmazon SageMaker Data Wrangler, in SageMaker Canvas
Show answerHide answer
Correct answer: D. Data Wrangler, now part of SageMaker Canvas, provides visual and natural-language data preparation with built-in analyses such as target leakage, and exports the workflow to other services.
A. Managed Service for Apache Flink processes streaming data in real time; it isn't a data-preparation tool for a tabular dataset.
B. Athena runs SQL. Analysts would have to write every check and transformation themselves, with no built-in leakage analysis or reusable flow.
C. Crawlers infer schemas for the Data Catalog. They don't explore, analyze or transform the data.
D. Correct. Data Wrangler offers a visual and natural-language interface to explore and transform data, with built-in analyses such as target leakage, and it exports the preparation workflow.
A team trains a binary fraud classifier with the Amazon SageMaker AI built-in XGBoost algorithm. Only about 1% of the training rows are fraud, and the model now predicts “not fraud” for almost every case. Which hyperparameter change directly addresses the class imbalance?
ASet scale_pos_weight to about negatives ÷ positives
BIncrease num_round to train more boosting rounds
CSet eta to 1 so each tree counts more
DIncrease max_depth so trees grow deeper
Show answerHide answer
Correct answer: A. XGBoost's scale_pos_weight controls the balance of positive and negative weights. For unbalanced classes, a typical value is the number of negative cases divided by the number of positive cases.
A. Correct. scale_pos_weight raises the weight of the positive class. For unbalanced classes, SageMaker's documentation suggests the number of negative cases divided by the number of positive cases as a typical value.
B. More rounds give the model more time to fit the same imbalanced data; they don't change how much each class counts.
C. A larger learning rate makes each tree's contribution bigger and training less stable; it doesn't rebalance the classes.
D. Deeper trees fit the training data more closely, but they don't rebalance the classes and can overfit the majority class.
An insurer receives claims as scanned PDF forms, phone photos of the damage and recorded phone calls. It wants all of them turned into structured fields, such as claim number, damage description and call summary, with one managed service and without training its own models. Which service fits?
AA SageMaker AI model trained on labeled claims
BAmazon Textract for every file type
CAmazon Bedrock Data Automation
DAmazon Comprehend custom entity recognition
Show answerHide answer
Correct answer: C. Bedrock Data Automation transforms unstructured, multimodal content, including documents, images, audio and video, into structured formats with generative AI.
A. Training a custom model needs labeled data and machine learning work that the insurer wants to avoid.
B. Textract extracts text and data from documents and images, but it can't process recorded phone calls.
C. Correct. Bedrock Data Automation uses generative AI to turn documents, images, audio and video into structured output, with no models to train.
D. Comprehend analyzes text. It can't read images or audio, and custom entity recognition needs labeled training data.
A nightly AWS Glue ETL job prepares training data for a model. Last month a source system started sending blank customer IDs and negative ages, and the bad rows reached training unnoticed. The team wants the job itself to evaluate declarative rules, such as completeness and value ranges, and stop or flag the data when they fail. What should it use?
AAWS Config rules on the S3 bucket
BAmazon Macie sensitive data discovery jobs
CAWS Glue Data Quality rules (DQDL)
DAmazon CloudWatch alarms on the job's duration
Show answerHide answer
Correct answer: C. AWS Glue Data Quality evaluates data against rules written in DQDL, a language for data quality rules, so an ETL job can catch incomplete or out-of-range data before it's used.
A. AWS Config evaluates how resources are configured, not the contents of the data in a bucket.
B. Macie finds sensitive data such as personal information; it doesn't check completeness or value ranges.
C. Correct. Glue Data Quality evaluates rules written in Data Quality Definition Language (DQDL), such as completeness and column value ranges, so failing data can be stopped or flagged in the job.
D. The job's duration says nothing about blank IDs or impossible values in the rows.
A furniture retailer wants shoppers to type a description, such as “green velvet armchair”, and see matching product photos, including products whose listings have little or no useful text. Which approach fits best?
AEmbed photos and queries with Titan Multimodal Embeddings
BLabel each photo with Amazon Rekognition and match the labels
CFine-tune an image generation model on the catalog
DRun keyword search over the product titles in OpenSearch
Show answerHide answer
Correct answer: A. Amazon Titan Multimodal Embeddings translates text, images or both into embeddings in a shared semantic space, which supports searching for images by text.
A. Correct. Titan Multimodal Embeddings puts text and images into the same semantic space, so a text query can be matched against photos by vector similarity.
B. Rekognition labels describe common objects and scenes, so they miss much of the detail in a shopper's own words, such as fabric or style.
C. Generating new images doesn't help shoppers find the products the retailer actually sells.
D. Keyword search depends on the listing text, which is missing or unhelpful for many of these products.
A support chatbot on Amazon Bedrock sends every request to one large model. Most questions are simple and a few are complex. The team wants to lower cost without losing answer quality on the hard questions, and without building its own request classifier. What should it use?
ASwitch every request to a smaller model
BTurn on prompt caching for all requests
CBuy Provisioned Throughput for the large model
DBedrock intelligent prompt routing
Show answerHide answer
Correct answer: D. Bedrock intelligent prompt routing routes each request between models in the same family based on predicted response quality, which optimizes both quality and cost.
A. A smaller model for everything saves money but loses quality on the complex questions.
B. Prompt caching speeds up repeated prompt prefixes; it doesn't choose a cheaper model for simple questions.
C. Provisioned Throughput reserves capacity for one model; it doesn't send simple requests to a cheaper model.
D. Correct. Intelligent prompt routing predicts, for each request, the response quality of models in the same family and routes it to the best fit, balancing quality and cost.
A team runs SageMaker AI automatic model tuning with 200 training jobs. Many jobs are clearly worse than the best ones after a few epochs, but they keep running to the end and waste compute. What should the team turn on?
AManaged Spot Training for every job
BEarly stopping for the tuning job
CA different search strategy, such as random search
DA higher limit on parallel training jobs
Show answerHide answer
Correct answer: B. Early stopping lets automatic model tuning stop training jobs whose objective metric is worse than the median of previous jobs at the same point, saving compute.
A. Spot capacity lowers the price per hour, but poor jobs still run to the end.
B. Correct. With early stopping, automatic model tuning compares a job's objective metric with the median of earlier jobs at the same epoch and stops jobs that are unlikely to do better.
C. The search strategy changes which hyperparameters are tried; it doesn't stop poor jobs partway through.
D. More parallel jobs finish the tuning sooner but spend the same compute on the poor ones.
A deep learning training job on SageMaker AI runs for hours, but its training loss stops improving after the first epoch, and the team suspects vanishing gradients. They want the problem detected automatically while training runs, and the job stopped when it happens, so they don't pay for wasted hours. Which TWO actions should they take?
Choose TWO.
ATurn on AWS CloudTrail data events for the training job.
BAttach SageMaker Debugger built-in rules such as VanishingGradient and LossNotDecreasing.
CEnable SageMaker Model Monitor for the training job.
DConfigure the Debugger StopTraining built-in action for those rules.
EIncrease the size of the training instance.
Show answerHide answer
Correct answers: B and D. SageMaker Debugger built-in rules detect training problems such as vanishing gradients and a loss that isn't decreasing, and the StopTraining built-in action stops the job when a rule triggers.
A. CloudTrail records API calls, not the training job's gradients or loss.
B. Correct. Debugger's built-in rules analyze the training job as it runs and detect issues such as vanishing gradients or a loss that stops decreasing.
C. Model Monitor watches data and model quality at deployed endpoints, not training jobs.
D. Correct. The StopTraining built-in action ends the training job when a Debugger rule finds an issue, so no more hours are billed.
E. A bigger instance trains faster but doesn't detect or fix vanishing gradients.
Several teams use similar prompts for an Amazon Bedrock application, each copied into its own code. They want one place to store prompt templates with variables, compare variants of a prompt, keep versions, and have the application call a specific version. What should they use?
AAWS Systems Manager Parameter Store
BAmazon Bedrock Prompt Management
CAmazon Bedrock Guardrails
DA shared Amazon S3 bucket of prompt files
Show answerHide answer
Correct answer: B. Bedrock Prompt Management lets teams build reusable prompts with variables, compare variants, save versions and use a specific version in their applications.
A. Parameter Store keeps versioned values, but it can't run or compare prompt variants against models.
B. Correct. Prompt management stores reusable prompts with variables and inference settings, lets you compare variants and save versions, and integrates a chosen version into applications.
C. Guardrails filter harmful content and sensitive information; they don't store or version prompts.
D. S3 can store and version files, but it can't test or compare prompt variants against models, and each team must wire the files into its code.
A company wants an Amazon Bedrock model to write SQL queries that follow its internal conventions. It has thousands of example requests but no reference answers, and it can automatically score any generated query by running it against a test database. Which customization method fits?
AReinforcement fine-tuning
BDistillation from a larger model
CRAG over the example requests
DSupervised fine-tuning
Show answerHide answer
Correct answer: A. Reinforcement fine-tuning in Bedrock optimizes a model with reward functions that grade its outputs, so it works without labeled input-output pairs.
A. Correct. Reinforcement fine-tuning learns from reward signals instead of labeled answers. A reward function, for example in AWS Lambda, scores each generated query, and the model is optimized to earn higher scores.
B. Distillation teaches a smaller model to copy a larger model's answers; it doesn't use the company's own scoring of its conventions.
C. Retrieval adds documents to each prompt at query time; requests without answers give the model nothing to learn the conventions from.
D. Supervised fine-tuning needs labeled input-output pairs, and the company has no reference answers.
Deployment and Orchestration of ML and AI Workflows
24% of the scored exam · 5 sample questions
Question 12
A team has trained a SageMaker AI model and must choose an instance type for a real-time endpoint that meets a latency target at its expected request rate, at the lowest cost. They don't want to benchmark instance types by hand. What should they use?
AAWS Compute Optimizer
BSageMaker Model Monitor
CSageMaker AI Inference Recommender
DAWS Trusted Advisor checks
Show answerHide answer
Correct answer: C. SageMaker AI Inference Recommender runs load tests across instance types and recommends the instance and configuration that give the best performance at the lowest cost.
A. Compute Optimizer recommends sizes from the utilization of resources that are already running; it doesn't load-test a model across instance types before deployment.
B. Model Monitor watches data and model quality after deployment; it doesn't choose instance types.
C. Correct. Inference Recommender automates load testing across SageMaker AI instance types and recommends the instance type and configuration with the best performance at the lowest cost.
D. Trusted Advisor reports on best practices for existing resources; it doesn't benchmark a model.
A company fine-tuned an open-weight Llama model on its own GPUs, and the weights are stored in Hugging Face safetensors format. It wants to serve the model through the same Amazon Bedrock API as its other models, without managing inference servers. What should it do?
AFine-tune a Bedrock base model on the same data again
BHost the model on EC2 GPU instances behind a load balancer
CAdd the weights to a Bedrock knowledge base
DImport the weights with Bedrock Custom Model Import
Show answerHide answer
Correct answer: D. Bedrock Custom Model Import imports models that you customized elsewhere, in supported architectures and safetensors format, so they can be invoked through Bedrock without managing servers.
A. Fine-tuning again repeats work the company has already done, and the result may differ from the model it built.
B. EC2 hosting means managing inference servers, which the company wants to avoid, and it doesn't use the Bedrock API.
C. Knowledge bases store and retrieve documents for RAG; they can't host model weights.
D. Correct. Custom Model Import brings models customized elsewhere, in supported architectures such as Llama and in safetensors format from Amazon S3, into Bedrock, where they're invoked like other models.
A team is building an AI agent that must call three internal REST APIs and two AWS Lambda functions as tools. They want all five exposed to the agent as Model Context Protocol (MCP) tools through one managed endpoint with authentication, without writing an MCP server for each. What should they use?
AAmazon Bedrock AgentCore Gateway
BAn Amazon SQS queue between the agent and each tool
CAn Amazon EventBridge bus that routes the tool calls
DAmazon API Gateway REST APIs in front of each tool
Show answerHide answer
Correct answer: A. Amazon Bedrock AgentCore Gateway turns APIs and Lambda functions into Model Context Protocol tools behind one managed, authenticated endpoint.
A. Correct. AgentCore Gateway converts APIs, described with OpenAPI or Smithy, and Lambda functions into MCP-compatible tools behind one endpoint, with authentication for incoming and outgoing calls.
B. A queue makes calls asynchronous; it doesn't expose the tools to the agent over MCP.
C. An event bus routes events to targets; the agent can't discover and call it as a set of MCP tools.
D. API Gateway exposes REST endpoints, but the team would still need MCP servers so the agent can discover and call them as tools.
An Amazon Bedrock knowledge base uses an Amazon S3 bucket as its data source. Every night a process adds and updates policy documents in the bucket, but the next day the assistant still answers from the old versions. What should the team add?
ATurn on S3 Versioning for the source bucket
BBuy Provisioned Throughput for the generation model
CRun an ingestion job after each nightly update
DUse a larger chunk size for the data source
Show answerHide answer
Correct answer: C. A Bedrock knowledge base picks up changes to its data source only when an ingestion job syncs it, re-ingesting new and changed documents.
A. Versioning keeps old object versions in S3, but the knowledge base still holds the chunks from its last sync.
B. Provisioned Throughput adds model capacity; the model still receives the outdated chunks.
C. Correct. A knowledge base reflects changes only after it syncs: an ingestion job re-ingests new and changed documents, so run one (StartIngestionJob) after each update, for example from the nightly process.
D. Chunk size changes how documents are split; it doesn't bring the new versions into the index.
Data scientists run dozens of short SageMaker AI training jobs in a row, with the same instance type, while they iterate on code. Each job waits several minutes for its instances to start, which is longer than the training itself. What reduces this wait?
ALarger training instances
BManaged warm pools with a keep-alive period
CSageMaker AI automatic model tuning
DManaged Spot Training for each job
Show answerHide answer
Correct answer: B. SageMaker AI managed warm pools keep a finished job's resources alive for a set period, so later jobs with a matching configuration skip the cold start.
A. Bigger instances may train faster, but every job still waits for new instances to start.
B. Correct. With KeepAlivePeriodInSeconds set, the job's resources stay in a warm pool after it finishes, so the next matching job starts without a cold start.
C. Tuning runs many jobs to search hyperparameters; it doesn't remove the startup wait for the scientists' own jobs.
D. Spot capacity lowers cost but can add waiting for capacity; it doesn't keep instances ready between jobs.
Operating, Monitoring, and Securing ML and AI Solutions
24% of the scored exam · 4 sample questions
Question 17
A model behind a SageMaker AI real-time endpoint was trained on last year's customer data. The team wants to be alerted automatically when the statistics of incoming feature data drift away from the training data. Which TWO steps are part of setting this up with SageMaker Model Monitor?
Choose TWO.
ACreate a baseline from the training dataset, which computes statistics and suggests constraints.
BRetrain the model every night, whether or not the data has drifted.
CCreate a monitoring schedule that analyzes data captured from the endpoint and reports violations.
DEnable SageMaker Debugger rules on the endpoint.
ETurn on AWS X-Ray tracing for the endpoint.
Show answerHide answer
Correct answers: A and C. Model Monitor compares captured inference data with a baseline built from the training data. A monitoring schedule runs the comparison, reports violations and publishes metrics to CloudWatch.
A. Correct. The baseline computes statistics on the training data and suggests constraints that later data is compared with.
B. Retraining every night adds cost without telling anyone whether the data has drifted.
C. Correct. The schedule regularly analyzes the captured inference data against the baseline and reports violations, with metrics in CloudWatch for alarms.
D. Debugger rules analyze training jobs, not the data that reaches an endpoint.
E. X-Ray traces requests through services; it doesn't compare feature statistics with the training data.
An application sends the same 30,000-token product manual to an Amazon Bedrock model with every customer question, followed by a short question that changes each time. Response latency and input token costs are both high. Which change helps most?
ARaise the maximum number of output tokens
BUse batch inference for the customer questions
CSend the manual in a different file format
DTurn on prompt caching for the manual
Show answerHide answer
Correct answer: D. Bedrock prompt caching reuses a static prompt prefix across requests, reducing inference latency and input token costs. Support varies by model.
A. More output tokens make responses longer, which adds cost and latency instead of reducing them.
B. Batch inference processes requests offline, so customers wouldn't get interactive answers.
C. The file format doesn't change how many tokens the model processes on each request.
D. Correct. Prompt caching stores the unchanging prefix so later requests reuse it, which reduces latency and input token costs; the question that changes goes after the cached part.
A company's Amazon Bedrock spend is usually steady, but last month a bug made an agent loop and call a model many thousands of times, and nobody noticed until the bill arrived. Finance wants alerts on unusual spikes in spend without setting a fixed threshold for every service. What should it set up?
AAWS Cost Anomaly Detection with an alert subscription
BAWS Trusted Advisor cost optimization checks
CAWS CloudTrail Lake queries run each quarter
DA monthly AWS Budgets report emailed at month end
Show answerHide answer
Correct answer: A. AWS Cost Anomaly Detection uses machine learning to detect anomalous spend patterns across AWS services and alerts you by email or Amazon SNS.
A. Correct. Cost Anomaly Detection uses machine learning models to spot unusual spend patterns across services and sends alerts, so no fixed threshold per service is needed.
B. Trusted Advisor suggests savings on existing resources; it doesn't alert on sudden spikes in spend.
C. Quarterly queries over API activity are far too late to catch a runaway loop.
D. A report at month end arrives after the money is spent, and it doesn't detect unusual patterns.
An application should be able to run inference on only one approved foundation model in Amazon Bedrock, even though more models are available in the account. How should the application's IAM role be configured?
AAllow bedrock:* on all resources and log calls in CloudTrail
BAllow bedrock:InvokeModel only on that model's ARN
CAttach the AmazonBedrockFullAccess managed policy
DKeep the approved model ID in an environment variable
Show answerHide answer
Correct answer: B. Bedrock's inference actions, such as InvokeModel, accept foundation-model ARNs as resources, so an IAM policy can limit a role to one approved model.
A. CloudTrail records calls after they happen, and bedrock:* still lets the role invoke any model.
B. Correct. Bedrock supports resource-level permissions on foundation-model ARNs, so the role can invoke only the approved model. Converse requests are covered by the same InvokeModel permission.
C. Full access lets the role invoke every model, and much more besides.
D. An environment variable is configuration, not a control: the code could still call other models.
Written by UpHopp for this page, from the public MLA-C02 exam guide (official guide). These aren’t questions from the real exam, and they aren’t in UpHopp’s practice question bank. Updated November 2026.
Keep going
Practise AWS MLA-C02 with instant feedback
Answer 15 more questions free, with every option explained. Full 65-question mocks run on a 130-minute timer.