Based on the MLS-C01 exam guideReport an error
[Training data S3]──(KMS encryption, VPC endpoint)──┐
▼
[SageMaker Pipeline] process → train → evaluate
│ ConditionStep (quality gate)
▼
[Model Registry] version · approval (Approved)
│ EventBridge
▼
[Deploy: Blue/Green · Canary] → [Endpoint]
│ │
CloudTrail (audit) DataCapture (S3)
│ ▼
│ [Model Monitor] drift detection
│ │ CloudWatch alarm
└──────────────────────────┘ EventBridge → retraining (the loop starts)| Day | Topic | Key point | Representative services and features | Representative pitfall |
|---|---|---|---|---|
| 1 | Monitoring | The first line of defense that watches input distribution changes without labels. A violation → triggers retraining | Model Monitor (Data Quality / Model Quality / Bias Drift / Feature Attribution Drift), DataCapture | Not refreshing the baseline after retraining, causing a flood of false positives |
| 2 | MLOps | Define process → train → evaluate → register → deploy as code for reproducibility, traceability, and automation | Pipelines (DAG, ConditionStep), Model Registry (versions, approval), Projects (CI/CD) | A model that misses the performance bar is deployed automatically because there is no ConditionStep |
| 3 | Security | Who (execution role), where (VPC), and what can be opened (KMS key policy) | Execution Role, VpcConfig, VPC endpoints, CMK, Macie | Investigating AccessDenied only as a user permission issue |
| 4 | Operations | Cost, audit, and recovery. Training and inference have opposite cost structures | Spot / Serverless / Async / MME, CloudWatch, CloudTrail, S3 CRR and Multi-AZ | An always-on GPU endpoint for intermittent traffic |
| # | Branch | Stem signal | Answer |
|---|---|---|---|
| 1 | Monitoring type | No labels / labels available / feature attribution change / group bias change | Data Quality / Model Quality / Feature Attribution Drift / Bias Drift |
| 2 | Logging service | Performance and failure debugging / who did what and when (audit) | CloudWatch / CloudTrail |
| 3 | Inference cost | Intermittent traffic / large payload and long processing / many models shared / variable traffic | Serverless / Async / Multi-Model Endpoint / Auto Scaling |
| 4 | Permission problem | AccessDenied in training or an endpoint | Execution Role permissions |
| 5 | Internet-blocking requirement | Data must not pass through the internet | Private subnet + VPC endpoint + network isolation |
💡 Related theory: The operations domain of the Specialty exam does not ask "do you know the feature?" but "what would you choose in this situation?" The five branches above cover almost all operations questions. Training yourself to jump to a branch the moment you see a keyword (no labels, who, intermittent, AccessDenied, no internet) is what translates directly into points.
| Stem clue | Answer | Why |
|---|---|---|
| "Ground-truth labels cannot be obtained immediately" | Model Monitor Data Quality | The first line of defense that detects from input distribution alone, without labels |
| "Labels arrive days later; confirm the accuracy drop" | Model Quality | Joins predictions with the later-arriving labels to compute metrics |
| "The rank or magnitude of SHAP attributions has changed" | Feature Attribution Drift | Compares Clarify attributions against the baseline |
| "Fairness metrics across groups are shifting" | Bias Drift | Clarify-based bias monitoring |
| "Violations appear on every run after retraining" | Regenerate the baseline | Re-register the new distribution you deliberately taught as normal |
| "Who deleted the endpoint and when?" | CloudTrail | Records the API caller, time, and source IP |
| "Why did training fail; what about the loss curve?" | CloudWatch Logs / Metrics | Application logs and performance metrics |
| "Traffic spikes only briefly during the day" | Serverless Inference | Zero idle cost, per-invocation billing |
| "The payload is large and an immediate response is not needed" | Asynchronous Inference | Queue-based, scales down to zero |
| "Thousands of models on one endpoint" | Multi-Model Endpoint | Shared hosting of many models |
| "Traffic varies widely but real-time responses are required" | Real-time endpoint + Auto Scaling | Absorbs surges, scales in when idle |
| "Cut training costs sharply" | Managed Spot Training + checkpoint_s3_uri | Interruptible but cheaper; resumes from checkpoints |
| "AccessDenied, yet the user reads fine in the console" | Insufficient execution role permissions | The job runs with the execution role, not the user's credentials |
| "Data must not pass through the internet" | Private subnet + S3 VPC gateway endpoint | Private access with no internet path |
| "Block the container's outbound calls themselves" | enable_network_isolation=True | Blocks the container's network calls |
| "Traffic between distributed training nodes must not be plaintext" | encrypt_inter_container_traffic=True | Encrypts node-to-node communication |
| "Decryption must be isolated per team" | Per-team KMS CMK + key policy | Even if IAM allows it, the key policy has the final block |
| "Automatically detect whether PII is mixed into S3" | Amazon Macie | Detects and classifies sensitive data in S3 |
| "Same code and data give the same result (reproducibility)" | SageMaker Pipelines definition | Fixes the workflow as code |
| "Do not register or deploy a model that misses the metrics" | ConditionStep + Model Registry approval | An automatic quality gate plus a human gate for redundancy |
| "Which model was trained on which data; rollback" | Model Registry | Manages versions, approval status, and lineage |
| "Receive an alarm and start the retraining pipeline" | EventBridge | Event routing that invokes a Pipeline or Lambda |
| "Validate with a small amount of traffic first, then expand" | Canary deployment | Minimizes risk |
| "Automatically provision build and deploy repos and CI/CD" | SageMaker Projects | MLOps template |
| "Survive a single-AZ failure" | instance_count ≥ 2 | Automatically spread across multiple AZs |
| "Restore data and models even after a Region failure" | S3 cross-Region replication + versioning + Model Registry | Replication, plus tracking which version to restore |
| "Recreate the endpoint in another Region or account" | IaC (CloudFormation / Pipelines) | Reproduce infrastructure as code |
| "Manage external DB credentials outside the code" | Secrets Manager | Removes hardcoded credentials |
| Aspect | Data Quality | Model Quality |
|---|---|---|
| What it watches | Input feature statistics (missing values, types, distribution) | Prediction quality such as accuracy, F1, RMSE |
| Labels | Not needed | Needed |
| Detection timing | Immediate (first line of defense) | After the labels arrive (delayed) |
| What it catches | Data drift | Even concept drift |
| Aspect | CloudWatch | CloudTrail |
|---|---|---|
| What it records | Logs and metrics (loss, latency, CPU/GPU) | All AWS API calls |
| Question it answers | "Why did it fail, how slow is it?" | "Who called what, when, and from where?" |
| Main use | Debugging and alarms | Audit and compliance |
| Retention | Log groups / metrics | Stored permanently in S3, tamper-resistant |
| Strategy | Behavior | When |
|---|---|---|
| Blue/Green | Bring up a new fleet and switch | The default safe deployment |
| Canary | A small amount of traffic first → expand after checking | Minimizing risk |
| Linear | Increase by a fixed percentage in stages | Gradual observation |
| A/B (Production Variant) | Split traffic between two models | Performance comparison |
| Option | Traffic shape | Idle cost | Characteristics |
|---|---|---|---|
| Serverless Inference | Intermittent, unpredictable | 0 | Per-invocation billing |
| Asynchronous Inference | Large payload, immediacy not needed | Scales down to 0 | Queue-based processing |
| Real-time + Auto Scaling | Constant + variable | The minimum number of instances | Absorbs surges, scales in when idle |
| Multi-Model Endpoint | A very large number of models | Shared | Many models on a single endpoint |
| Aspect | Execution Role | User IAM permissions |
|---|---|---|
| Applies to | Used at runtime by training jobs, endpoints, and pipelines | People using the console or CLI |
| Trust policy | sagemaker.amazonaws.com calls sts:AssumeRole | Not applicable |
| Typical symptom | AccessDenied in the job log | Denied on the console screen |
| Exam context | For an AccessDenied in operations, check here first | Easily used as a distractor |
| Tool | When | What it looks at |
|---|---|---|
| SageMaker Debugger | During training | Anomalies in the training process such as tensors and gradients |
| Model Monitor | After deployment | Drift in input distribution and prediction quality |
| Clarify | Before and after training, and in operations | Data and model bias, SHAP feature attributions |
You are operating a classification model trained on medical data. There are four requirements: (1) the data must not be exposed to the internet, (2) retraining must happen automatically when the input distribution changes, (3) you must audit who changed the endpoint, and (4) traffic is intermittent, so idle cost must be reduced.
| Requirement | Configuration | Basis |
|---|---|---|
| (1) No internet exposure | Private subnet + S3 VPC endpoint + KMS CMK + least-privilege execution role | Day 3 |
| (2) Automatic retraining on distribution change | DataCapture → Model Monitor (Data Quality) → CloudWatch alarm → EventBridge → Pipeline retraining → Model Registry approval → redeployment | Days 1-2 |
| (3) Change audit | Record API calls with CloudTrail and keep the logs in S3 | Day 4 |
| (4) Reduce idle cost | Serverless Inference (zero idle cost) | Day 4 |
(1) VPC private subnet + S3 VPC endpoint + KMS (CMK) + least-privilege execution role
(2) DataCapture → Model Monitor (Data Quality) → CloudWatch alarm
→ EventBridge → SageMaker Pipeline retraining → Model Registry approval → redeployment
(3) Audit API calls with CloudTrail, keep the logs in S3
(4) Zero idle cost with Serverless Inference| Pitfall | Why it is wrong | Correct response | Source |
|---|---|---|---|
| Leaving the baseline as it is after retraining | Flags the new distribution you deliberately taught as a violation, a false positive | Regenerate the baseline from the new training data | Day 1 |
| Trying to confirm an accuracy drop directly with Data Quality | It only looks at input statistics, so it cannot know accuracy | Obtain labels, then use Model Quality | Day 1 |
| Automatic registration and deployment without a ConditionStep | A model that misses the performance bar goes straight to production | ConditionStep + a redundant approval gate | Day 2 |
| Setting Approved immediately at registration | Deployment automation continues without human review | Keep the PendingManualApproval default | Day 2 |
| Investigating AccessDenied only against user permissions | The job runs with the execution role | Check the execution role policy and trust policy | Day 3 |
| Turning on encryption but neglecting the key policy | Even if IAM allows it, the key policy decides in the end | Separate who can decrypt using the CMK key policy | Day 3 |
| Handling "block the internet" with a NAT gateway | NAT is actually an outbound internet path | VPC endpoint + network isolation | Day 3 |
| Looking for "who did it" in CloudWatch | CloudWatch is the performance and logs domain | CloudTrail | Day 4 |
| An always-on GPU endpoint for intermittent traffic | Wasted idle cost | Serverless or Auto Scaling | Day 4 |
| Not setting a checkpoint for Spot training | If interrupted, you start over from the beginning | Specify checkpoint_s3_uri | Day 4 |
| Managed Spot Training to cut inference cost | Spot is a cost-saving measure for training only | For inference use Serverless / Async / MME | Day 4 |
instance_count to 2 or moreNext week, we wrap up the whole course with a domain-by-domain integrated review and exam preparation.
statistics.json / constraints.json) recording "this is what normal looks like." Monitoring compares against it to judge violations.Click a choice to reveal the answer and explanation.
Question 1
You suspect that a production model's accuracy is degrading over time, but ground-truth labels cannot be obtained immediately. In addition, the statistics of some input features appear different from those at training time. Which monitoring should you apply FIRST?
Question 2
In an automated ML pipeline, you want to ensure that a model whose evaluation metric falls below the threshold is never deployed to production. Which combination is MOST appropriate?
Question 3
In a security incident investigation, you must trace "which IAM principal changed the SageMaker endpoint configuration, and when." Which is the correct service?
Question 4
Training data must never traverse the internet, and decryption of model artifacts must be isolated by team. Which configuration is MOST appropriate?
Question 5
For an inference workload whose traffic is concentrated in only part of the day and is nearly absent the rest of the time, you want to reduce idle cost while also withstanding traffic spikes. Which combination is MOST appropriate?