Skip to content

MLA-C02 Practice Exam 1: Retail and e-commerce

AWS Certified Machine Learning Engineer – Associate. 65 questions, 10 with more than one correct answer. Real exam: 65 items, 130 minutes, pass at a scaled 720 / 1,000 (aim for 47+ / 65).

Independent practice questions by Core Concept Learning, written from the public exam guide; not official AWS content. Study the free MLA-C02 course

Study mode: check any answer as you go. Or practise under exam conditions: 130 minutes, answers hidden until you submit.

x
0/65
  1. Question 1

    Domain 1: Data Preparation for ML and AI · Task 1.1

    An online retailer keeps 4 TB of order history in an Amazon DynamoDB table that serves the live checkout flow. The ML team needs a full copy in Amazon S3 to train a repeat-purchase model and must not consume the table's read capacity. Which approach BEST meets these requirements?

  2. Question 2

    Domain 1: Data Preparation for ML and AI · Task 1.1

    A marketplace sends clickstream events to Amazon Kinesis Data Streams with the shopper's country code as the partition key. Most traffic comes from one country, and producers receive ProvisionedThroughputExceededException errors on one shard while the other shards stay almost idle. Which change BEST fixes the problem?

  3. Question 3

    Domain 1: Data Preparation for ML and AI · Task 1.1

    A fashion retailer wants its streaming clickstream events stored in Amazon S3 so that analysts can query a few columns with Amazon Athena at low cost. The team does not want to write or run any delivery code. Which ingestion design BEST meets these requirements?

  4. Question 4

    Domain 1: Data Preparation for ML and AI · Task 1.1

    An e-commerce site with 30 million products wants semantic product search. Shoppers often type exact model numbers such as 'TX-4410B' as well as descriptive phrases, and results must return in milliseconds at high query rates. Which vector store BEST meets these requirements?

  5. Question 5

    Domain 1: Data Preparation for ML and AI · Task 1.1

    A grocery delivery app recommends items from features that a Managed Service for Apache Flink application computes from live cart events. The model endpoint needs each shopper's latest features within milliseconds, and the data science team needs the full feature history to build training sets. Which TWO actions BEST meet these requirements? Select TWO.

    Choose 2.

  6. Question 6

    Domain 1: Data Preparation for ML and AI · Task 1.1

    A retailer wants a nightly training set that joins order rows exported from Amazon Aurora with clickstream Parquet files in Amazon S3. The job must run serverless Spark, use tables in the AWS Glue Data Catalog and process only the files that arrived since the last run. Which solution BEST meets these requirements?

  7. Question 7

    Domain 1: Data Preparation for ML and AI · Task 1.1

    A marketplace stores raw order logs in Amazon S3. The logs are read heavily for 30 days, rarely for the next year, and must then be kept for seven years for audits at the lowest possible cost. Which storage configuration BEST meets these requirements?

  8. Question 8

    Domain 1: Data Preparation for ML and AI · Task 1.2

    Merchandising analysts at a retailer clean a weekly supplier product feed: they trim text, standardise units and fix category spellings. They do not write code and want to save the steps as a reusable recipe that runs on a schedule. Which AWS tool BEST fits these requirements?

  9. Question 9

    Domain 1: Data Preparation for ML and AI · Task 1.2

    A retailer trains a linear regression model to predict basket value. The 'product_price' feature has a long right tail, and 'product_id' has 40,000 distinct values. Which TWO feature engineering steps are MOST appropriate? Select TWO.

    Choose 2.

  10. Question 10

    Domain 1: Data Preparation for ML and AI · Task 1.2

    A fashion retailer is building 'shop the look' search. Shoppers either upload a photo or type a description such as 'red linen summer dress', and both must match product images in one index. Which embedding approach BEST meets these requirements?

  11. Question 11

    Domain 1: Data Preparation for ML and AI · Task 1.2

    An appliance retailer runs a Bedrock knowledge base over product manuals in PDF format. The assistant often gives wrong voltage and dimension values, and the team finds that the specification tables were flattened into jumbled text during ingestion. Which change BEST fixes the problem?

  12. Question 12

    Domain 1: Data Preparation for ML and AI · Task 1.2

    An online store wants to fine-tune a model on 80,000 customer support chat transcripts. The transcripts contain customer names, email addresses and card numbers, and none of this personal data may reach the training set. Which approach BEST meets the requirement?

  13. Question 13

    Domain 1: Data Preparation for ML and AI · Task 1.2

    A retailer uses a large Bedrock model to write product descriptions and wants a smaller, cheaper model that writes them almost as well. Model invocation logging has captured six months of prompts and responses, but there is no budget to write new labeled examples. Which data preparation BEST supports this goal?

  14. Question 14

    Domain 1: Data Preparation for ML and AI · Task 1.3

    A retailer's nightly AWS Glue ETL job builds the product feed used for training. The pipeline must stop and alert the team when more than 5% of prices are missing or when duplicate SKUs appear, without anyone reviewing the data by hand. Which solution BEST meets these requirements?

  15. Question 15

    Domain 1: Data Preparation for ML and AI · Task 1.3

    A home-goods retailer already uses SageMaker Ground Truth. It needs bounding boxes drawn on 200,000 product photos by its own merchandising staff, and it wants to cut labeling cost by having a model label the easy images. Which configuration BEST meets these requirements?

  16. Question 16

    Domain 1: Data Preparation for ML and AI · Task 1.3

    A marketplace trains an XGBoost model to flag fraudulent returns. Only 0.5% of the training records are fraud, and the first model scores 99.5% accuracy while catching almost no fraud. Which TWO actions BEST address the problem? Select TWO.

    Choose 2.

  17. Question 17

    Domain 1: Data Preparation for ML and AI · Task 1.3

    A retailer collected 12,000 prompt and response pairs written by support agents to fine-tune a returns assistant. Before training, every pair must be screened for toxic language and personal data, and flagged pairs must be quarantined. Which approach BEST meets these requirements?

  18. Question 18

    Domain 1: Data Preparation for ML and AI · Task 1.3

    A retailer is preparing 60,000 product reviews to fine-tune a review-summary model. Many reviews were posted twice, and sellers copied the same review with small wording changes across similar listings. Which cleaning step BEST addresses this before training?

  19. Question 19

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    An online retailer is choosing an Amazon Bedrock model to write product descriptions. Descriptions must score at least 4 out of 5 on the brand's style rubric, and the retailer wants the lowest cost per description that meets that bar. Which selection approach is BEST?

  20. Question 20

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    A grocery chain receives 50,000 scanned supplier invoices each month. It needs the vendor name, invoice total and every line item with quantity and price, and it has no ML team. Which AWS service BEST meets these requirements?

  21. Question 21

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    A retailer wants store managers to ask questions such as 'What were sweater sales in the Northeast last quarter?' in plain English. The answers live in sales tables in Amazon Redshift, and the managers expect exact totals. Which RAG pattern BEST fits this requirement?

  22. Question 22

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    A mid-sized online store wants personalized 'recommended for you' and 'similar items' carousels within a few weeks. It has interaction, item and user data but no data scientists, and it wants to avoid managing training infrastructure. Which approach BEST meets these requirements?

  23. Question 23

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    A retailer's shopping assistant on Amazon Bedrock uses Amazon Nova Pro for every English prompt. Most prompts are simple order-status questions, but some need careful reasoning about returns policies. The team wants to cut cost with little loss in answer quality. Which approach BEST meets this goal?

  24. Question 24

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1

    A fashion retailer wants a Bedrock-based stylist assistant that always answers in its brand voice and returns a fixed JSON layout. Prompting has not made the style consistent. Prices and stock levels change many times a day and must be correct in every answer. Which TWO strategies BEST meet these requirements? Select TWO.

    Choose 2.

  25. Question 25

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2

    A retailer must forecast weekly demand for 20,000 SKUs across 300 stores. Many SKUs have short histories, and planners want probabilistic forecasts with ranges, not single numbers. Which SageMaker AI built-in algorithm and input format BEST fit this need?

  26. Question 26

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2

    A team tunes a PyTorch product-image classifier with SageMaker AI automatic model tuning. Each training job reports validation accuracy after every epoch, and the team wants the best result in the least total time by dropping weak configurations early. Which tuning strategy BEST meets this goal?

  27. Question 27

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2

    An XGBoost model that predicts which shoppers will churn reaches a training AUC of 0.99 but a validation AUC of only 0.78. Which TWO changes are MOST likely to close this gap? Select TWO.

    Choose 2.

  28. Question 28

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2

    A retailer trains a PyTorch image model on 40 million product photos. The model fits on one GPU, but training on a single ml.g5.2xlarge takes 30 hours, and the team wants it done in a few hours. Which approach BEST reduces training time?

  29. Question 29

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2

    A retailer uses a Bedrock model to extract size, colour and material from supplier product text. Outputs come back in different layouts, which breaks the downstream loader. Which change is the MOST appropriate first step?

  30. Question 30

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3

    A retailer has a new recommendation model and wants to compare its latency, error rate and predictions against the current model on real production traffic. Shoppers must keep seeing only the current model's results during the test. Which approach BEST meets these requirements?

  31. Question 31

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3

    A retailer generates product descriptions and compares them with descriptions written by copywriters. The generated text often uses different words with the same meaning, and the team wants a metric that gives credit for those paraphrases. Which metric BEST fits?

  32. Question 32

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3

    A retailer wants to score 5,000 responses from its shopping assistant for correctness, helpfulness and following instructions, with an explanation for each score. Some responses come from a model hosted outside Amazon Bedrock. Which approach BEST meets these requirements?

  33. Question 33

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3

    A retailer's XGBoost churn model flags a loyal customer as high risk, and the customer service lead asks which features drove that one prediction. SageMaker Clarify is not available to the account. Which approach BEST answers the question?

  34. Question 34

    Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3

    A retailer's Bedrock knowledge base answers questions about warranty terms. The team has a golden set of questions with reference answers and suspects that retrieval misses passages that are needed for a full answer. Which evaluation metric BEST tests this suspicion?

  35. Question 35

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    An online retailer scores all 30 million customers every night with an XGBoost propensity model to choose the next day's email offers. Nobody needs predictions during the day, and the team wants the lowest cost. Which inference option BEST meets these requirements?

  36. Question 36

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    A supermarket chain trains one scikit-learn demand model per store, giving 2,000 small models with the same framework. Most stores call their model only a few times an hour, and an occasional extra second of latency is acceptable. Which hosting strategy is MOST cost-effective?

  37. Question 37

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    A retailer fine-tuned an open-weight Llama model on its own GPU servers and saved the weights in Hugging Face safetensors format. It wants to call the model through Amazon Bedrock APIs, pay only while it runs and avoid managing any instances. Which option BEST meets these requirements?

  38. Question 38

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    A retailer is building a new shopping agent with the Strands Agents framework on Amazon Bedrock AgentCore Runtime. The agent must call an existing order-status Lambda function and an inventory REST API that has an OpenAPI specification. Which approach BEST exposes these as tools?

  39. Question 39

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    A retailer deploys a 70B-parameter LLM to a SageMaker AI endpoint. The deployment fails because the container does not pass health checks, and the logs show that the model was still downloading and loading weights when the checks timed out. Which change BEST fixes the deployment?

  40. Question 40

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1

    A retailer's product-support RAG application often finds the right warranty document among its top 50 matches, but the best passages rank too low to appear in the top 5 that are sent to the model. Which retrieval configuration change BEST fixes this?

  41. Question 41

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2

    A retailer deploys a SageMaker AI real-time endpoint into private subnets that have no internet gateway or NAT gateway. Endpoint creation fails because the container cannot pull its image or download the model artifact. Which TWO additions BEST fix the problem? Select TWO.

    Choose 2.

  42. Question 42

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2

    A retailer runs a SageMaker AI asynchronous endpoint that processes product videos uploaded by sellers. The endpoint scales down to zero instances overnight, but new requests then stay queued and the endpoint never scales back out. Which configuration BEST fixes this?

  43. Question 43

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2

    A retailer's returns-classification model on a SageMaker AI serverless endpoint is idle most of the day, but every morning at 9:00 store staff send a predictable burst of requests and complain about slow first responses. Which change BEST improves the burst latency while keeping costs low?

  44. Question 44

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2

    A retailer's shopping agent runs on Amazon Bedrock AgentCore Runtime. The agent must remember each shopper's clothing sizes and favourite brands across separate visits weeks apart, without the team building its own storage layer. Which approach BEST meets this requirement?

  45. Question 45

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2

    A platform team owns a CloudFormation stack that creates the VPC, private subnets and an endpoint security group. ML teams deploy SageMaker AI endpoints from their own stacks and need those network IDs without copying them by hand. Which approach BEST connects the stacks?

  46. Question 46

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3

    A retailer updates the model behind a production SageMaker AI endpoint. It wants 10% of capacity to move to the new model first, a 10-minute baking period, and an automatic return to the old model if 5XX errors or p99 latency alarms fire. Which approach BEST meets these requirements?

  47. Question 47

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3

    A retailer's AWS CodePipeline uses an AWS CodeConnections connection to its GitHub repository. The new pipeline never starts, and the console shows the connection status as PENDING. Which action BEST resolves the issue?

  48. Question 48

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3

    A retailer receives newly labeled return-fraud data in Amazon S3 every week. It wants retraining to start automatically when the data lands and wants a new model registered for approval only if it beats the current production model. Which TWO actions BEST meet these requirements? Select TWO.

    Choose 2.

  49. Question 49

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3

    A retailer's developers change the prompts of its product-Q&A assistant by editing strings in the Lambda code, and they have no record of which prompt was live last month. The team wants prompts released, versioned and rolled back without code changes. Which approach BEST meets these requirements?

  50. Question 50

    Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3

    A retailer keeps product manuals for its Bedrock knowledge base in Amazon S3, and merchandisers upload or replace manuals throughout the day. Answers must reflect a changed manual within minutes, and only one sync may run per data source at a time. Which design BEST meets these requirements?

  51. Question 51

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1

    A retailer wants to know whether a new recommendation model raises click-through rate for real shoppers. It plans to send 10% of live traffic to the new model on the existing SageMaker AI endpoint and compare results. Which approach BEST supports this comparison?

  52. Question 52

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1

    A retailer's model that predicts which orders will be returned has lost accuracy over three months. The input feature distributions match the training baseline closely, but shoppers' return behaviour has changed. What is MOST likely happening, and how should the team detect it?

  53. Question 53

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1

    A retailer started a new account and must detect feature drift on its SageMaker AI real-time endpoint. SageMaker Model Monitor is not open to new customers. Which design BEST provides drift alerts?

  54. Question 54

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1

    A retailer's shopping assistant streams answers from Amazon Bedrock with ConverseStream. Shoppers report that long product comparisons stop in mid-sentence, while short answers are fine. Which check should the team make FIRST?

  55. Question 55

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1

    A retailer serves a small pricing model on a SageMaker AI serverless endpoint. Most calls are fast, but a few take several seconds. CloudWatch shows that ModelLatency stays flat while OverheadLatency spikes on those slow calls. What is the MOST likely cause, and what is the fix?

  56. Question 56

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2

    A retailer serves an XGBoost fraud model on an ml.p3.2xlarge GPU endpoint, and CloudWatch shows GPUUtilization below 5% at all times. The team wants to cut cost without missing its 50 ms latency target. Which TWO actions BEST meet these requirements? Select TWO.

    Choose 2.

  57. Question 57

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2

    A retailer runs several SageMaker AI real-time endpoints around the clock with steady traffic, and it expects to keep them for at least three years. The finance team wants to lower the hourly cost without changing the architecture. Which purchasing option BEST meets this goal?

  58. Question 58

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2

    A retailer's Bedrock bill tripled after it added RAG to its shopping assistant. Logs show 20 retrieved chunks of 1,000 tokens in every prompt, the full chat history resent each turn and the same 3,000-token system prompt on every call. Which TWO changes BEST reduce cost? Select TWO.

    Choose 2.

  59. Question 59

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2

    A retailer's finance team wants an email when forecasted monthly spend on SageMaker AI and Amazon Bedrock is likely to exceed $60,000, so that it can act before the month ends. Which tool BEST meets this requirement?

  60. Question 60

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2

    A retailer's customer-service agent on Amazon Bedrock AgentCore Runtime sometimes takes 40 seconds to answer. Engineers need to see, for a slow session, how long each model call, tool call and memory operation took. Which tool BEST provides this view?

  61. Question 61

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3

    A retailer builds its inference container images in AWS CodeBuild and pushes them to Amazon ECR. Security requires that a deployment stops if a new image has a CRITICAL vulnerability, and that images are rechecked when new CVEs are published. Which approach BEST meets these requirements?

  62. Question 62

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3

    A retailer's SageMaker AI execution role must only create training jobs that run in its VPC with an AWS KMS volume key, and data scientists must only pass that one execution role to SageMaker AI. Which TWO policy settings BEST enforce this? Select TWO.

    Choose 2.

  63. Question 63

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3

    A retailer's support chatbot on Amazon Bedrock sometimes repeats customer email addresses and phone numbers in its answers. The answers must still be returned, but with that data hidden. Which configuration BEST meets this requirement?

  64. Question 64

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3

    A retailer's security team must find out which IAM principal invoked a production SageMaker AI endpoint at 02:14 yesterday. The CloudTrail trail shows CreateEndpoint and UpdateEndpoint calls but no InvokeEndpoint calls. Which change BEST lets the team answer this kind of question in future?

  65. Question 65

    Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3

    A retailer is connecting an open-source chat tool that only supports bearer-token authentication to Amazon Bedrock for a production pilot. Security wants no long-lived secrets. Which credential type BEST meets these requirements?

65 questions unanswered; they count as wrong.

Video walkthrough

Try the exam first, then watch every question worked through.