Domain 4: Operating, Monitoring, and Securing ML and AI Solutions (Part 1 of 2)
This lesson covers 3 exam topics: Monitoring Models, Drift and A/B Tests, Monitoring Agents and Troubleshooting Tools, Instance Selection and Purchasing Options. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Monitoring Models, Drift and A/B Tests
Central question: Is the production model still performing, and is a new version better?
What to monitor (verified where linked)
| Area | Tools |
|---|---|
| FM quality and usage | CloudWatch generative AI observability (Model Invocations: usage, tokens, invocation logs); Bedrock evaluations run on samples |
| Data distribution changes | Drift detection pipelines: compare live feature statistics to the training baseline (Processing jobs, Clarify for bias drift) |
| Pipeline and inference errors | CloudWatch metrics, logs and alarms; anomaly detection |
| Model quality | Compare predictions with ground truth when labels arrive |
SageMaker Model Monitor provided data quality, model quality, bias drift and feature attribution drift monitoring — closed to new customers (verified).
A/B testing (skill 4.1.4)
SageMaker endpoints can host multiple production variants with traffic weights (e.g. 90/10), and you compare their metrics; shadow tests compare without user exposure (general background; shadow tests verified).
Exam traps
- No ground-truth loop, so model quality is never measured.
- Confusing shadow tests with A/B tests: shadow doesn't serve users; A/B does.
- Monitoring only infrastructure for an FM application.
2. Monitoring Agents and Troubleshooting Tools
Central question: How do you see what agents and ML systems are doing, and why they fail?
Agent monitoring (skill 4.1.5)
Watch for coordination failures between agents, truncated streaming responses, tool failures and timeouts, loops (steps per task), and resource consumption (tokens, tool calls, runtime per session). Automate responses: alarms, retries, circuit breakers (design guidance).
Tools
| Tool | Gives |
|---|---|
| Amazon CloudWatch | Metrics, logs, alarms, dashboards (skill 4.2.3), GenAI observability views |
| AgentCore Observability | Step-by-step agent traces, tool calls, OpenTelemetry-compatible |
| AWS X-Ray | Request traces across services; find slow or failing hops |
Dashboards (design guidance)
Latency (p50/p95/p99), errors, invocations, tokens, cost per request, tool error rate, steps per task, drift indicators — with baselines and alarms.
Exam traps
- Only final-answer checks for agents, missing tool failures.
- No tracing, so slow tools are blamed on models.
- Averages only: p99 latency hides in the mean.
3. Instance Selection and Purchasing Options
Central question: Which instance and which way of paying gives the right performance per dollar?
Instance families for inference (general background; Inf2 verified in EC2 docs)
| Family | Strength |
|---|---|
| CPU (e.g. ml.c, ml.m) | Small models, classic ML, low cost |
| GPU (e.g. ml.g5, ml.g6, ml.p families) | Deep learning, LLMs |
| AWS Inferentia (Inf2) | Cost-efficient inference for deep learning / LLMs |
| AWS Trainium (Trn) | Cost-efficient training |
SageMaker Inference Recommender (verified) automates load tests across instance types and recommends the best performance at the lowest cost for real-time or serverless endpoints.
Capacity (skill 4.2.4; design guidance)
Right-size from load tests; auto scaling with sensible min/max; multi-AZ for reliability; multi-model endpoints or inference components to raise utilization.
Purchasing options (skill 4.2.6)
| Option | Use |
|---|---|
| On-demand | Variable or unknown load |
| SageMaker AI Savings Plans (verified) | Lower prices for committed SageMaker usage, regardless of instance family, size, component or Region |
| Managed Spot Training (verified) | Up to 90% cheaper training; interruptions; checkpoint |
| Bedrock provisioned throughput | Committed FM capacity (no commitment, 1 or 6 months) |
Exam traps
- GPU instance for a small XGBoost model.
- Spot for real-time inference endpoints. Spot is for training jobs here.
- Guessing instance types instead of using Inference Recommender.
References
- MLA-C02 Domain 4 — checked Oct 19, 2026
- CloudWatch GenAI observability — checked Oct 19, 2026
- Model Monitor — checked Oct 19, 2026
- Shadow tests — checked Oct 19, 2026
- AgentCore — checked Oct 19, 2026
- AWS X-Ray — checked Oct 19, 2026
- Inference Recommender — checked Oct 19, 2026
- Savings Plans — checked Oct 19, 2026
- Managed Spot Training — checked Oct 19, 2026
Check your understanding
Send 10% of live traffic to a new model and compare?Show answerHide answer
Answer
Production variants with traffic weights (A/B).See each step and tool call of an AgentCore agent?Show answerHide answer
Answer
AgentCore Observability.Find the cheapest instance meeting a latency target?Show answerHide answer
Answer
Inference Recommender.Token usage and invocation logs by model?Show answerHide answer
Answer
CloudWatch GenAI observability.Trace a request across API Gateway, Lambda and Bedrock?Show answerHide answer
Answer
AWS X-Ray.