AssociateMLA-C02Free

AWS ML Engineer Associate (MLA-C02) Study Guide

A free AWS ML Engineer – Associate study guide from real exam notes: SageMaker AI, Feature Store, Clarify bias metrics, Model Monitor, endpoints and Bedrock.

·· 15 min read
Written by an engineer who passed this exam: verify on Credly ↗

Exam domains (MLA-C02)

Data Preparation for ML and AI28%
ML Model and Foundation Model (FM) Development24%
Deployment and Orchestration of ML and AI Workflows24%
Operating, Monitoring, and Securing ML and AI Solutions24%

Weightings from the official AWS exam guide. Always check it for the current version.

These are my notes for the AWS Certified Machine Learning Engineer – Associate, rewritten as a full guide and organised by exam domain. I prepared for MLA-C01, so I’ve updated everything for MLA-C02 (current service names such as SageMaker AI, Data Firehose and Quick Sight, plus the new generative AI content) and corrected a few things my practice-question notes got wrong.

Exam mindset: most questions are “which service or feature does this with the least operational overhead?”. Prefer the managed SageMaker AI feature built for the job (Model Monitor, Clarify, Feature Store, Pipelines) over custom code on EC2, Lambda or ECS, and read the scenario carefully for the exact ML problem type: regression, binary classification, ranking or generative.

The exam: MLA-C01 has become MLA-C02

AWS replaced the exam in 2026. The English MLA-C01 ended on 28 September 2026, and MLA-C02 has been delivered (as a beta at first) since 29 September 2026. MLA-C01 stays available in Japanese, Korean and Simplified Chinese until MLA-C02 is generally available. The certification name doesn’t change and stays valid for 3 years.

Domain MLA-C01 MLA-C02
1. Data preparation 28% 28%
2. Model development (now including foundation models) 26% 24%
3. Deployment and orchestration 22% 24%
4. Monitoring, maintenance and security 24% 24%
  • MLA-C02 has 65 questions (50 scored), scored 100–1,000 with 720 to pass. The beta is longer (85 questions, 170 minutes).
  • New: Bedrock model choice and customisation, RAG, agents (Bedrock AgentCore), Guardrails, Prompt Management, NLP metrics and token costs. Removed: SageMaker Neo and model-size reduction.

Domain 1: Data preparation for ML and AI

Ingesting streaming and batch data

Need Service
Real-time stream that custom consumers read (for example to call an endpoint per record) Kinesis Data Streams
Stateful, real-time processing of a stream (windows, joins, enrichment, calling a model) Amazon Managed Service for Apache Flink
Buffered delivery to S3, Redshift, OpenSearch and others, with optional Lambda transformation Amazon Data Firehose
Kafka-compatible streaming Amazon MSK
One-off or continuous migration of a database AWS DMS
  • Classic trap: for real-time fraud detection feeding a SageMaker AI endpoint, pick Kinesis Data Streams + Managed Service for Apache Flink. Firehose buffers records before delivering them, so it’s near real-time delivery, not a processing layer for per-event inference.
  • Kinesis Data Analytics is now Managed Service for Apache Flink, and Kinesis Data Firehose is now Amazon Data Firehose. Expect the new names.
  • DMS for a MySQL-to-Aurora MySQL move is a homogeneous migration. Add CDC only if the source must stay live during cutover. For training data, a clean one-time migration is usually the expected answer.
  • To trigger a SageMaker Pipeline when data lands in S3, use an EventBridge rule with the pipeline as the target. S3 Event Notifications go to Lambda, SQS, SNS or EventBridge, not directly to Pipelines.

Data formats and training input

  • Parquet and ORC are columnar and compressed: best for large analytical datasets and Athena or Spark queries. Avro is row-based with schema evolution: good for serialisation, worse for analytics. CSV and JSON are simple but large and slow to scan.
  • Built-in algorithms often prefer RecordIO-protobuf (and accept CSV for many).
  • Training input modes: File (copy everything first), Pipe (stream from S3) and FastFile (stream S3 objects on demand behind a file interface). FSx for Lustre linked to S3 gives the highest throughput for repeated large-scale training.

Transformation tools

Tool Use it when
SageMaker Data Wrangler (in SageMaker Canvas) Visual data prep for ML: 300+ built-in transforms, Data Quality and Insights report, export to Pipelines or Feature Store
AWS Glue DataBrew No-code cleaning and profiling for analysts
AWS Glue (Spark ETL) Serverless ETL and joins at scale, Data Catalog
Amazon EMR Full control over Spark/Hadoop clusters
SageMaker Processing jobs Your own script or container (scikit-learn, Spark, Hugging Face) as a managed job that writes to S3
Amazon Athena Ad hoc SQL over S3

For text preprocessing with TensorFlow or Hugging Face libraries (tokenisation, embeddings), a SageMaker Processing job beats Glue: it runs the ML libraries natively. Trigger it with Lambda or EventBridge when new data arrives.

Feature engineering

Technique What it does Watch out
Standard (z-score) scaler Mean 0, standard deviation 1 Sensitive to outliers
Min-max scaler Rescales to a fixed range such as 0–1 Very sensitive to outliers
Robust scaler Uses the median and IQR (Q3 − Q1) The choice when extreme outliers exist
L2 normalisation Scales each row to unit length Doesn’t fix cross-feature scale or outliers
Log transform Compresses right-skewed values Needs positive values
  • PCA reduces dimensionality without labels. K-Means is clustering, not dimensionality reduction, but cluster IDs or distances can replace many raw features.
  • More data doesn’t fix biased or low-quality data: fix quality and bias first.

Class imbalance

  • Random oversampling duplicates minority rows. Random undersampling drops majority rows and throws away information.
  • SMOTE creates synthetic minority samples by interpolating between a minority sample and one of its k nearest minority neighbours. Data Wrangler’s Balance data transform offers all three.
  • When a fraud model has many false negatives, oversample the fraudulent (minority) class with SMOTE. Never oversample the majority class.
  • Alternatives: class weights (for example XGBoost scale_pos_weight), a lower decision threshold, and judging the model on F1, recall or PR-AUC rather than accuracy.

Data quality, labelling and bias

  • AWS Glue Data Quality (rules written in DQDL) and DataBrew profile jobs validate data. Data Wrangler’s report flags duplicates, missing values, outliers and target leakage.
  • SageMaker Ground Truth labels text, images, video and 3D point clouds with human workforces (Mechanical Turk, private or vendor) and can auto-label with active learning. Ground Truth Plus is the fully managed, expert-workforce version.
  • SageMaker Clarify pre-training bias metrics (on the data, before training):
Metric Measures
Class Imbalance (CI) Whether one facet group (for example male vs female) is under-represented
Difference in Proportions of Labels (DPL) Difference in positive-outcome rates between groups
KL / Jensen-Shannon divergence How far the label distributions of two groups diverge
Lp-norm, Total Variation Distance (TVD) Distance between the groups’ outcome distributions (TVD is half the L1 distance)
Kolmogorov-Smirnov (KS) The maximum divergence between outcome distributions
Conditional Demographic Disparity (CDD) Disparity after conditioning on a subgroup (Simpson’s paradox)

SageMaker Feature Store

  • A feature group is the core resource: a logical table of features with a record identifier and an event time feature.
  • Online store: lowest-latency lookups of the latest values for real-time inference. Offline store: full history in S3 (Glue catalog, Iceberg format option) for training and batch work, with point-in-time queries.
  • Typical setup order: define the feature group, enable the offline store on it, then batch-load historical data. Add the online store only if real-time lookups are needed.
  • To add a feature without losing history: UpdateFeatureGroup (add the feature definition), then PutRecord to backfill. Never delete and recreate the group.
  • Feature groups can be shared across accounts with AWS RAM, so a central Feature Store can serve several teams.

Preparing data for generative AI (new in C02)

  • Chunking for RAG: fixed-size, hierarchical or semantic chunks, with metadata for filtering. Embeddings (for example Amazon Titan or Cohere embedding models on Bedrock) turn chunks into vectors.
  • Vector stores: OpenSearch Service/Serverless, Aurora or RDS PostgreSQL with pgvector, Amazon S3 Vectors, Neptune Analytics, and partners. Bedrock Knowledge Bases manage the ingestion pipeline for you.
  • Mask or redact PII before training or indexing: Comprehend PII detection, Glue sensitive-data detection, and Macie to find PII in S3.
  • Bedrock fine-tuning data is JSONL prompt–completion (or conversation) records in S3, with an optional validation set.

Domain 2: Model and foundation model development

Choosing an approach

Go from most managed to least, and stop at the first that fits: AI services (Comprehend, Rekognition, Textract, Transcribe, Translate, Personalize), Bedrock foundation models, JumpStart, built-in algorithms, script mode with a framework container, and finally your own container in ECR (for example R models or custom libraries).

Simple models are explainable and fast but may be less accurate; complex models are more accurate but harder to explain. Regulated scenarios favour the explainable one.

Built-in algorithms to recognise

Problem Algorithm
Tabular classification or regression XGBoost, Linear Learner, K-NN, Factorization Machines (sparse data, recommendations)
Time-series forecasting DeepAR
Anomaly detection Random Cut Forest, IP Insights (suspicious IP usage)
Clustering, dimensionality reduction K-Means, PCA
Topic modelling (unsupervised) LDA, Neural Topic Model
Text classification, word vectors BlazingText
Embeddings of pairs of objects Object2Vec
Translation, summarisation Seq2Seq
One label per image Image classification
Find and count objects with bounding boxes Object detection
Label every pixel Semantic segmentation

Training, tuning and overfitting

  • Overfitting (great training score, poor validation score): add regularisation (L1/L2), dropout, early stopping, more or augmented data, fewer features. Underfitting: more features, a more complex model, more training.
  • Catastrophic forgetting when fine-tuning: lower learning rate, fewer epochs, mix in original-domain data, or use parameter-efficient methods such as LoRA.
  • Hyperparameters to know: learning rate (too high diverges, too low is slow), batch size, epochs, steps.
  • Automatic Model Tuning (AMT): Bayesian, random, grid and Hyperband strategies. Warm start reuses earlier tuning jobs, and early stopping ends poor training jobs.
  • Cut training time and cost: distributed training (data parallel for big datasets, model parallel for big models), managed Spot training with checkpoints in S3, and warm pools to reuse instances between jobs.
  • SageMaker Debugger catches vanishing or exploding gradients, overfitting and stalled loss automatically. TensorBoard is for manual inspection. When the question asks for automated detection, choose Debugger rules or Model Monitor.

Evaluation metrics

Task Metric Notes
Regression RMSE, MAE, R² Lower RMSE is better; RMSE punishes large errors
Binary classification, balanced Accuracy, AUC Accuracy misleads on imbalanced data
Binary classification, imbalanced F1, recall, precision, PR-AUC F1 is the harmonic mean of precision and recall
Ranking NDCG, MAP For search and recommendations
Text generation BLEU (translation), ROUGE (summarisation), BERTScore, LLM-as-a-judge New in C02
  • Recall (true positive rate) = share of actual positives caught. Maximise it when missing a positive is costly (fraud, disease). Precision = share of predicted positives that are right. False positive rate = negatives wrongly flagged.
  • The cut-off (threshold) turns a probability into a class. Lowering it raises recall and lowers precision.
  • SageMaker AI XGBoost objective metrics are written as validation:rmse, validation:f1, validation:auc, validation:mae, validation:error, validation:ndcg, validation:map. Pick validation:rmse for car prices, validation:f1 for imbalanced binary fraud.

Explainability and experiments

  • SageMaker Clarify explains models with SHAP (Shapley values approximated, from game theory: each feature’s contribution to a prediction), partial dependence plots (how the prediction changes as one feature changes) and asymmetric Shapley values for time-series forecasts.
  • Managed MLflow on SageMaker AI tracks experiments, parameters and metrics for reproducibility. SageMaker Model Registry versions models with approval status.
  • Compare a new model safely with shadow tests (Domain 3).

Customising foundation models on Bedrock

  • Methods: fine-tuning (labelled JSONL pairs), continued pre-training (unlabelled domain text), model distillation (a smaller student model learns from a larger teacher), and prompt engineering or RAG before any of these.
  • Flow: prepare training (and validation) data in S3, give Bedrock an IAM service role that can read it, optionally add a KMS key and VPC, run the customisation job with hyperparameters, then deploy. Custom models serve through Provisioned Throughput or, for supported models, on-demand custom model deployment.
  • Bedrock Custom Model Import brings open-weight models trained elsewhere into Bedrock.
  • RAG with Bedrock Knowledge Bases: managed ingestion, chunking, embedding, retrieval, metadata filtering and reranking. Evaluate retrieval quality and answers with Bedrock evaluations.

Domain 3: Deployment and orchestration

SageMaker AI inference options

Option Payload / time limits Best for
Real-time endpoint Up to 25 MB, 60 s (8 min for streaming) Steady low-latency traffic
Serverless inference Up to 4 MB, 60 s, 1–6 GB memory, no GPUs Spiky or infrequent traffic; tolerates cold starts (or add provisioned concurrency)
Asynchronous inference Up to 1 GB, up to 1 hour Large payloads, long jobs; queues requests and can scale to zero
Batch transform Whole datasets in S3 Offline scoring, no persistent endpoint

Hosting many models

  • Multi-model endpoint (MME): many models that share one container/framework, loaded from S3 on demand. It cuts cost for large numbers of rarely used models. It is not the tool for A/B testing.
  • Multi-container endpoint: several different containers (frameworks) behind one endpoint, invoked directly or as a serial inference pipeline.
  • Inference components: pack several models onto shared instances with per-model CPU, GPU and memory allocation and per-model scaling (including to zero).
  • A/B testing: multiple production variants on one endpoint with traffic weights, or target a variant explicitly.
  • Shadow tests: a copy of live traffic goes to the shadow variant. Only production responses reach users, so you compare safely before promoting.

Safe deployments and scaling

  • Deployment guardrails for endpoint updates: blue/green with all-at-once, canary or linear traffic shifting, plus rolling deployments, all with automatic rollback on CloudWatch alarms.
  • Auto scaling uses Application Auto Scaling. The usual target-tracking metric is SageMakerVariantInvocationsPerInstance. Use scheduled scaling for known peaks.
  • Instance choice: CPU for classic models, GPU (G and P families) for deep learning, AWS Inferentia (Inf2) for low-cost inference and AWS Trainium (Trn) for low-cost training. SageMaker Inference Recommender load-tests instance types for you.
  • Models built elsewhere: package them in a SageMaker AI container (or BYOC via ECR), or use Bedrock Custom Model Import for supported LLM architectures.
  • R models with minimal overhead: build a custom R container, push it to ECR and deploy a SageMaker AI endpoint. A notebook kernel isn’t a production deployment.

Orchestration and CI/CD

  • SageMaker Pipelines steps: Processing, Training, Tuning, Model, Transform (batch transform), Condition, Fail, Lambda, Callback, EMR, ClarifyCheck, QualityCheck, Notebook Job. Add your own Python function (for example a data validation check) as a step with the @step decorator. @remote runs a function as a standalone training job outside the pipeline.
  • Model Registry approval status changes emit EventBridge events, which can trigger deployment through CodePipeline. SageMaker Projects provide MLOps templates (CodePipeline, CodeBuild, CloudFormation).
  • Other orchestrators: Step Functions, Amazon MWAA (Airflow) and EventBridge schedules. CI/CD uses CodePipeline, CodeBuild, CodeDeploy, CodeCommit and CodeConnections (GitHub, GitLab, Bitbucket).
  • Retraining loop: Model Monitor violation, CloudWatch alarm, EventBridge, pipeline execution.
  • Generative AI: Bedrock Prompt Management versions prompts, Bedrock AgentCore (Runtime, Memory, Gateway, Identity, Observability) runs agents, and knowledge base sync jobs refresh RAG data.

Domain 4: Monitoring, cost and security

SageMaker Model Monitor

Enable Data Capture on the endpoint, build a baseline from training data, then run monitoring schedules. Results go to S3 and CloudWatch, where alarms can notify or start retraining.

Monitor type Class Detects
Data quality DefaultModelMonitor Drift in input feature statistics
Model quality ModelQualityMonitor Drop in accuracy, RMSE, F1 and so on (needs ground-truth labels merged in)
Bias drift ModelBiasMonitor Post-training bias changing over time (Clarify)
Feature attribution drift ModelExplainabilityMonitor Changes in SHAP feature importance
  • Scenario: alert if a pricing model starts weighting driving history over age. That’s feature attribution drift, so use ModelExplainabilityMonitor with a SHAP baseline and CloudWatch alarms. Data-quality and model-quality monitors can’t see feature importance.
  • CloudWatch metrics for notebook instances or endpoints only show infrastructure (CPU, memory, latency), not model quality.
  • For generative AI: CloudWatch generative AI observability, AgentCore Observability, X-Ray traces, Bedrock model invocation logging and token metrics.

Cost management

  • Cost allocation tags, in order: create user-defined tags, attach them to the ML resources, then activate them in the Billing console. They only appear in Cost Explorer and reports after activation.
  • AWS Budgets alerts on thresholds. Cost Explorer analyses spend. SageMaker AI Savings Plans discount steady usage. Managed Spot training saves up to 90% on interruptible training.
  • Right-size with Inference Recommender, delete idle endpoints, or use serverless, async or batch transform. On Bedrock: smaller or distilled models, prompt caching and batch inference.

Security

  • Every job and endpoint runs with a SageMaker AI execution role. Grant least privilege to specific S3 prefixes, ECR repositories and KMS keys.
  • VPC mode: run training, processing and endpoints in your private subnets. Reach S3 through a gateway endpoint and the SageMaker AI API and runtime through interface (PrivateLink) endpoints.
  • Network isolation (EnableNetworkIsolation): the container has no outbound network access, not even to S3, and gets no AWS credentials. SageMaker AI still moves input and output data to and from S3 with the execution role, outside the container. In distributed training, traffic is limited to peer containers. Add inter-container traffic encryption for distributed jobs.
  • Encrypt with KMS: training volumes, output artifacts, endpoint storage and Feature Store. Enforce settings with IAM condition keys such as sagemaker:VpcSubnets, sagemaker:NetworkIsolation and sagemaker:VolumeKmsKey.
  • Cross-account access (console and programmatic): an IAM role in the data account that the other account assumes. S3 Access Points simplify access to shared buckets with per-application access point policies and VPC restrictions, but they don’t replace roles for console access across accounts.
  • Audit and compliance: CloudTrail (API calls), AWS Config (resource configuration), Macie (PII in S3), Secrets Manager for credentials, and Amazon Inspector to scan ECR images and Lambda code in CI/CD.
  • Generative AI: Bedrock Guardrails filter harmful content, denied topics and PII and check grounding. Use IAM credentials for workloads and keep Bedrock API keys (short- or long-term) for quick exploration.

ML analytics and visualisation

  • SQL over S3 + dashboards + forecasting with the least effort: Athena to query, Amazon Quick Sight (formerly QuickSight, now part of AWS Quick) for dashboards, and its ML Insights for anomaly detection (Random Cut Forest), forecasting and auto-narratives.
  • Chart choice: bar chart for counts by category, histogram for one continuous variable’s distribution, heatmap for patterns across two dimensions (item by hour), scatter plot for two numeric variables.

Final exam tips

  • Map the problem type before reading answers: regression means RMSE, imbalanced classification means F1 or recall, ranking means NDCG.
  • “Least operational overhead” almost always means a managed SageMaker AI feature or AI service, not EC2, ECS or custom Lambda code.
  • Learn the four Model Monitor types and their classes, and the main Clarify bias metrics by name. Several questions are matching or ordering items.
  • Know the inference option limits (25 MB / 60 s real-time, 4 MB serverless, 1 GB / 1 hour async) and that MMEs are for cost, while production variants are for A/B tests.
  • Expect current names: SageMaker AI, Data Firehose, Managed Service for Apache Flink, Quick Sight.
  • For MLA-C02, spend real time on Bedrock: model choice, RAG with Knowledge Bases, customisation methods, Guardrails, agents and token costs. That’s where most of the new questions come from.

Frequently asked questions

Is MLA-C01 still available, or do I need to take MLA-C02?

MLA-C01 in English ended on 28 September 2026. English candidates now take MLA-C02, which started as a beta on 29 September 2026. MLA-C01 stays available in Japanese, Korean and Simplified Chinese until MLA-C02 reaches general availability. The certification name and its 3-year validity are unchanged.

What changed between MLA-C01 and MLA-C02?

The four domains are the same, but model development dropped from 26% to 24% and deployment rose from 22% to 24%. AWS added generative AI tasks (Amazon Bedrock model selection and customisation, RAG and knowledge bases, agents with Bedrock AgentCore, Bedrock Guardrails, prompt management) and removed SageMaker Neo edge optimisation and model-size reduction.

How hard is the AWS Machine Learning Engineer Associate exam?

It is broad rather than mathematically deep. You need to know which SageMaker AI feature or AWS data service fits each scenario, plus core ML concepts such as evaluation metrics, class imbalance, overfitting and bias metrics. Candidates with a year of hands-on SageMaker AI experience usually find it manageable.

Should I take ML Engineer Associate or the Machine Learning Specialty?

The ML Engineer – Associate is the role-based exam for ML and MLOps engineers and now covers generative AI too. AWS positions the Machine Learning – Specialty as the deeper follow-up for people with two or more years of experience building ML workloads. Most people should start with the Associate.

More study guides

Hussein Ayoub

Written by

Hussein Ayoub, Founder, Cloud Security & DevOps

Cloud security and DevOps engineer focused on AWS and Azure. AWS Certified Security – Specialty, DevOps Engineer – Professional and Solutions Architect – Professional, and an ISO/IEC 27001 Lead Auditor. Leads Pavora's security assessments, penetration tests, DevOps engagements and AWS training.

Want a structured path to this certification?

Our AWS training combines these notes with hands-on labs in real AWS accounts and direct feedback from a certified instructor. Book a free call to find the right track.