Skip to content
AWS Certified Machine Learning Engineer – Associate (MLA-C02) Exam Prep

Lesson 6 of 8 · 14 min

x
6/8

Domain 3: Deployment and Orchestration of ML and AI Workflows (Part 2 of 2)

This lesson covers 4 exam topics: Auto Scaling and GPU Scaling, CI/CD for ML and Deployment Strategies, Training Jobs, Re-training and Pipelines, Versioning Models, Prompts and Agents. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Auto Scaling and GPU Scaling

Video lesson: MLA-C02 26/35: Auto Scaling and GPU Scaling

Central question: Which metric should drive scaling, and how do GPU workloads differ?

SageMaker endpoint auto scaling

Auto scaling adjusts the number of instances to the workload. Metrics named in SageMaker docs include:

MetricUse
SageMakerVariantInvocationsPerInstanceClassic target-tracking metric for request rate
SageMakerVariantConcurrentRequestsPerModelHighResolutionConcurrency-based, faster reaction (high resolution)
SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolutionConcurrency per inference component copy
CPUUtilization (and GPU utilization via CloudWatch)Resource-based scaling

Policies: target tracking (recommended), step scaling, scheduled scaling (general background).

GPU workloads (skill 3.2.10; design guidance)

  • LLM load is driven by concurrent requests and tokens, not CPU: scale on concurrency or GPU utilization.
  • Slow model loading → keep a minimum warm capacity; scale out early; scheduled scaling for known peaks.
  • Use inference components to pack several models per GPU instance and scale copies per model.
  • Asynchronous endpoints can scale to zero on a backlog metric when idle.

Exam traps

  • CPU-based scaling for GPU LLM endpoints.
  • Minimum capacity of zero on a real-time LLM endpoint with long cold starts.
  • No scheduled scaling for predictable daily peaks.

2. CI/CD for ML and Deployment Strategies

Video lesson: MLA-C02 27/35: CI/CD for ML and Deployment Strategies

Central question: How do models and AI changes move to production safely and automatically?

AWS developer tools (verified where linked)

ToolRole
AWS CodePipelineOrchestrates stages: source → build/test → deploy, with approvals
AWS CodeBuildRuns builds, tests, evaluations, security scans
AWS CodeDeployDeployment automation
AWS CodeCommitManaged Git repositories
AWS CodeConnections (formerly CodeStar Connections)Connect pipelines to GitHub, Bitbucket, GitLab
SageMaker ProjectsMLOps templates with CI/CD for build, train and deploy

Troubleshooting (design guidance): check pipeline execution history, CodeBuild logs in CloudWatch, IAM permissions of the pipeline role, connection status.

SageMaker deployment guardrails

  • Blue/green deployments with all-at-once, canary or linear traffic shifting; automatic rollback on CloudWatch alarms; real-time and asynchronous endpoints.

Automated testing (skill 3.3.4; design guidance)

Unit tests on data code; data validation; model metric thresholds; prompt and safety tests for AI; load tests (Inference Recommender benchmarks instance types); gates before promotion.

Exam traps

  • Big-bang deployment with no rollback alarms.
  • Pipeline with no quality gate for model metrics.
  • Connections broken after renaming — CodeStar Connections is now CodeConnections.

3. Training Jobs, Re-training and Pipelines

Video lesson: MLA-C02 28/35: Training Jobs, Re-training and Pipelines

Central question: How do you configure training jobs and retrain automatically?

Configuring jobs (verified where linked)

  • Training job: algorithm or container image, input channels (S3 with File / Fast file / Pipe mode, FSx for Lustre, EFS), instance type and count, output S3 path, IAM role, stopping condition, hyperparameters, optional Managed Spot with checkpoints.
  • Inference jobs: batch transform (input/output S3, instance type, split strategy) or endpoints.

SageMaker Pipelines

Purpose-built workflow orchestration for ML: steps for processing, training, tuning, evaluation, condition checks, model registration and deployment; serverless orchestration; visual editor, SDK, APIs or JSON.

Re-training mechanisms (skill 3.3.5; design guidance)

TriggerMechanism
ScheduleEventBridge Scheduler starts the pipeline
Drift alarmCloudWatch alarm → EventBridge → pipeline
New labelled dataS3 event → pipeline

Gate retrained models: evaluate against the current model and register only if better.

Exam traps

  • Retraining with no evaluation gate, replacing a better model.
  • Manual notebook retraining in production.
  • File mode for datasets bigger than the disk.

4. Versioning Models, Prompts and Agents

Video lesson: MLA-C02 29/35: Versioning Models, Prompts and Agents

Central question: How do you version every AI artefact and automate its release?

What to version, and where (verified where linked)

ArtefactTool
ML modelsSageMaker Model Registry: model groups, versions, metadata, approval status (Approved / PendingManualApproval / Rejected); or MLflow Model Registry on SageMaker AI
PromptsBedrock Prompt Management: variables, variants, versions
Fine-tuned FMsRegistry versions + Bedrock custom models; automate deployment per version (skill 3.3.10)
AgentsVersion agent code/config in Git; deploy through pipelines to AgentCore Runtime (skill 3.3.8)
Knowledge basesPipelines that sync data sources on schedule or events (skill 3.3.11)

Testing AI artefacts (skill 3.3.9; design guidance)

Golden-set prompt tests, schema validation, safety tests, regression comparison with the previous version, LLM-as-a-judge scores — all as pipeline gates.

Exam traps

  • Deploying unapproved model versions. Use registry approval status as the gate.
  • Prompts edited in place with no versions.
  • Knowledge base refreshed by hand.

References

  1. MLA-C02 Domain 3 — checked Oct 19, 2026
  2. Endpoint auto scaling — checked Oct 19, 2026
  3. Scaling policies — checked Oct 19, 2026
  4. Deployment guardrails — checked Oct 19, 2026
  5. SageMaker Projects — checked Oct 19, 2026
  6. CodeConnections — checked Oct 19, 2026
  7. AWS CodeCommit — checked Oct 19, 2026
  8. SageMaker Pipelines — checked Oct 19, 2026
  9. Training data access — checked Oct 19, 2026
  10. Managed Spot Training — checked Oct 19, 2026
  11. SageMaker Model Registry — checked Oct 19, 2026
  12. Registry approval — checked Oct 19, 2026
  13. Managed MLflow — checked Oct 19, 2026
  14. Prompt Management — checked Oct 19, 2026

Check your understanding

  • Classic request-rate scaling metric?Show answer

    Answer

    SageMakerVariantInvocationsPerInstance.
  • Shift 10% of traffic, then the rest if alarms stay quiet?Show answer

    Answer

    Canary blue/green deployment guardrails.
  • Orchestrate process → train → evaluate → register?Show answer

    Answer

    SageMaker Pipelines.
  • Gate deployment on a human sign-off?Show answer

    Answer

    Model Registry approval status (PendingManualApproval → Approved).
  • Faster scaling for LLM concurrency?Show answer

    Answer

    High-resolution concurrent-requests metric.
Previous

Progress is saved in this browser.

Next Lesson