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
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:
| Metric | Use |
|---|---|
| SageMakerVariantInvocationsPerInstance | Classic target-tracking metric for request rate |
| SageMakerVariantConcurrentRequestsPerModelHighResolution | Concurrency-based, faster reaction (high resolution) |
| SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution | Concurrency 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
Central question: How do models and AI changes move to production safely and automatically?
AWS developer tools (verified where linked)
| Tool | Role |
|---|---|
| AWS CodePipeline | Orchestrates stages: source → build/test → deploy, with approvals |
| AWS CodeBuild | Runs builds, tests, evaluations, security scans |
| AWS CodeDeploy | Deployment automation |
| AWS CodeCommit | Managed Git repositories |
| AWS CodeConnections (formerly CodeStar Connections) | Connect pipelines to GitHub, Bitbucket, GitLab |
| SageMaker Projects | MLOps 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
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)
| Trigger | Mechanism |
|---|---|
| Schedule | EventBridge Scheduler starts the pipeline |
| Drift alarm | CloudWatch alarm → EventBridge → pipeline |
| New labelled data | S3 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
Central question: How do you version every AI artefact and automate its release?
What to version, and where (verified where linked)
| Artefact | Tool |
|---|---|
| ML models | SageMaker Model Registry: model groups, versions, metadata, approval status (Approved / PendingManualApproval / Rejected); or MLflow Model Registry on SageMaker AI |
| Prompts | Bedrock Prompt Management: variables, variants, versions |
| Fine-tuned FMs | Registry versions + Bedrock custom models; automate deployment per version (skill 3.3.10) |
| Agents | Version agent code/config in Git; deploy through pipelines to AgentCore Runtime (skill 3.3.8) |
| Knowledge bases | Pipelines 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
- MLA-C02 Domain 3 — checked Oct 19, 2026
- Endpoint auto scaling — checked Oct 19, 2026
- Scaling policies — checked Oct 19, 2026
- Deployment guardrails — checked Oct 19, 2026
- SageMaker Projects — checked Oct 19, 2026
- CodeConnections — checked Oct 19, 2026
- AWS CodeCommit — checked Oct 19, 2026
- SageMaker Pipelines — checked Oct 19, 2026
- Training data access — checked Oct 19, 2026
- Managed Spot Training — checked Oct 19, 2026
- SageMaker Model Registry — checked Oct 19, 2026
- Registry approval — checked Oct 19, 2026
- Managed MLflow — checked Oct 19, 2026
- Prompt Management — checked Oct 19, 2026
Check your understanding
Classic request-rate scaling metric?Show answerHide answer
Answer
SageMakerVariantInvocationsPerInstance.Shift 10% of traffic, then the rest if alarms stay quiet?Show answerHide answer
Answer
Canary blue/green deployment guardrails.Orchestrate process → train → evaluate → register?Show answerHide answer
Answer
SageMaker Pipelines.Gate deployment on a human sign-off?Show answerHide answer
Answer
Model Registry approval status (PendingManualApproval → Approved).Faster scaling for LLM concurrency?Show answerHide answer
Answer
High-resolution concurrent-requests metric.