AWS Certified Machine Learning Engineer - Associate (MLA-C02) Practice Exam
Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.
Exam domains
The MLA-C02 questions are grouped into 4 domains divided into 12 tasks.
MLA-C02 example questions
One example question per domain from the MLA-C02 question bank, with the correct answer and its explanation. Sign in to the simulator to answer them with all answer options.
A retailer stores transaction records in Amazon RDS for MySQL. An ML team needs an initial copy of the records in Amazon S3 and an ongoing feed of committed inserts, updates, and deletes for feature preparation. After the initial load, the feed must preserve successive changes to the same record, even when those changes occur between extraction runs. The application permanently deletes some records and cannot be modified to produce change events. Which solution meets these requirements with the least custom development?
Show answer
CORRECT ANSWEREnable the required row-based binary logging and configure sufficient log retention on the database. Use an AWS DMS full-load-and-CDC task with the database as the source and Amazon S3 as the target.
AWS DMS can perform the initial table load and then capture committed inserts, updates, and deletes from MySQL binary logs. Its S3 target can store ongoing change records, including operation indicators. This avoids building custom change-capture logic or modifying the application.
A machine learning engineer runs a TensorFlow training job on an Amazon EC2 GPU instance using an AWS Deep Learning Container. Each epoch contains 200 batches, and the optimizer performs one update per batch. The engineer intends to halve the learning rate every 5 epochs during a 20-epoch run. The training script uses tf.keras.optimizers.schedules.ExponentialDecay(initial_learning_rate=0.001, decay_steps=5, decay_rate=0.5, staircase=False). Training loss improves during the first few batches but then stops improving. Logs show that the learning rate becomes nearly zero during the first epoch, while gradients remain finite and nonzero. Which change best addresses the convergence issue while implementing the intended decay interval?
Show answer
CORRECT ANSWERSet decay_steps=1000 and retain the initial learning rate and decay rate.
TensorFlow ExponentialDecay measures decay_steps in optimizer updates, not epochs. With 200 updates per epoch, 5 epochs correspond to 1,000 updates. This change makes the learning rate halve over each intended 5-epoch interval instead of decaying almost to zero during the first epoch.
A media company must run a trained video-classification model against 1,200 independent input shards in Amazon S3 each weekend. Each shard requires one NVIDIA GPU and approximately 75 minutes of processing. Results are needed the next day, not interactively. The existing container runs a command-line inference program that reads a shard and writes predictions to Amazon S3; it does not implement an HTTP inference server. The company cannot modify the container and wants AWS to provision and scale the compute capacity, with no running compute instances between workloads. Which solution meets these requirements?
Show answer
CORRECT ANSWERCreate an AWS Batch managed EC2 compute environment with GPU-capable instance types and minimum vCPUs set to zero. Associate it with a job queue, define a job that requests one GPU, and submit an array job whose children each process one shard.
AWS Batch can run the existing command-line container without an inference server. A managed EC2 compute environment provisions GPU-capable capacity for queued jobs and can scale down to zero instances when idle. Each array child can use its array index to select an independent input shard and write predictions to S3.
A company is selecting an Amazon EC2 instance configuration for a synchronous image-classification API. Traffic alternates between sparse requests and sustained bursts. The API must return a complete response within 100 milliseconds for at least 99% of requests during both traffic patterns. An ML engineer tests four configurations using representative requests. Each configuration meets the required throughput and model accuracy. The client-observed latency includes network transport, preprocessing, batch waiting, model execution, and response delivery. The table shows the higher p99 latency observed across the sparse-traffic and burst-traffic tests. Prices are illustrative. | Configuration | Hourly cost per instance | p99 model execution latency | p99 client-observed latency | |---|---:|---:|---:| | Compute-optimized CPU, no batching | $0.60 | 85 ms | 125 ms | | Inference accelerator, batches of up to 32 requests | $0.85 | 18 ms | 145 ms | | Small GPU instance, no batching | $1.20 | 42 ms | 78 ms | | Large GPU instance, no batching | $2.40 | 24 ms | 58 ms | The company will use the same fixed instance count for every configuration. It must select one of the tested configurations without further serving changes. Which choice meets the response-time requirement at the lowest instance cost?
Show answer
CORRECT ANSWERSelect the small GPU configuration because its client-observed p99 latency meets the deadline and its hourly cost is the lowest among compliant configurations.
The small GPU configuration has a client-observed p99 latency of 78 milliseconds across both traffic patterns, meeting the 100-millisecond requirement. Only the two GPU configurations meet that requirement, and the small GPU configuration costs less. With the same instance count, it also provides the lowest compliant fleet cost.
Exam mode and practice mode
| Exam mode | Practice mode | |
|---|---|---|
| Questions count | 65 | 1 - 75 |
| Time limit | 130 minutes | Optional, 10 - 200 minutes |
| Exam scope | 4 domains with the official questions ratio | Selected domains with the official questions ratio |
| Correct answers | After exam submission | After exam submission or after each answer |
| Question types | Mix of single and multiple correct answers | Single, multiple or both |
| Question hints | Never | Optional |
| Question domain | Revealed after exam submission | Revealed after submission or during the exam |
| Scoring | 15 of 65 questions do not count towards the result | Official AWS method or mathematical mean |
See all simulator features on the AWS Exam Simulator page.