Based on the MLA-C01 exam guideReport an error
Week 8 covered "life after deployment". The model begins creating value the moment it ships, but simultaneously begins to drift from the world. Data changes, bias emerges, the system slows down, performance drops. The four posts connect into one loop.
┌───────────────── Running endpoint ─────────────────┐
│ │
┌──────────┴──────────┐ ┌────────────────────┐ │
│ Day 1-2 Is the model right │ │ Day 3 Is the system healthy │ │
│ Data quality (Deequ) │ │ ModelLatency │ │
│ Model quality (needs GT) │ │ OverheadLatency │ │
│ Bias drift (Clarify) │ │ 4XX / 5XX Errors │ │
│ Attribution drift (SHAP) │ │ CPU/Mem/GPU utilization │ │
└──────────┬──────────┘ └──────────┬─────────┘ │
│ │ │
└───────────┬───────────────────────────┘ │
▼ │
CloudWatch metrics · alarms │
│ │
┌─────────────────┴──────────────────┐ │
▼ ▼ │
Auto Scaling / operational action EventBridge · Lambda │
(respond to latency/errors) │ │
▼ │
Day 4 SageMaker Pipelines retraining │
→ ConditionStep → Registry │
→ shadow / A/B / blue-green redeploy ──┘All monitoring starts with Data Capture (storing requests and responses in S3), builds a baseline (the standard for normal), and then launches a Processing Job on a cron schedule to compare.
| Monitor | What it watches | Tool | Labels needed |
|---|---|---|---|
| Data quality | Distribution statistics of input features (data drift) | Model Monitor (Deequ) | Not needed |
| Model quality | Prediction performance metrics (accuracy, F1) | Model Monitor | Needed (ground truth) |
| Bias drift | Prediction bias between groups (fairness) | Clarify | Not needed for some |
| Feature attribution drift | Changes in feature importance (SHAP) | Clarify | Not needed |
Looking at the same table again as "when does it fire" makes the choice sharper.
| Monitor | Detection speed | Incidents it catches | What it cannot catch |
|---|---|---|---|
| Data quality | Immediate (next period) | Schema breakage, missing-value surge, new categories, distribution shift | The case where the distribution is unchanged but the relationship changed |
| Model quality | After labels accumulate | Actual accuracy drop (the consequence of concept drift) | Cannot be computed at all without labels |
| Bias drift | Immediate; delayed for metrics that need labels | Changes that become unfavorable to a particular group | Overall performance degradation itself |
| Feature attribution drift | Immediate | The features the model depends on changed (early warning) | How much worse performance actually became |
💡 Related theory: The key distinction of drift - data drift (covariate shift) is a change in the distribution of input X (the data quality monitor), and concept drift is a change in the relationship between X and Y (the model quality monitor captures it as performance degradation). If labels cannot be obtained immediately, model quality is impossible, so you work around it with data quality or feature attribution drift to get an early warning. This "label availability → monitor choice" logic is the criterion that decides the answer in Week 8 multiple-choice questions.
Separately from whether the model is right, we look at whether the system is healthy. The three pillars of observability: metrics (CloudWatch Metrics), logs (CloudWatch Logs), traces (X-Ray).
ModelLatency and OverheadLatency (latency), Invocations (call volume), 4XX/5XXErrors (errors), CPU/Memory/GPUUtilization (resources).EvaluationPeriods reduces false positives.For latency metrics, which one spiked determines the cause.
| Observed combination | Interpretation | Next action |
|---|---|---|
Total latency ↑, ModelLatency normal | The bottleneck is outside the model (front-end Lambda, network, external API) | Pinpoint the segment with X-Ray |
ModelLatency ↑ | Model computation, instance load | Upgrade or add instances, slim down the model |
OverheadLatency ↑ | Payload and request-handling overhead | Shrink payload, simplify format |
5XXErrors ↑ + MemoryUtilization ↑ | Container OOM, resource shortage | Larger-memory type, reduce batch size |
4XXErrors ↑ | Caller input or authentication problem | Client validation, document the schema |
# Best practice for operations: gather operational metric alarms + model monitor metrics on one dashboard
# ModelLatency surge → instance load, OverheadLatency surge → request handling/payload problem
# Only total latency up while ModelLatency is normal → trace the front-end (Lambda/network) bottleneck with X-Ray⚠️ Trap: The phrase "performance degradation" is ambiguous. Model performance degradation (accuracy drop) is the Model Quality Monitor; system performance degradation (latency, errors) is the CloudWatch operational metrics. You must distinguish whether the question sentence is about "accuracy/prediction quality" or "latency/errors/resources" to choose the tool.
Detection is not the end. Operations are mature only when the response is automated.
Automation chain:
Redeployment strategy comparison:
| Strategy | User impact | Use |
|---|---|---|
| Shadow | 0 (responses are only recorded, not sent to users) | Risk-free technical validation with production traffic |
| A/B (variant weights) | Some (the new model's responses actually go out) | Gradual rollout, comparing business outcomes |
| Blue/Green and canary | Gradual shift + automatic rollback | Safe full replacement |
Pick among the three retraining triggers by comparing them as well.
| Trigger | Cost | Reaction speed | Typical scenario phrasing |
|---|---|---|---|
| Drift-based | Low (only when changes occur) | Fast | "while reducing unnecessary retraining cost" |
| Performance-based | Medium | Delayed by the wait for labels | "when accuracy falls below the threshold" |
| Schedule-based | High (always runs) | Delayed by the period | "regularly every week" |
It is easy to memorize as a risk ladder. Safest = shadow (zero user impact) → middle = A/B/canary (gradual exposure to a small number of users) → full = Blue/Green (guardrails and automatic rollback are essential). For retraining triggers too, from a cost perspective a drift-based event trigger is preferred over a schedule-based one.
These are the branches for solving Week 8 questions quickly.
It is also quick to have a mapping that jumps from the keywords of the question sentence straight to a service.
| Expression in the question | Answer to recall immediately |
|---|---|
| "whether the input distribution differs from training" | Data quality monitor |
| "ground truth labels cannot be obtained" | Data quality / feature attribution drift |
| "whether accuracy/F1 is dropping" | Model quality monitor (+ ground truth collection) |
| "whether it is becoming unfavorable to a particular group" | Clarify bias drift |
| "whether the features it depends on have changed" | Clarify feature attribution drift (SHAP) |
| "requests and responses must be stored" | Data Capture |
| "build the standard for normal" | Baseline (statistics, constraints, Deequ) |
| "trace latency by segment" | X-Ray |
| "want to reduce false positives" | Raise EvaluationPeriods |
| "validate with no user impact" | Shadow testing |
| "distribute traffic by weights" | Production variant A/B |
| "automatic rollback" | Deployment guardrails (blue/green + CloudWatch alarm) |
The points where wrong answers cluster are generally the following four pairs.
| Confusing pair | One line that splits them |
|---|---|
| Data quality vs feature attribution | "The value changed" vs "the influence of that value on predictions changed" |
| Model quality vs CloudWatch metrics | "Predictions are wrong" vs "responses are slow or failing" |
| A/B vs shadow | The new model's response "goes" to users vs "does not go" |
| Alarm vs Auto Scaling | "Notifies a person" vs "automatically adds instances" |
| Symptom | Common cause | Action |
|---|---|---|
| Monitoring results stay empty | Data Capture not configured / zero traffic in that period | Check the capture S3 path, raise sampling_percentage |
| The model quality monitor cannot produce metrics | Ground truth not collected, inference_id mismatch | Check answer upload and ID matching; if none, substitute data quality/attribution |
| Drift alert but model quality is normal | Distribution change in a feature with no performance impact | Observe instead of retraining immediately, tier thresholds toward important features |
| Performance got worse after retraining | Unconditional automatic registration and deployment | Register only when the criterion passes, using ConditionStep |
| 5XX surge + memory utilization surge | Container OOM, resource shortage | Switch to a larger-memory type, add instances, reduce batch |
| Latency exceeds the limit at every traffic surge | Auto Scaling not set | Register an Application Auto Scaling target tracking policy |
| Failure after full replacement but rollback did not happen | No CloudWatch alarm connected to the guardrail | Connect a rollback alarm to the deployment policy and verify in advance |
| Monitoring and retraining costs are excessive | Hourly schedule + 100% capture + schedule-based retraining | Relax the period, lower sampling, switch to event-based triggers |
Next week continues into deeper ML solution monitoring and maintenance - security and governance, cost optimization, and advancing the MLOps pipeline.
statistics.json and constraints.json.Click a choice to reveal the answer and explanation.
Question 1
In production there is no way at all to collect the model's actual ground truth labels, and you want to detect model performance degradation early. What is the most appropriate combination?
Question 2
On an endpoint, Invocation5XXErrors spiked and ModelLatency also soared. Which area should you suspect first?
Question 3
You want to validate a new model version with production traffic without ever affecting users, and, once sufficiently validated, gradually expose it to some users. Which phased strategy is correct?
Question 4
To have retraining start automatically after Model Monitor detects drift, which service combination best fills the blank? "Model Monitor violation → CloudWatch Alarm → ___ → SageMaker Pipeline execution"
Question 5
In a retraining pipeline, what is the standard mechanism to prevent performance regression when a newly trained model falls short of the evaluation criteria?