MLA-C01 — AWS Certified Machine Learning Engineer – Associate Cheat Sheet

Cheat sheet: AWS MLA-C01 reference for machine learning engineering: data prep, SageMaker training, deployment, MLOps, monitoring, and security decisions.

Use the tables for a quick pre-exam check. Expand a topic’s notes for explanations, examples, and additional distinctions.

Scope and study context
    flowchart LR
	    A[Data sources] --> B[Ingest and store]
	    B --> C[Clean, label, transform]
	    C --> D[Feature engineering]
	    D --> E[Train or tune model]
	    E --> F[Evaluate]
	    F --> G{Meets criteria?}
	    G -- No --> C
	    G -- Yes --> H[Register and approve]
	    H --> I[Deploy: real-time, async, batch, serverless]
	    I --> J[Monitor: data, quality, bias, latency, errors]
	    J --> K{Drift or degradation?}
	    K -- Yes --> L[Retrain pipeline]
	    L --> E
	    K -- No --> I

This page supports IT Mastery practice with original practice questions. It is not affiliated with AWS.

  1. Do topic drills for data preparation, model development, deployment, monitoring, and security.
  2. Review every detailed explanation, including questions you answered correctly.
  3. Tag missed questions by decision error, not just by service name.
  4. Re-drill weak areas until you can explain why the wrong options are wrong.
  5. Use mock exams only after you can consistently handle scenario tradeoffs.

Good review notes after a missed question should look like:

  • “I chose real-time endpoint, but payload was large and processing was long; async inference was better.”
  • “I optimized accuracy, but class imbalance made recall/F1 more appropriate.”
  • “I selected IAM permissions, but the real issue was KMS key access.”
  • “I chose retraining, but the immediate issue was training-serving skew.”

High-yield AWS service selection

Need in scenarioPreferWhy it fitsCommon trap
Durable landing zone for training data, artifacts, model outputsAmazon S3Native integration with SageMaker, Glue, Athena, EMR, Redshift SpectrumDo not store large training datasets only on notebook instance storage
Data catalog for files in S3AWS Glue Data CatalogCentral schema/catalog for Athena, Glue, EMR, Redshift SpectrumAthena queries data; Glue Data Catalog stores metadata
Serverless SQL over S3Amazon AthenaAd hoc queries without managing clustersNot ideal for heavy ETL pipelines that need complex transforms
Serverless ETL, crawlers, Spark jobsAWS GlueManaged ETL and schema discoveryUse EMR when cluster-level control/custom big data stack is required
Custom big data processing frameworksAmazon EMRManaged Hadoop/Spark/Hive ecosystem with more configuration controlMore operational responsibility than Glue
Data warehouse analyticsAmazon RedshiftColumnar analytics, BI, warehouse workloadsS3 + Athena is often enough for ad hoc lake queries
Streaming ingestion with custom consumersAmazon Kinesis Data StreamsLow-latency streams and multiple consuming appsNot the same as Firehose delivery
Managed streaming delivery to S3/Redshift/OpenSearchAmazon Data FirehoseMinimal administration for delivery and bufferingLess control than Kinesis Data Streams
Kafka-compatible streamingAmazon MSKManaged Apache Kafka compatibilityChoose only when Kafka ecosystem compatibility matters
Human data labelingAmazon SageMaker Ground TruthManaged labeling workflows and workforcesFor sensitive data, prefer private workforce controls
Reusable online/offline ML featuresAmazon SageMaker Feature StoreHelps reduce training-serving skewDo not duplicate feature logic in separate train and inference code
No-code/low-code ML explorationAmazon SageMaker CanvasBusiness-user model building and predictionsProduction-grade MLOps still needs controlled pipelines and deployment
Managed notebook and ML IDEAmazon SageMaker StudioDevelopment, experiments, pipelines, model registry integrationNotebook success does not equal reproducible pipeline
Managed training jobsAmazon SageMaker TrainingScalable, repeatable training with containers, S3 inputs, IAM rolesAvoid training on notebook instances for production workflows
Hyperparameter searchSageMaker automatic model tuningRuns multiple training jobs against objective metricDo not tune against final test set
ML workflow orchestrationAmazon SageMaker PipelinesML-native steps, lineage, parameters, model registry integrationUse Step Functions for broader cross-service workflow orchestration
General workflow orchestration across AWS servicesAWS Step FunctionsServerless state machines, retries, approvals, integrationsLess ML-specific lineage than SageMaker Pipelines
Model package approval and versioningSageMaker Model RegistryTracks model versions, metadata, approval stateS3 artifact alone is not governed deployment
Real-time hosted inferenceSageMaker real-time endpointPersistent low-latency API endpointIdle endpoints can create unnecessary cost
Offline scoring of large datasetsSageMaker Batch TransformNo persistent endpoint; reads/writes S3Not for interactive request/response inference
Large payloads or longer inference timesSageMaker Asynchronous InferenceQueued requests, S3 outputs, scales endpoint capacityNot true synchronous low-latency API behavior
Intermittent inference trafficSageMaker Serverless InferenceNo instance management for spiky/idle workloadsConsider cold starts and workload suitability
Many similar models behind one endpointSageMaker multi-model endpointConsolidates model hostingModel load/cache behavior can affect latency
Foundation model API without managing model infrastructureAmazon BedrockManaged access to foundation models, agents, guardrails, knowledge basesDo not choose custom SageMaker training when managed FM API is enough
Custom ML containersAmazon ECR + SageMakerBring your own algorithm or inference containerContainer must satisfy SageMaker training/inference contracts
Logs, metrics, alarmsAmazon CloudWatchOperational visibility for endpoints, training, pipelinesModel quality drift requires ML-specific monitoring too
API auditingAWS CloudTrailWho called what AWS API and whenCloudWatch logs are not a substitute for API audit trails
Sensitive data discovery in S3Amazon MacieFinds and reports sensitive dataMacie does not replace IAM, KMS, or data access design

Data engineering and preparation reference

Storage, catalog, and query decisions

PatternBest fitExam cues
Raw/bronze data lakeS3 buckets with prefixes, encryption, lifecycle policies“Store raw source data durably and cheaply”
Curated training datasetS3 curated prefix, Parquet/CSV/RecordIO as appropriate“Reusable prepared dataset for training jobs”
Schema discoveryGlue crawler + Glue Data Catalog“Infer schema from files in S3”
SQL explorationAthena“Run SQL directly on S3 data”
Repeatable ETLGlue ETL job or SageMaker ProcessingGlue for general ETL; SageMaker Processing when tightly coupled to ML workflow
Distributed feature engineeringGlue, EMR, or SageMaker Processing with SparkChoose based on required control and integration
Warehouse-to-ML sourceRedshift unload/query integration, Data Wrangler, or direct connector“Training from warehouse data”
Streaming features/eventsKinesis Data Streams, MSK, Data FirehoseDistinguish custom stream processing from managed delivery
Notes and examples

Data split and leakage traps

SituationSplit strategyWatch for
Independent and identically distributed tabular dataRandom train/validation/test splitFit preprocessing only on training data
Imbalanced classesStratified splitAccuracy may be misleading
Time series forecastingChronological splitRandom split leaks future information
Same user/device/account appears many timesGroup-aware splitAvoid same entity in train and test
Small datasetCross-validation if feasibleKeep final holdout untouched
Hyperparameter tuningTrain/validation or cross-validationTest set is for final estimate only
Feature engineering before splitUsually unsafeScaling, imputation, encoding, and feature selection can leak test statistics

Data quality checklist

CheckWhy it mattersAWS-oriented action
Missing valuesMany algorithms cannot use nulls directlyImpute, add missing indicator, or filter
OutliersCan dominate loss and scalingCap, transform, robust scaling, investigate source
Class imbalanceOptimizer may favor majority classResampling, class weights, threshold tuning, PR AUC/F1
Label noiseLimits achievable accuracyGround Truth review, consensus labeling, quality audits
Duplicate rowsCan leak across splitsDeduplicate before splitting or group split
Skewed distributionsAffects linear models and distance methodsLog transform, normalization, robust scaling
High cardinality categoricalsSparse and overfit-proneHashing, target encoding with care, embeddings
PII/sensitive dataSecurity and governance riskMacie, IAM least privilege, KMS, tokenization/redaction

Feature Store concepts

ConceptMeaningExam relevance
Feature groupNamed collection of feature definitions and recordsOrganizes reusable features
Offline storeHistorical features, typically in S3Training, batch analytics, backfills
Online storeLow-latency feature lookupReal-time inference
Event timeTimestamp associated with feature recordCorrect point-in-time training data
Training-serving skewDifferent feature logic or freshness between training and productionFeature Store and shared transformation code reduce risk

Data storage and formats

Decision pointPrefer thisWhy
Large analytical datasets in S3Parquet or ORCColumnar, compressed, efficient for Athena/Glue/Spark
Simple interchange or small datasetsCSV or JSONEasy but often less efficient
Repeated ML training readsPartitioned S3 dataReduces scan and processing cost
Versioned reproducible training dataS3 versioning, manifest files, pipeline parametersHelps reproduce a model
Shared POSIX file access during trainingAmazon EFS or FSx options, depending on workloadS3 is object storage, not a mounted file system by default

Common trap: choosing a training algorithm or deployment service before fixing the data issue. If the scenario says the model performs well in validation but poorly in production, suspect leakage, skew, drift, nonrepresentative validation data, or feature mismatch.

Data splitting and leakage

Know the difference between random splitting and time-aware splitting.

ScenarioBetter split strategyTrap
Independent records with no time dependencyRandom train/validation/test splitAccidentally duplicating near-identical rows across splits
Forecasting, clickstream, transactions over timeTime-based splitTraining on future information
Users/customers appear multiple timesGroup-based splitSame user in train and test
Rare positive classStratified splitTest set has too few positive cases

Data leakage examples:

  • Using a feature that is only known after the prediction time.
  • Fitting scalers, imputers, encoders, or feature selectors on the full dataset before the split.
  • Including target-derived columns.
  • Using test data during hyperparameter tuning.
  • Training on records that overlap with the evaluation set.

Feature engineering decision rules

RequirementUseful approach
Handle missing numeric valuesImputation, missingness indicators, domain-specific defaults
Handle high-cardinality categorical valuesTarget encoding with care, hashing, embeddings, or grouping rare categories
Handle skewed numeric valuesLog transform, winsorization, robust scaling
Handle class imbalanceClass weights, resampling, threshold tuning, metric selection
Use features for both training and low-latency inferenceSageMaker Feature Store online/offline stores
Avoid training-serving skewUse the same transformation code or pipeline for training and inference

Data preparation services: quick choices

If the question says…Think…
“Run SQL queries directly on S3 data”Amazon Athena with AWS Glue Data Catalog
“Serverless ETL and data catalog”AWS Glue
“Spark/Hadoop ecosystem and more cluster control”Amazon EMR
“Visual feature preparation for SageMaker workflow”SageMaker Data Wrangler
“Repeatable preprocessing step in ML pipeline”SageMaker Processing
“Streaming records need real-time ingestion”Kinesis Data Streams or Amazon MSK
“Deliver streaming data into S3 with minimal management”Kinesis Data Firehose

SageMaker development and training

Development environment choices

NeedChooseNotes
Full ML IDE and managed notebooksSageMaker StudioUseful for experiments, pipelines, registry, monitoring
Notebook-only experimentationSageMaker notebook instances or Studio notebooksStop idle resources; not a production pipeline by itself
Business-user model buildingSageMaker CanvasLow-code predictions and exploration
Visual data prepSageMaker Data Wrangler where available in the workflowUseful for profiling, transforms, export to jobs/pipelines
Scripted reproducible processingSageMaker ProcessingRun preprocessing/evaluation containers at scale
Production trainingSageMaker Training jobIsolated, repeatable, containerized, logged
Notes and examples

Training job anatomy

Recognize these knobs in scenario and configuration questions:

TrainingJob:
  AlgorithmSpecification:
    TrainingImage: <ECR image or built-in algorithm>
    TrainingInputMode: File | FastFile | Pipe
  RoleArn: <SageMaker execution role>
  InputDataConfig:
    - ChannelName: train
      DataSource: s3://bucket/prefix/train/
    - ChannelName: validation
      DataSource: s3://bucket/prefix/validation/
  OutputDataConfig:
    S3OutputPath: s3://bucket/prefix/model-artifacts/
    KmsKeyId: <optional KMS key>
  ResourceConfig:
    InstanceType: <training instance type>
    InstanceCount: <count>
    VolumeKmsKeyId: <optional KMS key>
  HyperParameters:
    objective: binary:logistic
  VpcConfig:
    Subnets: [private-subnet]
    SecurityGroupIds: [sg-id]
  StoppingCondition:
    MaxRuntimeInSeconds: <limit>

Training input modes and data access

Mode/sourceBest fitTrap
File modeCommon default; data copied from S3 to training volumeStartup can be slower for very large data
FastFile modeS3 data exposed with file-like access where supportedConfirm algorithm/framework support
Pipe modeStreams data to algorithm where supportedContainer/algorithm must support streaming
Amazon FSx for LustreHigh-performance distributed file accessMore setup than simple S3 inputs
Amazon EFSShared file system across instancesConsider throughput and access pattern
Checkpoints to S3Long or interruptible training jobsNeeded to resume rather than restart from scratch

Container and algorithm choices

ChoiceUse whenNotes
Built-in SageMaker algorithmStandard algorithm fits problemLess container work, optimized integration
Framework estimator/script modeTensorFlow, PyTorch, scikit-learn, XGBoost scriptsBring training script; SageMaker manages job
Custom Docker containerNeed custom runtime, dependencies, algorithm, or inference stackMust follow SageMaker container conventions
Bring your own model artifactModel already trained elsewherePackage with compatible inference container
Amazon ECR imageCustom training/inference imageExecution role needs pull permissions

Built-in algorithm selection cues

Problem cueLikely algorithm familyNotes
Tabular classification/regression with nonlinear patternsXGBoostStrong default for structured data
Large-scale linear classification/regressionLinear LearnerWorks well for sparse/high-dimensional linear problems
Recommendation or sparse feature interactionsFactorization MachinesCommon for user-item sparse matrices
Clustering without labelsK-MeansUnsupervised segmentation
Anomaly detection in numeric/time-series-like dataRandom Cut ForestDetects unusual observations
Text classification or word embeddingsBlazingTextText-focused built-in option
Forecasting multiple related time seriesDeepARUses historical time series patterns
Image classification/detectionImage Classification, Object Detection, or framework modelOften use transfer learning or pretrained models
Custom deep learning architecturePyTorch/TensorFlow on SageMakerUse framework estimator or custom container

Hyperparameter tuning

ElementWhat to know
Objective metricMetric to maximize or minimize; must be emitted by training job
Search spaceRanges or categorical values for hyperparameters
Early stoppingStops weak jobs when supported/appropriate
Validation setUsed to compare tuning jobs
Final test setHeld out until final evaluation
Overfitting riskMore tuning can overfit validation data

Training job anatomy

A SageMaker training job usually needs:

  • Training container image, either built-in or custom.
  • Input data location, often S3.
  • Output model artifact location, often S3.
  • IAM execution role.
  • Instance type and count.
  • Hyperparameters.
  • Optional VPC configuration.
  • Optional checkpointing.
  • Optional debugger/profiler/metrics.

Built-in algorithms vs custom containers

ChooseWhen
SageMaker built-in algorithmStandard problem type, faster setup, less container maintenance
SageMaker framework estimatorTensorFlow, PyTorch, XGBoost, scikit-learn with managed training support
Custom containerCustom dependencies, custom runtime, unsupported framework, specialized training logic
Bring your own scriptYou need flexibility but can use managed framework containers

Custom container traps:

  • Image must be in Amazon ECR or otherwise accessible as required.
  • SageMaker role needs permission to pull the image and read/write S3.
  • Training code must read from expected input channels and write model artifacts correctly.
  • Private VPC training needs network access to S3/ECR/CloudWatch, often through VPC endpoints or controlled egress.

Distributed training and acceleration

Scenario clueConsider
Large deep learning model, long training timeGPU instances, distributed training, managed distributed libraries
Large tabular or tree modelCPU or memory-optimized instances may be enough
Need lower training cost and can tolerate interruptionManaged Spot Training with checkpointing
Training job must resume after interruptionCheckpoints saved to S3
Large dataset bottleneckData format, sharding, pipe mode where applicable, FSx/EFS patterns

Do not assume “bigger instance” is always the best answer. The exam may prefer the option that addresses the actual bottleneck: data loading, algorithm configuration, storage format, networking, or metric choice.

Model evaluation metrics

Confusion matrix terms

TermMeaning
TPPredicted positive and actually positive
FPPredicted positive but actually negative
TNPredicted negative and actually negative
FNPredicted negative but actually positive
Notes and examples\[ \begin{aligned} Accuracy &= \frac{TP + TN}{TP + TN + FP + FN} \\ Precision &= \frac{TP}{TP + FP} \\ Recall &= \frac{TP}{TP + FN} \\ F1 &= 2 \cdot \frac{Precision \cdot Recall}{Precision + Recall} \end{aligned} \]

Metric selection table

Task or riskPreferAvoid over-relying on
Balanced classificationAccuracy, ROC AUC, F1Accuracy alone if costs differ
Rare positive classPrecision, recall, F1, PR AUCAccuracy and sometimes ROC AUC
False negatives are costlyRecall/sensitivityPrecision alone
False positives are costlyPrecisionRecall alone
Probabilistic classificationLog loss, calibrationOnly thresholded accuracy
Regression with large-error penaltyRMSEMAE if large errors must be emphasized
Regression with robust typical errorMAERMSE if outliers dominate unfairly
ForecastingMAE, RMSE, MAPE/sMAPE where validMAPE when actual values can be zero
Ranking/recommendationNDCG, MAP, precision@k/recall@kGeneric classification accuracy
ClusteringSilhouette score, within-cluster sum of squaresSupervised metrics without labels
\[ RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^{n}(y_i - \hat{y}_i)^2} \]\[ MAE = \frac{1}{n}\sum_{i=1}^{n}|y_i - \hat{y}_i| \]

Evaluation traps

TrapCorrect reasoning
“High accuracy” on imbalanced dataCheck confusion matrix, recall, precision, F1, PR AUC
Tuning threshold on test setTune threshold on validation set; reserve test set
Random split for time seriesUse chronological split
Preprocessing entire dataset before splitFit transforms on train only, apply to validation/test
Comparing models with different test dataUse the same holdout or controlled cross-validation
Better offline metric but worse productionInvestigate data drift, training-serving skew, latency/timeouts, feature freshness

Deployment and inference patterns

Inference mode decision matrix

RequirementChooseWhyWatch for
Low-latency request/responseSageMaker real-time endpointPersistent HTTPS endpointScale and monitor latency/errors
Spiky or intermittent trafficSageMaker Serverless InferenceNo instance managementCold start and workload suitability
Large payloads or long processingSageMaker Asynchronous InferenceQueued async invocation, S3 outputClient does not wait synchronously
Offline batch scoringSageMaker Batch TransformReads S3 input, writes S3 outputNo always-on endpoint
Many tenant- or segment-specific modelsMulti-model endpointHosts multiple models behind one endpointInitial model load can add latency
Multiple containers in one endpointMulti-container endpointDirect or serial container invocation patternsNot the same as multi-model hosting
Edge or disconnected inferenceAWS IoT Greengrass or device runtime patternLocal inference near data sourceModel update and device security matter
Lightweight model behind app APIAWS Lambda plus API Gateway, if suitableSimple serverless app integrationNot ideal for large models/heavy inference
Notes and examples

Deployment controls

ControlUse forNotes
Production variantsTraffic splitting across model variantsSupports A/B style testing
Shadow variantTest new model on production traffic without serving its responseUseful before promotion
Canary/linear rollout patternGradual production traffic shiftPair with CloudWatch alarms and rollback
Auto scalingAdjust endpoint capacity based on demandMonitor latency, invocation volume, errors
Data captureStore inference inputs/outputs in S3Required for many monitoring workflows
Model Registry approvalGate promotion to staging/prodSupports governance and reproducibility
Inference RecommenderEvaluate hosting instance/config optionsUse when unsure about performance/cost tradeoff

SageMaker inference container contract

EndpointPurpose
/pingHealth check
/invocationsInference requests

Common container issues: wrong content type, missing dependencies, slow model load, model artifact path mismatch, container not listening correctly, memory exhaustion, or IAM denial when pulling ECR image or reading S3 artifact.

Pick the right inference pattern

RequirementBetter fitKey reason
Low-latency, always-on APISageMaker real-time endpointPersistent endpoint for synchronous predictions
Intermittent traffic, simpler scalingSageMaker serverless inferenceNo instance management for variable demand
Large payloads or long processing timeSageMaker asynchronous inferenceQueues requests and processes asynchronously
Offline predictions for a datasetSageMaker batch transformNo persistent endpoint needed
Many similar models with low traffic eachMulti-model endpointReduces cost by sharing infrastructure
Test new model against production trafficShadow testing or production variantsCompare safely before full cutover
Gradual rolloutCanary or blue/green deploymentReduce release risk

Deployment traps

TrapCorrect thinking
Choosing batch transform for real-time low-latency useBatch transform is for offline batch scoring
Keeping a real-time endpoint for infrequent jobsConsider batch transform or serverless inference
Ignoring payload size and timeoutAsync inference may be a better fit for large/long requests
Deploying without data captureModel Monitor needs captured inference data for many monitoring workflows
Confusing endpoint variants with model registry versionsVariants split traffic; registry tracks model packages and approval status
Assuming auto scaling fixes model qualityScaling fixes capacity, not drift or bad predictions

Real-time endpoint concepts

For SageMaker real-time inference, know:

  • Model: points to model artifacts and inference image.
  • Endpoint configuration: defines production variants and instance choices.
  • Endpoint: live HTTPS inference target.
  • Production variant: model/instance group with traffic weight.
  • Auto scaling: adjusts capacity based on metrics such as invocation load.
  • Data capture: stores requests and responses for monitoring.

Generative AI and foundation model choices

ScenarioPreferReasoning
Use managed foundation models through APIAmazon BedrockAvoids managing model infrastructure
Need guardrails for FM application behaviorGuardrails for Amazon BedrockCentral control for safety and policy behavior
Need RAG over enterprise documentsKnowledge Bases for Amazon Bedrock or custom RAG stackRetrieves current private context instead of retraining model for facts
Need agents that call tools/APIsAgents for Amazon BedrockOrchestrates tasks with FM reasoning and actions
Need deploy/tune open or pretrained model in SageMaker environmentSageMaker JumpStart or SageMaker hostingMore control over model/container/VPC/MLOps
Need custom model architecture/training loopSageMaker custom trainingFull control, more engineering responsibility
Need semantic searchEmbeddings + vector store such as Amazon OpenSearch Service/OpenSearch Serverless, Aurora PostgreSQL with vector support, or managed Bedrock knowledge baseMatch text by meaning, not exact keywords
Notes and examples

Prompt, RAG, fine-tuning, or training?

NeedUsually chooseWhy
Change output format, tone, instructionsPrompt engineeringFastest and lowest operational complexity
Use private or frequently changing factsRAGKeeps knowledge external and updateable
Improve behavior on repeated task patternFine-tuning/customization where supportedTeaches task style or domain pattern
Add brand-new domain facts onlyRAG firstFine-tuning is not a reliable database
Build specialized model from scratchCustom trainingHighest cost/complexity; use only when necessary

MLOps and automation

Pipeline stages to recognize

StageSageMaker/AWS service fitKey artifacts
IngestS3, Kinesis, Data Firehose, DMSRaw data
Validate/profileGlue Data Quality, SageMaker Processing, Data WranglerData reports, constraints
TransformGlue, EMR, SageMaker ProcessingCurated dataset, features
TrainSageMaker TrainingModel artifact, metrics
TuneSageMaker automatic model tuningBest training job, hyperparameters
EvaluateSageMaker Processing or pipeline evaluation stepEvaluation report
Conditional gateSageMaker Pipelines condition stepPass/fail metric rule
RegisterSageMaker Model RegistryModel package/version
ApproveManual or automated approval workflowApproval state
DeploySageMaker endpoint, Batch Transform, CI/CD pipelineEndpoint or batch job
MonitorModel Monitor, Clarify, CloudWatchDrift reports, alarms
RetrainEventBridge, Pipelines, Step FunctionsNew model version
Notes and examples

SageMaker Pipelines pattern

Process raw data
  -> Train model
  -> Evaluate metrics
  -> If metric passes threshold:
         Register model package
         Optionally deploy to staging
     Else:
         Stop and record failure

CI/CD and governance distinctions

NeedPreferNotes
Version infrastructureAWS CloudFormation or AWS CDKReproducible environments
Build/test custom containersAWS CodeBuild + Amazon ECRScan and control images
Orchestrate release stagesAWS CodePipeline or equivalent CI/CDSeparate dev/test/prod
Trigger pipeline on data or approval eventAmazon EventBridgeEvent-driven retraining/deployment
Human approvalCodePipeline approval, Step Functions, or registry approval processUseful before production changes
Track experimentsSageMaker ExperimentsParameters, metrics, artifacts, lineage
Reproduce trainingPin code, image, dependencies, data version, hyperparameters, random seedsNot just “rerun notebook”

Security, privacy, and governance

IAM and access patterns

ControlExam-ready meaning
SageMaker execution roleRole assumed by SageMaker jobs/endpoints to access S3, ECR, CloudWatch, KMS, VPC resources
Least privilegeRestrict actions and resource ARNs, especially S3 prefixes and KMS keys
IAM user/role separationHuman identity starts jobs; execution role is used by managed service
Resource policiesS3 bucket policies, KMS key policies, ECR repository policies may also be required
Temporary credentialsPrefer IAM roles over long-lived static keys
Secrets ManagerStore database/API credentials; do not hardcode in notebooks or containers
Notes and examples

Network and encryption controls

RequirementUseNotes
Encrypt S3 training data/artifactsS3 server-side encryption with AWS KMS where requiredExecution role needs KMS permissions
Encrypt training/inference volumesKMS key options where supportedInclude key policy permissions
Private training/inference network pathVPC configuration with private subnets/security groupsEnsure access to S3/ECR/CloudWatch through endpoints or controlled egress
No internet access from training containerNetwork isolation where appropriateContainer cannot fetch packages from internet
Private AWS service accessVPC endpoints/AWS PrivateLink where supportedAvoid public internet routes
Audit API callsCloudTrailWho changed endpoint, role, pipeline, bucket, key
Monitor logs/metricsCloudWatchOperational visibility
Detect sensitive data in S3MacieComplements, not replaces, access controls
Govern data lake permissionsAWS Lake FormationCentralized lake permissions over cataloged data

Security traps

TrapCorrect answer direction
AccessDenied from training job despite user accessCheck SageMaker execution role, bucket policy, KMS key policy
Private subnet job cannot pull image or read S3Add required VPC endpoints or controlled NAT path
KMS-encrypted S3 object unreadableExecution role needs both S3 and KMS decrypt permissions
Secret passed as plain environment variableUse Secrets Manager or secure parameter retrieval
Public notebook or endpoint exposureUse IAM, VPC, security groups, private access, and least privilege
Sensitive labeling dataUse private workforce and secure data access controls

IAM fundamentals for MLA-C01

ConceptReview point
IAM rolePreferred for AWS service permissions; avoid hard-coded credentials
SageMaker execution roleGrants training/processing/notebook jobs access to S3, ECR, CloudWatch, KMS, etc.
Least privilegeGrant only required actions and resources
Resource policyS3 bucket policies, KMS key policies, ECR repository policies may also control access
Temporary credentialsPrefer roles and federation over long-term access keys
Cross-account accessRequires permissions on both caller and resource sides

Common trap: giving an IAM role S3 permission but forgetting the KMS key policy or KMS permissions for encrypted data.

Encryption and private networking

RequirementConsider
Encrypt data at rest in S3SSE-S3 or SSE-KMS, depending on control requirements
Encrypt training artifactsS3 encryption and SageMaker volume/output encryption settings
Encrypt data in transitHTTPS/TLS endpoints
Keep traffic off public internetVPC configuration, private subnets, VPC endpoints
Access S3 privately from VPCGateway endpoint for S3
Access AWS APIs privatelyInterface VPC endpoints where applicable
Store database passwords/API tokensAWS Secrets Manager or AWS Systems Manager Parameter Store
Audit API callsAWS CloudTrail

Private VPC trap: putting SageMaker training in a private subnet can break access to S3, ECR, and CloudWatch unless network paths are configured. The secure answer must still allow required service access.

Data protection and responsible ML

Expect scenarios involving:

  • Sensitive data in training datasets.
  • Encryption requirements.
  • Access control for notebooks, S3, model artifacts, and endpoints.
  • Audit trails for model deployment.
  • Bias or explainability checks with SageMaker Clarify.
  • Minimizing exposure of secrets and credentials.

Do not choose an option that solves model accuracy while ignoring stated security constraints.

Monitoring, observability, and troubleshooting

What to monitor

LayerTool/serviceSignals
Endpoint operationsCloudWatch metrics/logsInvocations, latency, errors, resource utilization
Training jobsCloudWatch logs, SageMaker job statusScript errors, metric output, resource failures
API activityCloudTrailCreate/update/delete endpoint, IAM, S3, KMS API calls
Input/output driftSageMaker Model Monitor data qualityFeature distribution changes
Model performanceSageMaker Model Monitor model qualityRequires ground truth labels
Bias driftSageMaker Clarify / Model Monitor integrationBias metric changes over time
Explainability driftClarify feature attribution monitoringFeature importance changes
Data captureSageMaker endpoint data capture to S3Inputs/outputs for monitoring and analysis
Notes and examples

Troubleshooting decision table

SymptomLikely checks
Training job cannot access dataExecution role, S3 URI, bucket policy, KMS key policy, VPC endpoint
Training job starts but algorithm failsInput format, content type, channel names, hyperparameters, script error
Metrics not visible for tuningTraining script must emit metric matching tuning regex/definition
Endpoint creation failsModel artifact path, container image, IAM/ECR access, model load errors
Endpoint returns 4xxRequest format, content type, authentication, payload schema
Endpoint returns 5xxContainer logs, model exception, memory/timeout, dependency error
Latency increasesInstance sizing, concurrency, autoscaling, payload size, cold starts, model size
Production accuracy dropsData drift, label drift, feature skew, upstream schema change, stale features
Model Monitor has no quality reportGround truth labels may be missing or delayed
Costs unexpectedly highIdle endpoints/notebooks, overprovisioned instances, unnecessary always-on hosting
Batch job slowInput sharding, data format, instance choice, transform strategy
Pipeline did not triggerEventBridge rule, permissions, source event pattern, pipeline parameters

Cost-aware engineering choices

Cost pressurePractical pattern
Idle development environmentsStop notebooks/Studio apps when unused; use lifecycle controls where appropriate
Always-on endpoint with rare trafficConsider Serverless Inference, Asynchronous Inference, or Batch Transform
Many small modelsConsider multi-model endpoints
Large recurring batch scoringUse Batch Transform and right-size compute
Long training jobsUse checkpoints; consider managed spot training where suitable
OvertrainingUse early stopping and sensible tuning search spaces
Duplicate feature computationReuse Feature Store and shared processing jobs
Unused artifacts/logsApply S3 lifecycle policies and retention controls
Inefficient data formatPrefer columnar/compressed formats such as Parquet for analytics workloads

Scenario shortcuts

If the stem says…Likely answerWhy
“Run SQL on files in S3 without managing servers”Athena + Glue Data CatalogServerless query over data lake
“Infer schema from new S3 data”Glue crawlerPopulates catalog metadata
“Large-scale ETL with serverless Spark”AWS GlueManaged ETL
“Need full Spark cluster configuration control”EMRMore control than Glue
“Label images with human reviewers”SageMaker Ground TruthManaged labeling
“Avoid different feature code in training and inference”SageMaker Feature StoreReduces training-serving skew
“Train model reproducibly at scale”SageMaker Training jobManaged, containerized, repeatable
“Find best hyperparameters automatically”SageMaker automatic model tuningSearches parameter space
“Track parameters, metrics, and artifacts”SageMaker ExperimentsExperiment lineage
“Approve model before production”SageMaker Model RegistryModel package governance
“Deploy for millisecond-style request/response”Real-time endpointPersistent inference
“Score millions of records nightly”Batch TransformOffline batch predictions
“Requests can take longer and response can be stored in S3”Asynchronous InferenceQueued async processing
“Traffic is unpredictable and often idle”Serverless InferenceNo instance management
“Compare new model silently on production traffic”Shadow variantDoes not affect user response
“Detect input feature distribution drift”Model Monitor data qualityBaseline vs captured data
“Detect accuracy degradation after labels arrive”Model Monitor model qualityNeeds ground truth
“Who changed the endpoint configuration?”CloudTrailAPI audit
“Endpoint has high 5xx errors”CloudWatch logs + container diagnosticsOperational troubleshooting
“Use foundation model without hosting it”Amazon BedrockManaged FM API
“Add current company documents to FM answers”RAG / Knowledge Bases for Amazon BedrockRetrieves external knowledge
“Sensitive S3 training data may contain PII”Macie + IAM/KMS controlsDiscovery plus protection
“Private training with no internet”VPC config, endpoints, network isolationControlled network path

Final review checklist

  • Map every scenario to the lifecycle step: data, features, training, evaluation, deployment, monitoring, or governance.
  • Distinguish Athena vs Glue vs EMR, Pipelines vs Step Functions, and real-time vs async vs batch vs serverless inference.
  • For security questions, check execution role, S3 policy, KMS policy, VPC path, and CloudTrail.
  • For model quality questions, identify whether the issue is data quality, drift, bias, feature skew, evaluation metric choice, or deployment configuration.
  • For MLOps questions, prefer repeatable jobs, tracked artifacts, model registry approval, automated deployment, and monitoring-triggered retraining over manual notebook workflows.

Next step: use this Cheat Sheet as a drill sheet, then practice scenario questions that force you to choose the correct AWS service, deployment mode, monitoring control, or security fix for MLA-C01.

Notes and examples

Final quick checklist before practice

Before starting a mock exam for AWS Certified Machine Learning Engineer – Associate (MLA-C01), confirm you can quickly answer:

  • Which AWS service prepares, trains, deploys, monitors, and orchestrates each ML step?
  • Which inference option matches each latency and traffic pattern?
  • Which metric matches each business risk?
  • How do you detect data drift, model quality degradation, bias, and infrastructure issues?
  • How do IAM, KMS, VPC endpoints, CloudWatch, and CloudTrail fit into ML workloads?
  • How do SageMaker Pipelines, Model Registry, and CI/CD support repeatable MLOps?
  • What are the common causes of production model failure beyond endpoint availability?

Next step: start with MLA-C01 topic drills in the question bank, then use the detailed explanations to turn each missed scenario into a clear AWS service-selection rule.

What to know before drilling questions

The MLA-C01 exam is scenario-driven. Many questions are not asking, “What does this service do?” They are asking, “Given these constraints, which AWS machine learning design is the best fit?”

Read each question for:

  • Workflow stage: data preparation, training, deployment, orchestration, monitoring, governance, or security.
  • Constraint: lowest latency, lowest cost, real-time inference, batch inference, private networking, explainability, drift detection, automation, or operational control.
  • Managed-service preference: AWS exam scenarios often reward using managed capabilities when they directly satisfy the requirement.
  • Failure mode: data leakage, incorrect metric, overfitting, missing permissions, no network path, no monitoring baseline, or manual steps where automation is required.

High-yield AWS ML engineering service map

NeedHigh-yield AWS services or featuresWatch for
Store raw and processed ML dataAmazon S3, S3 versioning, S3 lifecycle, S3 encryptionBucket policies, KMS permissions, data partitioning
Catalog and transform dataAWS Glue, AWS Glue Data Catalog, Amazon Athena, Amazon EMR, Amazon SageMaker Data WranglerGlue for ETL/catalog, Athena for SQL on S3, EMR for big data frameworks
Stream dataAmazon Kinesis Data Streams, Kinesis Data Firehose, Amazon MSKReal-time ingestion vs delivery to S3/OpenSearch/Redshift
Build and train modelsAmazon SageMaker training jobs, notebooks, Studio, built-in algorithms, custom containersIAM execution role, ECR image access, S3 input/output paths
Tune modelsSageMaker automatic model tuningObjective metric, search ranges, early stopping
Process data at scaleSageMaker Processing jobsRepeatable preprocessing/evaluation outside notebooks
Track featuresSageMaker Feature StoreOnline store for low-latency lookup, offline store for training/history
Register and approve modelsSageMaker Model RegistryModel package groups, approval status, lineage
Deploy inferenceSageMaker real-time endpoints, serverless inference, asynchronous inference, batch transformMatch latency, traffic pattern, payload size, and cost
Orchestrate workflowsSageMaker Pipelines, AWS Step Functions, Amazon EventBridgeML-native pipeline vs broader service orchestration
Monitor modelsSageMaker Model Monitor, SageMaker Clarify, Amazon CloudWatchBaselines, schedules, captured data, labels for model quality
Secure workloadsIAM, AWS KMS, VPC, security groups, VPC endpoints, AWS Secrets Manager, AWS CloudTrailLeast privilege, encryption, private connectivity, auditability
Build CI/CDAWS CodePipeline, CodeBuild, CodeDeploy, SageMaker ProjectsReproducible promotion from dev to test to production

The core ML lifecycle on AWS

    flowchart LR
	    A[Collect data] --> B[Store in S3]
	    B --> C[Catalog and prepare]
	    C --> D[Train and tune]
	    D --> E[Evaluate]
	    E --> F{Meets criteria?}
	    F -- No --> C
	    F -- Yes --> G[Register model]
	    G --> H[Deploy]
	    H --> I[Monitor]
	    I --> J{Drift or degradation?}
	    J -- Yes --> C
	    J -- No --> I

For MLA-C01 review, focus on how each stage is automated, secured, monitored, and connected to the next stage.

Model development essentials

Algorithm and problem type recognition

Problem typeOutputCommon metrics
Binary classificationOne of two classes or probabilityAccuracy, precision, recall, F1, ROC-AUC, PR-AUC
Multiclass classificationOne of several classesAccuracy, macro/micro F1, confusion matrix
RegressionNumeric valueRMSE, MAE, R-squared
ForecastingFuture numeric values over timeRMSE, MAPE, backtesting metrics
ClusteringGroup assignment without labelsSilhouette score, domain validation
Anomaly detectionUnusual event score or labelPrecision/recall, false positive rate
Ranking/recommendationOrdered list or item scoreNDCG, MAP, click-through metrics
Notes and examples

Metric traps:

  • Accuracy can be misleading with imbalanced data.
  • Precision matters when false positives are expensive.
  • Recall matters when false negatives are expensive.
  • F1 balances precision and recall.
  • ROC-AUC may look strong even when rare-positive performance is weak; PR-AUC may be more informative for severe imbalance.
  • RMSE penalizes large errors more than MAE.

Classification metrics refresher

MetricPlain-language meaningUse when
PrecisionOf predicted positives, how many were actually positiveFalse positives are costly
RecallOf actual positives, how many were foundFalse negatives are costly
F1 scoreHarmonic balance of precision and recallNeed a single balance metric
SpecificityOf actual negatives, how many were correctly rejectedFalse alarms matter
Confusion matrixCounts TP, FP, TN, FNDiagnose error type

Bias, variance, and overfitting

SymptomLikely issueResponse
Low training score and low validation scoreHigh bias / underfittingMore expressive model, better features, train longer
High training score and low validation scoreHigh variance / overfittingRegularization, more data, early stopping, simpler model
Validation good, production poorDrift, leakage, skew, bad split, changed data sourceMonitor, compare distributions, retrain
Training unstableLearning rate too high, poor scaling, noisy dataTune learning rate, normalize, review data quality

Hyperparameter tuning

SageMaker automatic model tuning is high-yield for scenarios where the model type is chosen but performance needs improvement.

Remember:

  • Define an objective metric that matches business and exam constraints.
  • Set realistic hyperparameter ranges.
  • Use validation data, not test data, for tuning.
  • Use early stopping when supported to reduce cost.
  • Keep a final untouched test set for unbiased evaluation.

Common trap: optimizing the wrong metric. If the scenario emphasizes missed fraud, missed disease, or missed safety issues, recall-oriented metrics often matter more than accuracy.

Orchestration, CI/CD, and MLOps

Workflow service selection

NeedPrefer
ML-native pipeline with training, tuning, evaluation, model registrationSageMaker Pipelines
Coordinate AWS services beyond ML, with branching and retriesAWS Step Functions
Event-driven trigger after file upload or scheduleAmazon EventBridge
Source-to-build-to-deploy software pipelineAWS CodePipeline with CodeBuild/CodeDeploy
Package and approve model versionsSageMaker Model Registry
Track experiments, parameters, metrics, and artifactsSageMaker Experiments or equivalent tracking setup
Notes and examples

MLOps review checklist

A production-ready ML workflow should answer:

  1. Where did the training data come from?
  2. Which code version created the model?
  3. Which hyperparameters were used?
  4. Which metrics approved the model?
  5. Who or what approved deployment?
  6. How is the model deployed and rolled back?
  7. What monitoring detects drift or degradation?
  8. What triggers retraining?
  9. How are secrets, keys, and network paths secured?
  10. How are logs and audit events retained?

Model Registry decision points

Use SageMaker Model Registry when the scenario requires:

  • Tracking model versions.
  • Model package approval before deployment.
  • Promotion from development to staging to production.
  • Lineage and governance around model artifacts.
  • CI/CD integration for model deployment.

Common trap: storing a model artifact in S3 is not the same as managing the model lifecycle. S3 can store artifacts, but Model Registry provides versioning, approval, and lifecycle metadata.

Monitoring, maintenance, and drift

Types of monitoring

Monitoring typeWhat it detectsNeeds
Infrastructure monitoringCPU, memory, latency, errors, invocationsCloudWatch metrics/logs
Data quality monitoringFeature distribution changes, missing values, schema issuesBaseline and captured inference data
Model quality monitoringPrediction quality degradationGround truth labels
Bias monitoringBias metric changes over timeSageMaker Clarify configuration and data
Explainability monitoringFeature attribution changesClarify/explainability setup
Security/audit monitoringAPI calls, access changes, unusual activityCloudTrail, logs, IAM review
Notes and examples

Drift concepts

Drift typeMeaningExample
Data driftInput feature distribution changesNew customer population behaves differently
Concept driftRelationship between features and target changesFraud patterns change
Label driftTarget distribution changesPositive class rate rises sharply
Training-serving skewTraining preprocessing differs from inference preprocessingOne-hot encoding differs between environments

High-yield rule: if a question mentions production performance decline but infrastructure is healthy, look for drift, skew, missing monitoring baseline, or retraining workflow.

Retraining triggers

Retraining may be triggered by:

  • Scheduled interval.
  • Data drift threshold.
  • Model quality threshold.
  • New labeled data availability.
  • Business event or seasonal change.
  • Manual approval after monitoring alert.

Do not retrain blindly if the problem is bad input data, broken preprocessing, missing features, or a deployment bug. Fix the cause first.

Cost and performance optimization

Training cost controls

RequirementOption
Reduce cost for interruption-tolerant trainingManaged Spot Training
Resume interrupted trainingCheckpointing to S3
Avoid unnecessary data scansPartitioned columnar data
Reduce repeated preprocessing costPersist processed features or use Feature Store/offline store
Reduce tuning costNarrow search ranges, early stopping, sensible max jobs
Avoid idle notebooksStop notebook instances or use managed environments appropriately

Inference cost controls

Traffic patternCost-aware choice
Continuous predictable trafficRight-sized real-time endpoint with auto scaling
Bursty or intermittent trafficServerless inference
Offline scoringBatch transform
Many low-traffic modelsMulti-model endpoint
Large/slow requestsAsync inference rather than overprovisioned synchronous endpoint
Need lower latency at scaleTune model, choose appropriate instance, autoscale, consider optimized runtimes

Performance trap: adding instances may not help if the bottleneck is model size, serialization, preprocessing, cold starts, or downstream dependencies.

Common MLA-C01 scenario traps

Candidate mistakeBetter exam approach
Memorizing services without constraintsIdentify latency, cost, governance, and automation requirements
Picking the newest ML service automaticallyChoose the service that directly satisfies the scenario
Treating notebooks as production workflowsUse pipelines, jobs, registries, and CI/CD for repeatability
Ignoring train/test contaminationCheck split strategy and preprocessing order
Using accuracy for imbalanced classificationMatch metric to business cost
Deploying before approval/governanceUse Model Registry and approval gates when required
Monitoring only CPU and latencyAdd data/model quality monitoring for ML risk
Forgetting ground truth labelsModel quality monitoring needs labels
Assuming IAM permission alone is enoughCheck bucket policy, KMS key policy, VPC access, and ECR access
Choosing real-time endpoint for batch workloadUse batch transform for offline scoring
Choosing batch transform for API predictionUse real-time, serverless, or async inference
Missing retraining automationUse EventBridge, Pipelines, Step Functions, and monitoring triggers
Hard-coding credentialsUse IAM roles and Secrets Manager/Parameter Store

Fast decision rules

Data and processing

  • If the data is in S3 and the question says ad hoc SQL, think Athena.
  • If the question says serverless ETL/catalog, think Glue.
  • If the question says Spark with more control, think EMR.
  • If the question says repeatable ML preprocessing job, think SageMaker Processing.
  • If the question says same features for training and low-latency inference, think SageMaker Feature Store.
  • If the question says streaming ingestion, compare Kinesis Data Streams, Firehose, and MSK.
Notes and examples

Training

  • If performance is poor on both train and validation, address underfitting.
  • If training is strong and validation is weak, address overfitting.
  • If validation is strong and production is weak, investigate drift, skew, leakage, or bad split.
  • If training may be interrupted for cost savings, use Managed Spot Training with checkpoints.
  • If custom dependencies are required, consider custom containers, but check ECR/IAM/networking.

Deployment

  • Need real-time synchronous predictions: SageMaker real-time endpoint.
  • Need intermittent traffic without managing instances: serverless inference.
  • Need large payload or long-running inference: asynchronous inference.
  • Need offline scoring: batch transform.
  • Need gradual rollout: production variants, canary, blue/green.
  • Need compare new model without affecting responses: shadow testing.

Monitoring and operations

  • Need input distribution checks: data quality monitoring.
  • Need prediction performance checks: model quality monitoring with ground truth.
  • Need bias/explainability: SageMaker Clarify.
  • Need API/infrastructure metrics: CloudWatch.
  • Need audit of AWS API activity: CloudTrail.
  • Need automatic retraining: monitoring trigger plus pipeline orchestration.

Mini review tables for question practice

Inference selection table

LatencyWorkloadBest starting answer
Milliseconds/low latencyContinuous API trafficReal-time endpoint
Low latencySpiky or intermittent API trafficServerless inference
Minutes acceptableLarge files or long processingAsync inference
Hours acceptableLarge offline datasetBatch transform
Notes and examples

Monitoring selection table

Question clueBest monitoring angle
“Input features differ from training baseline”Data drift/data quality
“Accuracy decreased after deployment”Model quality, ground truth labels
“Bias must be measured before and after deployment”SageMaker Clarify
“Endpoint latency increased”CloudWatch endpoint metrics
“Who changed the endpoint configuration?”CloudTrail
“Need captured requests and responses”SageMaker endpoint data capture

Security selection table

Question clueLikely answer component
“No public internet access”VPC endpoints/private networking
“Encrypted S3 objects cannot be read”KMS key permissions or key policy
“Notebook has access keys in code”IAM role/temporary credentials
“Need audit record of API calls”CloudTrail
“Need secure database password retrieval”Secrets Manager
“Training container cannot be pulled”ECR permissions/network path

Put the review into practice