CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
  • Week 1
    • 1.The ML Lifecycle (from a Specialty Perspective)
    • 2.Data Storage for ML: S3, EFS, FSx for Lustre, and Data Formats
    • 3.Data Ingestion: Kinesis, Glue, Batch vs. Streaming
    • 4.Data Labeling: SageMaker Ground Truth, Active Learning, Label Quality
    • 5.Week 1 Comprehensive Review: ML Overview & Data Engineering 1
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
    • 1.Model Monitoring: SageMaker Model Monitor and Drift Response
    • 2.MLOps: SageMaker Pipelines, Model Registry, CI/CD
    • 3.ML Security: IAM Execution Roles, VPC Isolation, KMS Encryption
    • 4.Operations & Cost: Cost Optimization, Logging/Audit, Disaster Recovery
    • 5.Week 11 Comprehensive Review: Monitoring, MLOps, Security, Operations
  • Week 12
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← MLS-C01/Week 11/Day 5

Based on the MLS-C01 exam guide·Report an error

MLS-C01· AssociateWeek 11 · Day 5~34 min read

Day 5 - Week 11 Comprehensive Review: Monitoring, MLOps, Security, Operations

📌 Key Takeaways

  • Week 11 is "the world after you build the model." The four axes of monitoring, MLOps, security, and operations form one closed loop through EventBridge and Pipelines.
  • Monitoring types split on whether labels exist. No labels → Data Quality; labels available → Model Quality.
  • Logging splits on the shape of the question. "Why is it slow, why did it fail?" → CloudWatch; "Who did what and when?" → CloudTrail.
  • Security has three pillars: execution role + VPC isolation + KMS key policy. For an AccessDenied in operations, look at the execution role first, not the user's permissions.
  • Inference cost splits on the shape of the traffic. Intermittent → Serverless, large payloads → Async, many models → MME, variable → Auto Scaling.

The Operations Loop on One Page

[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)
  • This entire loop runs on top of IAM execution roles (least privilege), VPC isolation, and KMS encryption.
  • The loop starts at "drift detection" and ends at "deploying the approved new version." When you read a question, first locate which point of the loop it is asking about.

One-Line Summary of Days 1-4

DayTopicKey pointRepresentative services and featuresRepresentative pitfall
1MonitoringThe first line of defense that watches input distribution changes without labels. A violation → triggers retrainingModel Monitor (Data Quality / Model Quality / Bias Drift / Feature Attribution Drift), DataCaptureNot refreshing the baseline after retraining, causing a flood of false positives
2MLOpsDefine process → train → evaluate → register → deploy as code for reproducibility, traceability, and automationPipelines (DAG, ConditionStep), Model Registry (versions, approval), Projects (CI/CD)A model that misses the performance bar is deployed automatically because there is no ConditionStep
3SecurityWho (execution role), where (VPC), and what can be opened (KMS key policy)Execution Role, VpcConfig, VPC endpoints, CMK, MacieInvestigating AccessDenied only as a user permission issue
4OperationsCost, audit, and recovery. Training and inference have opposite cost structuresSpot / Serverless / Async / MME, CloudWatch, CloudTrail, S3 CRR and Multi-AZAn always-on GPU endpoint for intermittent traffic

The 5 Decision Branches That Split Most Often

#BranchStem signalAnswer
1Monitoring typeNo labels / labels available / feature attribution change / group bias changeData Quality / Model Quality / Feature Attribution Drift / Bias Drift
2Logging servicePerformance and failure debugging / who did what and when (audit)CloudWatch / CloudTrail
3Inference costIntermittent traffic / large payload and long processing / many models shared / variable trafficServerless / Async / Multi-Model Endpoint / Auto Scaling
4Permission problemAccessDenied in training or an endpointExecution Role permissions
5Internet-blocking requirementData must not pass through the internetPrivate 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.

Exam Clue Keyword → Answer Translation Table

Stem clueAnswerWhy
"Ground-truth labels cannot be obtained immediately"Model Monitor Data QualityThe first line of defense that detects from input distribution alone, without labels
"Labels arrive days later; confirm the accuracy drop"Model QualityJoins predictions with the later-arriving labels to compute metrics
"The rank or magnitude of SHAP attributions has changed"Feature Attribution DriftCompares Clarify attributions against the baseline
"Fairness metrics across groups are shifting"Bias DriftClarify-based bias monitoring
"Violations appear on every run after retraining"Regenerate the baselineRe-register the new distribution you deliberately taught as normal
"Who deleted the endpoint and when?"CloudTrailRecords the API caller, time, and source IP
"Why did training fail; what about the loss curve?"CloudWatch Logs / MetricsApplication logs and performance metrics
"Traffic spikes only briefly during the day"Serverless InferenceZero idle cost, per-invocation billing
"The payload is large and an immediate response is not needed"Asynchronous InferenceQueue-based, scales down to zero
"Thousands of models on one endpoint"Multi-Model EndpointShared hosting of many models
"Traffic varies widely but real-time responses are required"Real-time endpoint + Auto ScalingAbsorbs surges, scales in when idle
"Cut training costs sharply"Managed Spot Training + checkpoint_s3_uriInterruptible but cheaper; resumes from checkpoints
"AccessDenied, yet the user reads fine in the console"Insufficient execution role permissionsThe job runs with the execution role, not the user's credentials
"Data must not pass through the internet"Private subnet + S3 VPC gateway endpointPrivate access with no internet path
"Block the container's outbound calls themselves"enable_network_isolation=TrueBlocks the container's network calls
"Traffic between distributed training nodes must not be plaintext"encrypt_inter_container_traffic=TrueEncrypts node-to-node communication
"Decryption must be isolated per team"Per-team KMS CMK + key policyEven if IAM allows it, the key policy has the final block
"Automatically detect whether PII is mixed into S3"Amazon MacieDetects and classifies sensitive data in S3
"Same code and data give the same result (reproducibility)"SageMaker Pipelines definitionFixes the workflow as code
"Do not register or deploy a model that misses the metrics"ConditionStep + Model Registry approvalAn automatic quality gate plus a human gate for redundancy
"Which model was trained on which data; rollback"Model RegistryManages versions, approval status, and lineage
"Receive an alarm and start the retraining pipeline"EventBridgeEvent routing that invokes a Pipeline or Lambda
"Validate with a small amount of traffic first, then expand"Canary deploymentMinimizes risk
"Automatically provision build and deploy repos and CI/CD"SageMaker ProjectsMLOps template
"Survive a single-AZ failure"instance_count ≥ 2Automatically spread across multiple AZs
"Restore data and models even after a Region failure"S3 cross-Region replication + versioning + Model RegistryReplication, 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 ManagerRemoves hardcoded credentials

Side-by-Side Tables for Commonly Confused Pairs

Data Quality vs Model Quality

AspectData QualityModel Quality
What it watchesInput feature statistics (missing values, types, distribution)Prediction quality such as accuracy, F1, RMSE
LabelsNot neededNeeded
Detection timingImmediate (first line of defense)After the labels arrive (delayed)
What it catchesData driftEven concept drift

CloudWatch vs CloudTrail

AspectCloudWatchCloudTrail
What it recordsLogs 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 useDebugging and alarmsAudit and compliance
RetentionLog groups / metricsStored permanently in S3, tamper-resistant

Deployment Strategies: Blue/Green vs Canary vs Linear vs A/B

StrategyBehaviorWhen
Blue/GreenBring up a new fleet and switchThe default safe deployment
CanaryA small amount of traffic first → expand after checkingMinimizing risk
LinearIncrease by a fixed percentage in stagesGradual observation
A/B (Production Variant)Split traffic between two modelsPerformance comparison

Serverless vs Async vs Real-time vs MME

OptionTraffic shapeIdle costCharacteristics
Serverless InferenceIntermittent, unpredictable0Per-invocation billing
Asynchronous InferenceLarge payload, immediacy not neededScales down to 0Queue-based processing
Real-time + Auto ScalingConstant + variableThe minimum number of instancesAbsorbs surges, scales in when idle
Multi-Model EndpointA very large number of modelsSharedMany models on a single endpoint

Execution Role vs User IAM Permissions

AspectExecution RoleUser IAM permissions
Applies toUsed at runtime by training jobs, endpoints, and pipelinesPeople using the console or CLI
Trust policysagemaker.amazonaws.com calls sts:AssumeRoleNot applicable
Typical symptomAccessDenied in the job logDenied on the console screen
Exam contextFor an AccessDenied in operations, check here firstEasily used as a distractor

Debugger vs Model Monitor vs Clarify

ToolWhenWhat it looks at
SageMaker DebuggerDuring trainingAnomalies in the training process such as tensors and gradients
Model MonitorAfter deploymentDrift in input distribution and prediction quality
ClarifyBefore and after training, and in operationsData and model bias, SHAP feature attributions

Integrated Scenario Checkpoint

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.

RequirementConfigurationBasis
(1) No internet exposurePrivate subnet + S3 VPC endpoint + KMS CMK + least-privilege execution roleDay 3
(2) Automatic retraining on distribution changeDataCapture → Model Monitor (Data Quality) → CloudWatch alarm → EventBridge → Pipeline retraining → Model Registry approval → redeploymentDays 1-2
(3) Change auditRecord API calls with CloudTrail and keep the logs in S3Day 4
(4) Reduce idle costServerless 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
  • It looks like a single situation, but the knowledge from this week's four days fits in exactly, one piece at a time.
  • The real exam asks about only one of these in a composite stem. Practicing decomposing the requirement sentences and labeling which Day's branch each belongs to is itself real exam training.

Common Pitfalls Summary Table

PitfallWhy it is wrongCorrect responseSource
Leaving the baseline as it is after retrainingFlags the new distribution you deliberately taught as a violation, a false positiveRegenerate the baseline from the new training dataDay 1
Trying to confirm an accuracy drop directly with Data QualityIt only looks at input statistics, so it cannot know accuracyObtain labels, then use Model QualityDay 1
Automatic registration and deployment without a ConditionStepA model that misses the performance bar goes straight to productionConditionStep + a redundant approval gateDay 2
Setting Approved immediately at registrationDeployment automation continues without human reviewKeep the PendingManualApproval defaultDay 2
Investigating AccessDenied only against user permissionsThe job runs with the execution roleCheck the execution role policy and trust policyDay 3
Turning on encryption but neglecting the key policyEven if IAM allows it, the key policy decides in the endSeparate who can decrypt using the CMK key policyDay 3
Handling "block the internet" with a NAT gatewayNAT is actually an outbound internet pathVPC endpoint + network isolationDay 3
Looking for "who did it" in CloudWatchCloudWatch is the performance and logs domainCloudTrailDay 4
An always-on GPU endpoint for intermittent trafficWasted idle costServerless or Auto ScalingDay 4
Not setting a checkpoint for Spot trainingIf interrupted, you start over from the beginningSpecify checkpoint_s3_uriDay 4
Managed Spot Training to cut inference costSpot is a cost-saving measure for training onlyFor inference use Serverless / Async / MMEDay 4

Operations Domain Self-Check

  1. If you suspect a performance drop but have no labels, what do you look at first? → Data Quality monitoring
  2. If violations occur on every run after retraining? → Regenerate the baseline
  3. Which combination blocks automatic deployment of a model that misses its metrics? → ConditionStep + the Model Registry approval gate
  4. What is the default approval status of a version newly registered in Model Registry? → PendingManualApproval
  5. If the user reads fine but only the training job is denied on S3? → Insufficient S3 permissions on the execution role
  6. To reach S3 without going through the internet? → A VPC gateway endpoint for S3
  7. To prove "who called what and when"? → CloudTrail
  8. The simplest measure to survive a single-AZ failure? → Set instance_count to 2 or more

Next week, we wrap up the whole course with a domain-by-domain integrated review and exam preparation.

📖 Glossary

  • Drift: The phenomenon where, after deployment, the input data or the data-to-answer relationship differs from the time of training. If the inputs change it is data drift; if the relationship changes it is concept drift.
  • Baseline: A snapshot of statistics and constraints (statistics.json / constraints.json) recording "this is what normal looks like." Monitoring compares against it to judge violations.
  • DataCapture: A feature where an endpoint automatically saves actual requests and responses to S3. It is the raw material for monitoring.
  • ConditionStep: A quality gate in a pipeline that compares an evaluation metric to a threshold and decides whether the next step runs.
  • Model Package Group: The Model Registry grouping that collects model versions for the same purpose. Within it, versions v1, v2, … each have an approval status.
  • Execution Role: The IAM role that training jobs and endpoints borrow while running. S3 and KMS are accessed with this role's permissions, not a person's account.
  • VPC endpoint: A private channel to reach AWS services without going through the internet. S3 and DynamoDB use the gateway type; SageMaker API and others use the interface type (PrivateLink).
  • Key policy: The policy attached to the KMS key itself that defines "who can decrypt with this key." Even if IAM allows it, decryption fails if it is blocked here.
  • Canary deployment: A method of first sending only a very small amount of traffic to the new version to check that nothing is wrong, then increasing the share.
  • RTO / RPO: After a failure, "how quickly do you recover (RTO)" and "how much data loss is tolerated (RPO)." They are the two axes for choosing a DR strategy.

📝 Practice Questions

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?

PreviousOperations & Cost: Cost Optimization, Logging/Audit, Disaster RecoveryWeek 11 · Day 4Next Domains 1 & 2 Integration: Data Engineering + EDAWeek 12 · Day 1

Official references

  • MLS-C01 official exam page(opens in a new tab)
  • Amazon S3 documentation(opens in a new tab)
  • AWS CloudTrail documentation(opens in a new tab)
  • Amazon CloudWatch documentation(opens in a new tab)
  • Amazon VPC documentation(opens in a new tab)
  • AWS IAM documentation(opens in a new tab)

On this page

  • Key Takeaways
  • The Operations Loop on One Page
  • One-Line Summary of Days 1-4
  • The 5 Decision Branches That Split Most Often
  • Exam Clue Keyword → Answer Translation Table
  • Side-by-Side Tables for Commonly Confused Pairs
  • Data Quality vs Model Quality
  • CloudWatch vs CloudTrail
  • Deployment Strategies: Blue/Green vs Canary vs Linear vs A/B
  • Serverless vs Async vs Real-time vs MME
  • Execution Role vs User IAM Permissions
  • Debugger vs Model Monitor vs Clarify
  • Integrated Scenario Checkpoint
  • Common Pitfalls Summary Table
  • Operations Domain Self-Check
  • Glossary
  • Practice Questions