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
  • Week 12
    • 1.Domains 1 & 2 Integration: Data Engineering + EDA
    • 2.Domain 3 Integration: Modeling (Algorithm to Evaluation)
    • 3.Domain 4 Integration: ML Implementation & Operations
    • 4.Synthesis: 4 Domains + End-to-End Scenarios
    • 5.D-Day Wrap-Up: Exam Structure, Time Allocation, Requirement Translation Tables, Trap Roundup
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← MLS-C01/Week 12/Day 3

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

MLS-C01· AssociateWeek 12 · Day 3~36 min read

Day 3 - Domain 4 Integration: ML Implementation & Operations

📌 Key Takeaways

  • Domain 4 (ML implementation and operations) is weighted at 20%. It is the final stage: deploying, monitoring, and optimizing a trained model.
  • Pick the deployment type along three dimensions: latency x traffic pattern x payload size. Real-time / Serverless / Asynchronous / Batch.
  • The key to safe rollouts is telling Canary (gradual shift, users are affected) apart from Shadow (mirrored validation, users are not affected).
  • Operational monitoring splits by role: Model Monitor (drift) / CloudWatch (infrastructure metrics) / CloudTrail (API auditing).
  • Late-exam scenarios mix all four domains into a single passage. Start by identifying "which stage is this question asking about?"

Flow Map: From a Trained Model to Operations

Domain 4 is the stage where a trained model is actually deployed, operated safely, monitored, and optimized for cost and performance.

[Trained model artifact (S3)]
   │
   ├─ 1) Choose a deployment type
   │     Real-time, low latency      → Real-time Endpoint
   │     Intermittent / cold start OK → Serverless Inference
   │     Large offline workload      → Batch Transform
   │     Huge payload / long runtime → Asynchronous Inference
   │
   ├─ 2) Safe rollout
   │     Blue/Green, Canary, Shadow traffic shifting
   │
   ├─ 3) Monitoring
   │     Data/model drift            → Model Monitor
   │     Ongoing bias/explainability → Clarify
   │     Infrastructure metrics/logs → CloudWatch
   │
   ├─ 4) Cost and performance optimization
   │     Auto Scaling, Multi-Model Endpoint, Spot training
   │
   └─ 5) Automation / governance
         Pipelines (MLOps), Model Registry, IAM/KMS

Domain 4: The Four Inference (Deployment) Types

TypeLatencyTraffic patternPayloadIdle costEndpointTypical clue
Real-time EndpointMillisecondsSteady, always onA few MB (6 MB)Always incurredRequired (always on)"low latency", "requests per second", "online service"
Serverless InferenceHas cold startsIntermittent, unpredictableSmallNone (scales to 0)Required (managed)"occasionally invoked", "minimal operational overhead", "no idle cost"
Asynchronous InferenceSeconds to minutesSporadic, burstyVery large (up to 1 GB)Can scale down to 0Required"large payload", "long processing time", "queue it and process later"
Batch TransformPer jobScheduled bulk processingEntire datasetNone (when the job ends)Not required"every night", "just store it in S3", "real time not needed"
How should I deploy inference?
│
├─ Must it respond immediately when a request arrives?
│   ├─ No → Process a fixed dataset in one go?
│   │        ├─ Yes → Batch Transform (no endpoint needed)
│   │        └─ No (per-request but slow)
│   │              └─ Large payload or long processing → Asynchronous Inference
│   └─ Yes ↓
├─ Is traffic steady?
│   ├─ No (sparse) + cold start acceptable → Serverless Inference
│   └─ Yes ↓
└─ Real-time Endpoint (+ Auto Scaling)
     └─ Dozens to hundreds of models, each with little traffic → Multi-Model Endpoint

💡 Related theory: Choosing a deployment type is a three-dimensional judgment: "latency requirement x traffic pattern x payload size." If you need real-time low latency, choose Real-time; if traffic is sparse and you can tolerate cold starts, choose Serverless (cost savings); if you process a fixed dataset in one go, choose Batch Transform, which needs no endpoint; if the payload is large (GBs) and processing is long, Async is the answer. When you see "no need to keep an endpoint running all the time," Real-time becomes a wrong answer.

Domain 4: Safe Deployment Strategies

StrategyTraffic handlingUser impactRollback speedValidation purpose
Blue/GreenRun old and new environments side by side, then switch all at once100% from the moment of the switchVery fast (old environment is kept)Safety of the switch itself
CanaryShift gradually, starting with a small percentageExposed to a small group of users firstFast (revert the percentage)Early anomaly detection using real-usage metrics
LinearIncrease by a fixed percentage in stepsThe percentage at each stepFastGradual validation of load and latency
ShadowMirror traffic, discard the responsesNoneNot needed (it is not a switch)Risk-free performance and stability comparison
A/B TestingSplit traffic across variantsDifferent responses per groupFastStatistical comparison of business metrics
  • SageMaker deployment guardrails support all-at-once, canary, and linear traffic shifting on top of Blue/Green, and use CloudWatch alarms to trigger automatic rollback
  • Adjusting the weights of Production Variants lets you split A/B traffic within a single endpoint

💡 Related theory: Canary and Shadow are often confused. With Canary, part of the real traffic is sent to the new model, so users receive the new results (gradual shift). With Shadow, traffic is mirrored to the new model as well, but its responses are not returned to users and are used only for comparison and validation (risk-free evaluation). If the wording is "validate the new model with production traffic without affecting users," it is Shadow.

Domain 4: Monitoring and Governance

RequirementService / feature
Anomalies in input data distribution or schema (data drift)Model Monitor — Data Quality
Monitoring accuracy/F1 drops against the actual ground truthModel Monitor — Model Quality (ground-truth labels required)
Whether prediction bias between groups grows over timeModel Monitor — Bias Drift (+ Clarify)
Whether the features driving predictions have changedModel Monitor — Feature Attribution Drift (SHAP)
Bias and explainability analysis at training timeSageMaker Clarify
Tensor, gradient, and convergence problems during trainingSageMaker Debugger
Endpoint latency, invocation counts, error rates, logsCloudWatch (+ Logs)
Auditing who called which API and whenCloudTrail
End-to-end ML workflow automation (CI/CD)SageMaker Pipelines
Model versioning and approval gatesModel Registry
Data and model lineage (which data was used for training)SageMaker Lineage / Experiments

There are two kinds of drift: data drift (the input distribution changes) and concept drift (the relationship between inputs and outputs changes). Model Monitor compares a baseline (the distribution at training time) with production data to detect drift, and when a threshold is exceeded it raises a CloudWatch alarm that can trigger retraining. For the scenario "the model gets worse and worse after deployment," the answer is almost always Model Monitor (+ retraining automation).

Domain 4: Cost, Performance, and Security Optimization

GoalTechnique
Handle traffic fluctuationsEndpoint Auto Scaling
Host many models at low costMulti-Model Endpoint
Reduce training costManaged Spot Training (up to 90% less)
Faster, cheaper inferenceInferentia/Elastic Inference, model compilation (Neo)
Protect data at rest and in transitKMS encryption, S3 SSE, VPC endpoints
Least-privilege accessIAM roles, resource policies

Managed Spot Training uses interruptible Spot instances to cut training cost substantially, and uses checkpointing to resume after an interruption. Training can be retried, so it suits Spot, but real-time inference that needs low latency does not. Branch as follows: "cost savings + training + interruption tolerated" means Spot; "reduce real-time inference cost" means Serverless/Auto Scaling/Inferentia.

Exam Clue Keywords → Correct Service Translation Table

Clue in the passageAnswer to choose
"Score everything in one pass every night and store it in S3"Batch Transform
"There is no need to keep an endpoint running all the time"Batch Transform or Serverless
"Only a few requests a day, minimal operational overhead"Serverless Inference
"1 GB video, processing takes several minutes"Asynchronous Inference
"Millisecond responses, always online"Real-time Endpoint
"Each customer has its own model and each is rarely invoked"Multi-Model Endpoint
"Validate the new model without affecting users"Shadow testing
"Expose it to only some users first"Canary deployment
"Roll back automatically when metrics worsen"Deployment guardrails + CloudWatch alarm automatic rollback
"Whether the input distribution has changed since deployment"Model Monitor (Data Quality)
"Compare with actual ground truth to monitor an accuracy drop"Model Monitor (Model Quality)
"Latency and error-rate graphs and alarms"CloudWatch
"Who deleted the endpoint"CloudTrail
"Automatically detect whether the training loss is diverging"SageMaker Debugger
"Explain the prediction rationale by feature"SageMaker Clarify (SHAP)
"Define steps as a DAG for reproducibility and automation"SageMaker Pipelines
"Deploy only after the model is approved"Model Registry (approval status)
"Reduce training cost, interruption tolerated"Managed Spot Training
"Optimize for the edge or specific hardware"SageMaker Neo
"Transfer data without going over the internet"VPC endpoint (PrivateLink)
"Encrypt data at rest and in transit"KMS + S3 SSE + TLS

Commonly Confused Pairs

ComparisonKey difference
Real-time vs ServerlessAlways on, millisecond latency vs scales to 0, tolerates cold starts
Real-time vs AsyncImmediate response vs queued with result notification, large payloads, long processing
Async vs Batch TransformPer-request asynchronous (endpoint required) vs whole-dataset bulk (no endpoint required)
Real-time vs Batch TransformAlways-online low latency vs offline bulk, no standing cost
Canary vs LinearSmall share then expand (early anomaly detection) vs equal increments by a fixed percentage
Canary vs ShadowGradual shift (users affected) vs mirrored validation (users not affected)
Shadow vs A/BDiscard responses and compare performance only vs serve responses per group and compare business metrics
Model Monitor vs CloudWatch vs CloudTrailData/model drift vs infrastructure metrics/logs vs API call auditing
Debugger vs ClarifyThe training process (tensors, gradients, convergence) vs bias and explanation of data and predictions
Model Monitor Data vs Model QualityCompares input distribution only (no labels needed) vs performance against ground truth (labels needed)
MME vs multiple endpointsMany models on one endpoint (lower cost, cold loads) vs a dedicated endpoint per model (isolation, guaranteed performance)
Spot vs On-DemandUp to 90% cheaper, interruptible (checkpoints required) vs stable, no interruptions
Neo vs Inferentia vs Elastic InferenceCompile the model for the target hardware vs inference-dedicated chip instances vs attach acceleration to a CPU instance
Pipelines vs Model RegistryRun and automate steps as a DAG vs manage model versions and approval status

Four-Domain Integration: End-to-End Scenario Mapping

StageDomainTypical choice
Streaming ingestion1Kinesis Streams/Firehose
Lake storage and ETL1S3 + Glue, Athena
Cleaning, encoding, EDA2Missing-value handling, One-Hot, standardization, QuickSight
Algorithm, tuning, evaluation3XGBoost/CNN/DeepAR, AMT, F1/AUC/RMSE
Deployment, monitoring, optimization4Endpoint/Batch, Model Monitor, Spot

Case A — Real-Time Fraud Detection

Requirement sentenceDomainChoice
"Thousands of payment events arrive per second"1Kinesis Data Streams → Firehose to load into S3
"Join with the ledger table to build features"1Glue ETL + Athena validation
"Fraud labels are only 0.2%"2Handle class imbalance, stratified split
"Predict fraud from tabular features"3XGBoost (correct imbalance with scale_pos_weight, etc.)
"Missed fraud is costly"3Evaluate on Recall and PR-AUC, adjust the threshold
"Decide within 100 ms during checkout"4Real-time Endpoint + Auto Scaling
"Performance drops when fraud tactics change"4Model Monitor → CloudWatch alarm → retraining

Case B — Nightly Batch Demand Forecasting

Requirement sentenceDomainChoice
"POS sales history is loaded into S3 daily"1S3 + Glue Catalog
"Missing weeks and outliers are mixed in"2Missing-value imputation, outlier handling, time-series visualization
"Forecast 4-week demand for hundreds of stores"3DeepAR (trains on many time series at once)
"Penalize days with large errors heavily"3Tune with RMSE as the objective metric, Minimize
"A single early-morning prediction run is enough"4Batch Transform (no endpoint needed)
"Want to reduce training cost"4Managed Spot Training + checkpoints
"Run the whole process automatically every week"4SageMaker Pipelines + Model Registry

SageMaker Pipelines strings these five stages together into a single DAG for automation, and is the core of MLOps. Defining everything from data processing (Processing) → training (Training) → evaluation (Evaluation) → conditional registration (RegisterModel) → deployment as code makes it reproducible, version-controlled, and able to retrain automatically. When you see clues like "automate/standardize manual steps" or "CI/CD," the answer points to the Pipelines + Model Registry combination.

Exam Weighting and Typical Question Forms by Domain

DomainWeightTypical question form
1. Data Engineering20%Choosing ingestion, storage, and transformation services (the four Kinesis services, S3/Glue/Athena, EMR)
2. Exploratory Data Analysis24%Missing values, outliers, encoding, scaling, imbalance handling, choosing a visualization
3. Modeling36%Algorithm selection, matching activation and loss, diagnosing overfitting, metrics and tuning
4. ML Implementation and Operations20%Deployment type, safe rollout, monitoring, cost and security optimization
  • Late-exam scenario questions cross domain boundaries. First mark "the stage being asked about" in the passage and compare only the options for that stage
  • Of the four options, two are usually "the right answer for a different stage." If the stage is different, an answer is wrong even if its content is correct

Self-Check Questions

  1. Score a large dataset offline in one go, no endpoint needed? → Batch Transform
  2. Traffic is sparse and cold starts are tolerable? → Serverless Inference
  3. Validate a new model with production traffic without affecting users? → Shadow testing
  4. Detect whether the input distribution after deployment differs from training? → Model Monitor
  5. Where do you get endpoint latency, error rate, and invocation count metrics? → CloudWatch
  6. How do you cut training cost by up to 90% while tolerating interruptions? → Managed Spot Training
  7. Host hundreds of models on one endpoint at low cost? → Multi-Model Endpoint
  8. Which service automates and reproduces an ML workflow as a DAG? → SageMaker Pipelines
  9. Inference with a 1 GB payload and long processing time? → Asynchronous Inference
  10. To monitor an accuracy drop by comparing against actual ground truth? → Model Quality in Model Monitor (labels required)
  11. To find out who deleted an endpoint? → CloudTrail
  12. To make sure only approved models are deployed? → Model Registry approval status + a Pipelines condition step
  13. To optimize a model for an edge device? → SageMaker Neo
  14. Which domain carries the largest exam weight? → Domain 3 Modeling (36%)

📖 Glossary

  • Inference endpoint : A server that exposes a trained model so it can be called over HTTPS. You pay for it while it is running.
  • Cold start : The delay in a response when the first request arrives from an idle state because resources must be spun up anew. It is the price of serverless.
  • Data drift / concept drift : The input distribution changes / the relationship between inputs and the ground truth itself changes. Both erode performance.
  • Baseline : The statistics and schema from training time that Model Monitor treats as "normal." Production data is compared against it.
  • Shadow testing : A validation method that mirrors real traffic to the new model too but discards its responses. Users are not affected at all.
  • Deployment guardrail : A safety mechanism that shifts traffic in stages while watching metrics, and rolls back automatically if they worsen.
  • Multi-Model Endpoint : Placing multiple models behind one endpoint and loading the needed model at invocation time. Advantageous when there are many models and each has little traffic.
  • Managed Spot Training : An option that trains on spare capacity (Spot) to cut cost substantially. It can be interrupted, so checkpoints are essential.
  • SageMaker Neo : A feature that compiles a model for the target deployment hardware to optimize inference speed and size.
  • Model Registry : A repository that registers model versions and manages them with "approved/rejected" status. It puts a gate in place so only approved versions are deployed.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

You only need to score millions of transaction records in one pass every night and store the results in S3, with no need for real-time responses. Which inference method is MOST cost-effective?

Question 2

Before putting a new model into production, you want to validate its performance with real traffic while returning only the existing model's responses to users. Which strategy is MOST appropriate?

Question 3

The prediction quality of a deployed model has been degrading gradually over several weeks. What should you use to automatically detect whether the input data distribution has changed from training time?

Question 4

You want to greatly reduce the cost of a training job and have designed it so that, even if the job is interrupted midway, it can resume from a checkpoint. Which option is MOST appropriate?

Question 5

You want to define an ML workflow consisting of data processing, training, evaluation, conditional model registration, and deployment as code, and automate it reproducibly. Which combination of core services is MOST appropriate?

PreviousDomain 3 Integration: Modeling (Algorithm to Evaluation)Week 12 · Day 2Next Synthesis: 4 Domains + End-to-End ScenariosWeek 12 · Day 4

Official references

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

On this page

  • Key Takeaways
  • Flow Map: From a Trained Model to Operations
  • Domain 4: The Four Inference (Deployment) Types
  • Domain 4: Safe Deployment Strategies
  • Domain 4: Monitoring and Governance
  • Domain 4: Cost, Performance, and Security Optimization
  • Exam Clue Keywords → Correct Service Translation Table
  • Commonly Confused Pairs
  • Four-Domain Integration: End-to-End Scenario Mapping
  • Case A — Real-Time Fraud Detection
  • Case B — Nightly Batch Demand Forecasting
  • Exam Weighting and Typical Question Forms by Domain
  • Self-Check Questions
  • Glossary
  • Practice Questions