MLA-C02 Practice Exam 7: Public sector and education
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 answered
Question 1
Domain 1: Data Preparation for ML and AI · Task 1.1
A university research group keeps 5 TB of microscope images on an Amazon EFS file system that its analysis instances share. It now wants SageMaker AI training jobs to read the images directly, without first copying them to Amazon S3. Which input configuration BEST meets this requirement?
Question 2
Domain 1: Data Preparation for ML and AI · Task 1.1
A university is building a study assistant over 6,000 hours of recorded lectures stored as audio files in Amazon S3. Lecturers use many subject-specific terms. The team needs accurate text with timestamps so that answers can link back to the point in each lecture. Which approach BEST prepares the audio?
Question 3
Domain 1: Data Preparation for ML and AI · Task 1.1
A city transit authority writes tap-card events to an Amazon Kinesis Data Streams stream. Four separate consumer applications read the stream: fraud scoring, ridership features, a data lake loader and a live dashboard. The GetRecords.IteratorAgeMilliseconds metric keeps rising for every consumer, while the producers report no write errors. Which change BEST fixes the problem?
Question 4
Domain 1: Data Preparation for ML and AI · Task 1.1
A city open-data office stores five years of 311 service requests as CSV files in Amazon S3. Analysts and the ML team query the data with Amazon Athena, but most queries use only 5 of the 80 columns and filter by month. Query costs and run times keep growing. Which change BEST reduces both?
Question 5
Domain 1: Data Preparation for ML and AI · Task 1.1
A state education department wants a Retrieval Augmented Generation assistant over curriculum documents, built with Amazon Bedrock Knowledge Bases. The embeddings must sit next to relational school records so that the team can join and filter them with SQL, and the team already runs PostgreSQL. Which vector store BEST meets these requirements?
Question 6
Domain 1: Data Preparation for ML and AI · Task 1.1
A state tax agency is building a refund-fraud model. At filing time the scoring service must read each taxpayer's latest features in milliseconds, and data scientists must build training sets that use only feature values known before each past filing. Which TWO SageMaker Feature Store configurations BEST meet these requirements? Select TWO.
Choose 2.
Question 7
Domain 1: Data Preparation for ML and AI · Task 1.2
A school district's enrollment office receives spreadsheets from 60 schools with inconsistent date formats, misspelled program names and blank rows. Two analysts who do not write code must clean and standardise the files every term and rerun the same steps on new files. Which tool BEST fits?
Question 8
Domain 1: Data Preparation for ML and AI · Task 1.2
A university is training a linear model to predict which admitted students will need financial aid. The household_income feature has a long right tail: most values are between 30,000 and 90,000, but a few exceed 2,000,000. Which transformation BEST prepares this feature for the model?
Question 9
Domain 1: Data Preparation for ML and AI · Task 1.2
A public library system is loading 400 long policy manuals into an Amazon Bedrock knowledge base. Testing shows that small chunks find the right paragraph, but the generated answers miss conditions stated elsewhere in the same section. Which chunking strategy BEST addresses this?
Question 10
Domain 1: Data Preparation for ML and AI · Task 1.2
A state court system wants to fine-tune a model on 50,000 hearing transcripts stored in Amazon S3. The transcripts contain names, addresses and case numbers of private individuals, which must not reach the training data or the model weights. Which approach BEST meets this requirement?
Question 11
Domain 1: Data Preparation for ML and AI · Task 1.2
A city parking department streams occupancy events from street sensors into Amazon Kinesis Data Streams. A pricing model needs, for every block, the average occupancy over a rolling 15-minute window, updated continuously. Which service BEST computes this feature?
Question 12
Domain 1: Data Preparation for ML and AI · Task 1.2
A state benefits agency will fine-tune Amazon Nova Lite on Amazon Bedrock so that its assistant answers eligibility questions in a fixed two-sentence style. The team has 2,500 approved question-and-answer pairs and a system instruction. How should the team prepare the training data?
Question 13
Domain 1: Data Preparation for ML and AI · Task 1.3
A state unemployment office runs a nightly AWS Glue ETL job that prepares claims data for model retraining. Last month a broken upstream extract sent a file with 40% empty claimant IDs, and the model was retrained on it. The team wants the job itself to check completeness and row counts and stop bad data before training. Which approach BEST meets this need?
Question 14
Domain 1: Data Preparation for ML and AI · Task 1.3
A city transportation department has used SageMaker Ground Truth for two years. It now needs bounding boxes drawn around potholes in 40,000 street images. City policy says the images may be seen only by city employees, and the team wants to lower labeling effort where it can. Which approach BEST meets these requirements?
Question 15
Domain 1: Data Preparation for ML and AI · Task 1.3
A university is checking the training data for an admissions-support model before training. Rural applicants make up only 6% of the records, while urban applicants make up 94%. The team wants a single pre-training bias metric that measures this representation gap between the two groups. Which metric should the team compute?
Question 16
Domain 1: Data Preparation for ML and AI · Task 1.3
A state benefits agency is training a fraud classifier on 2 million historical claims, of which 0.4% are fraudulent. A first model scored 99.6% accuracy but caught almost no fraud. Which TWO actions should the team take? Select TWO.
Choose 2.
Question 17
Domain 1: Data Preparation for ML and AI · Task 1.3
A city is fine-tuning a model for its 311 assistant on 8,000 question-and-answer pairs collected from staff emails. Before training, every pair must be checked for a valid structure and length, and screened for toxic language and personal data in both the question and the answer. Which approach BEST meets these requirements?
Question 18
Domain 1: Data Preparation for ML and AI · Task 1.3
A school district is building a model that predicts whether a student will miss more than 10% of school days. The dataset has one row per student per term, so most students appear in several rows. Validation scores look far better than the results in a pilot. Which change to the data split BEST fixes the problem?
Question 19
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A county court is digitising 30 years of paper filings. Each scanned filing is a form with labelled fields, check boxes and fee tables, and the court needs the field values and table cells as structured data with the least custom ML work. Which service BEST fits?
Question 20
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A city runs an English-language permit-help assistant on Amazon Bedrock with Amazon Nova Pro. Most questions are simple, such as office hours, but about 15% need multi-step reasoning about zoning rules. The city wants to cut model cost without a noticeable drop in answer quality and with little code change. Which approach BEST meets these requirements?
Question 21
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A state housing agency wants a model that recommends whether rental-assistance applications need manual review. The data is tabular, and regulators require the agency to explain each individual recommendation in terms of the applicant's features. Which modeling approach BEST meets these requirements?
Question 22
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A national education ministry runs a Retrieval Augmented Generation assistant over its regulations. Teachers often ask about specific clauses by code, such as EDU-4.12.7, and the assistant frequently retrieves passages that discuss the right topic but cite the wrong clause. Which retrieval pattern BEST fixes this?
Question 23
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A state school-finance office needs monthly enrollment forecasts for 900 school districts, with probabilistic ranges for budget planning. Many districts have only a few years of history, but they follow similar seasonal patterns. Which approach BEST fits?
Question 24
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.1
A national library wants a model to write catalogue summaries in its strict house style. Careful prompting with examples still gives inconsistent structure. The library has 3,000 approved summaries paired with their source records, and the facts come from the record in each request. Which customization strategy BEST fits?
Question 25
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2
A university research group is tuning a PyTorch image model with SageMaker AI automatic model tuning. The learning rate range is 0.00001 to 0.1, the training script reports validation loss after every epoch, and the group wants the fastest tuning run. Which TWO configurations should it use? Select TWO.
Choose 2.
Question 26
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2
A school district's XGBoost model predicts which students are at risk of dropping out. Training AUC is 0.99 but validation AUC is 0.71. The model uses max_depth 14 and 2,000 boosting rounds with no early stopping. Which change BEST improves generalisation?
Question 27
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2
A city building department classifies 20,000 permit applications a day into 12 categories. A small fine-tuned classifier is confident and correct on about 85% of them, while a large foundation model is accurate on the rest but costs 40 times more per request. Which design BEST lowers cost while keeping accuracy?
Question 28
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2
A university fine-tuned an open-weight language model with full-parameter training to give feedback on student essays. Essay feedback improved, but the model now answers general questions poorly and has lost its summarisation ability. The team will retrain. Which change BEST reduces this effect?
Question 29
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.2
A state transport agency is fine-tuning a model on 12,000 training examples with a batch size of 8 for 3 epochs. The team needs to know how many gradient steps make up one epoch so it can set a learning-rate warm-up of 5% of one epoch. How many steps are in one epoch?
Question 30
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3
A transit authority has a new version of its fare-evasion detection model. Before switching, the team wants to see the new model's latency, error rate and predictions on real live requests, but riders and inspectors must only ever receive answers from the current model. Which approach BEST meets these requirements?
Question 31
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3
A city translates public notices from English into Spanish with a foundation model and has professional reference translations for 500 notices. The team wants an automatic metric to compare candidate models against these references. Which metric is MOST appropriate?
Question 32
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3
A university hosts an open-weight model on a SageMaker AI endpoint for a student-services chatbot. It wants to score 2,000 of the model's answers for correctness, completeness and helpfulness, with an explanation for each score, without hiring reviewers. Which approach BEST meets these requirements?
Question 33
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3
An education department runs a Retrieval Augmented Generation assistant over school policies and has a golden set of 300 questions with ground-truth answers. It wants to learn whether retrieval finds all the information needed for each answer, and whether the generated answers stay true to what was retrieved. Which TWO metrics should it track? Select TWO.
Choose 2.
Question 34
Domain 2: ML Model and Foundation Model (FM) Development · Task 2.3
A public-health research unit at a university must be able to reproduce any model it reports in a paper, including the exact data version, code, hyperparameters and random seed, and compare runs side by side. It is a new SageMaker AI user. Which approach BEST meets these requirements?
Question 35
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A city planning department runs a model that checks submitted building plans. Each plan is a 300 MB file and takes about 10 minutes to process. Submissions arrive in bursts a few times a week, and the city does not want to pay for idle instances between bursts. Which inference option BEST fits?
Question 36
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A state education agency trains a separate scikit-learn attendance model for each of its 400 schools. All models use the same container. A few large schools call their model constantly, while most schools call theirs a few times a day, and a short delay on a rarely used model is acceptable. Which hosting strategy is MOST cost-effective?
Question 37
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A university research lab fine-tuned a Llama model on its own GPU cluster and saved the weights in Hugging Face safetensors format with the config and tokenizer files. It wants to serve the model through Amazon Bedrock APIs without managing instances, and pay nothing when the model is idle. Which option BEST meets these requirements?
Question 38
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A state benefits department is building a new agent that answers applicants' questions and calls internal case-status and appointment APIs. The department has not used Bedrock agents before. It wants serverless hosting with session isolation, and wants its existing AWS Lambda functions exposed to the agent as tools. Which approach BEST meets these requirements?
Question 39
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A public library deploys a small scikit-learn model that recommends books on its catalogue website. Traffic is unpredictable: some hours have no requests and others have a few hundred. A cold start of a second or two is acceptable, and the model runs on CPU and needs no VPC access. Which deployment option is MOST cost-effective?
Question 40
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.1
A state education department runs one shared Amazon Bedrock knowledge base for 120 school districts. Users must only ever see their own district's documents, and testing shows the right passages are often found but ranked below less useful ones. Which TWO retrieval configurations should the team apply? Select TWO.
Choose 2.
Question 41
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2
A state IT office wants each agency's ML team to create SageMaker AI endpoints on its own, but only from security-approved templates that already set the VPC, KMS and instance settings. Which approach BEST meets this requirement?
Question 42
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2
A university hosts a chat model on a SageMaker AI real-time endpoint that streams responses token by token. Answers can take 20 seconds to finish, and the current scaling policy on SageMakerVariantInvocationsPerInstance reacts too slowly, so latency spikes during class hours. Which metric BEST drives target tracking scaling for this endpoint?
Question 43
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2
A university is building an academic-advising agent on Amazon Bedrock AgentCore. Students expect the agent to remember their major, preferred class times and earlier advice across separate sessions over the semester, without the team building its own database. Which approach BEST meets this requirement?
Question 44
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2
At a state agency, a network team owns a CloudFormation stack that creates the VPC, private subnets and an endpoint security group. The ML team's separate stack must create SageMaker AI endpoints in those subnets, and a deployment Lambda function must read the current endpoint name. Which TWO mechanisms BEST pass these values? Select TWO.
Choose 2.
Question 45
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.2
A university ML team needs a custom inference image that adds two Python packages and a system library to the standard PyTorch inference environment on SageMaker AI. The team wants the least maintenance and an image it can rebuild regularly to pick up security patches. Which approach BEST fits?
Question 46
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3
A state revenue department updates its tax-refund risk model on a SageMaker AI real-time endpoint every month. It wants the new version to receive 10% of capacity first, bake for 10 minutes, and roll back automatically if the 5XX error or latency alarms fire. Which approach BEST meets these requirements?
Question 47
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3
A city's resident-services chatbot calls Amazon Bedrock. Prompt wording is stored as strings in the application code, so every wording change needs a code release, and auditors cannot see which prompt text was live on a given date. Which approach BEST meets the city's needs?
Question 48
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3
A school district's dropout-risk model should retrain whenever a new month of labelled attendance data lands in Amazon S3. A new model must reach production only if it beats the current one and a staff member approves it. Which design BEST meets these requirements?
Question 49
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3
A university's AWS CodePipeline pipeline uses a GitHub repository as its source through AWS CodeConnections. The pipeline was created from a CloudFormation template, but the source stage fails, and the connection shows the status PENDING. Which action BEST fixes the problem?
Question 50
Domain 3: Deployment and Orchestration of ML and AI Workflows · Task 3.3
A university runs an Amazon Bedrock knowledge base over its course catalogue in Amazon S3. Departments update catalogue files throughout the term, and next year the team will switch to a new embedding model. Which TWO practices BEST keep retrieval current and safe? Select TWO.
Choose 2.
Question 51
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1
A state benefits agency's fraud model has lost precision steadily over six months. Monitoring shows the input feature distributions are about the same as in the training data, and confirmed fraud outcomes arrive about 30 days after each claim. What is the MOST likely cause, and how should the team detect it?
Question 52
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1
A university hosts a course-recommendation model on a SageMaker AI serverless endpoint. Most requests return in 100 ms, but every few minutes a request takes about 3 seconds, especially after quiet periods. ModelLatency stays flat while OverheadLatency spikes. Which change BEST fixes the problem?
Question 53
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1
A university wants to know whether a new course-recommendation model raises enrolment clicks compared with the current model. Students must see real recommendations from both models, and the team wants to start with a small share of traffic. Which approach BEST meets these requirements?
Question 54
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1
A school district's tutoring assistant streams answers from Amazon Bedrock with ConverseStream. Students report that long explanations sometimes stop mid-sentence. The model returns no errors, and CloudWatch shows no throttling. What should the team check FIRST?
Question 55
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.1
A state transport agency is a new SageMaker AI customer. It hosts a tabular demand model on a real-time endpoint and must detect when input feature distributions drift from the training data, with alerts to the ML team. Which TWO actions BEST meet this requirement? Select TWO.
Choose 2.
Question 56
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2
A state revenue department runs six SageMaker AI real-time endpoints on CPU instances 24 hours a day, with steady traffic that has barely changed in a year. Finance wants to lower the cost without changing the architecture. Which purchasing option BEST meets this goal?
Question 57
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2
A university's research computing office wants an email to the department head when the forecast for this month's SageMaker AI and Bedrock spend for one research group is on track to exceed 20,000 USD. All of that group's resources carry a project cost allocation tag. Which approach BEST meets this requirement?
Question 58
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2
A state education portal added Retrieval Augmented Generation to its Amazon Bedrock assistant, and its Bedrock bill tripled. Logs show each request sends 15 retrieved chunks and the same 3,000-token system prompt and policy preamble, while answers rarely use more than three chunks. Which TWO changes BEST reduce cost? Select TWO.
Choose 2.
Question 59
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2
A city's ML team has a new PyTorch model for classifying 311 requests and must meet a P99 latency of 150 ms at 200 requests per second. It does not know which instance type or count gives the lowest cost at that SLA. Which tool BEST answers the question?
Question 60
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.2
A state government runs Amazon Bedrock workloads for its health, transport and education departments in one AWS account. Finance wants monthly Bedrock cost broken down by department in AWS Cost Explorer. Which approach BEST meets this requirement?
Question 61
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3
A university's grading-support tool calls Amazon Bedrock through a third-party client library that supports only bearer-token authentication. The tool runs in production, and security wants credentials that expire within hours. Which credential type BEST meets these requirements?
Question 62
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3
A university runs 30 research projects in one AWS account. Each project's data scientists must reach only the SageMaker AI resources and S3 objects tagged with their own project, and the team does not want to write and maintain a separate IAM policy for every project. Which approach BEST meets these requirements?
Question 63
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3
A school district's homework-help assistant on Amazon Bedrock sometimes repeats student ID numbers, which follow the pattern SD- followed by eight digits, in its answers. The district wants these IDs masked in responses while the rest of each answer is still returned. Which approach BEST meets this requirement?
Question 64
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3
A state health department requires that every SageMaker AI training job created by its data scientists runs in the department VPC and encrypts its storage volume with a customer managed KMS key, and it wants to find any existing resources that break the rule. Which TWO controls BEST meet these requirements? Select TWO.
Choose 2.
Question 65
Domain 4: Operating, Monitoring, and Securing ML and AI Solutions · Task 4.3
A university data scientist tries to start a SageMaker AI training job from SageMaker Studio and receives an AccessDenied error on iam:PassRole for the job's execution role. The execution role itself has the S3 and KMS permissions the job needs. Which change BEST fixes the error with least privilege?
65 questions unanswered; they count as wrong.
Video walkthrough
Try the exam first, then watch every question worked through.