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 4

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

MLS-C01· AssociateWeek 12 · Day 4~34 min read

Day 4 - Synthesis: 4 Domains + End-to-End Scenarios

📌 Key Takeaways

  • The four domains are not separate subjects but one pipeline. Domain 1 moves the data, Domain 2 refines it, Domain 3 builds the model, and Domain 4 deploys and operates it.
  • Late-exam scenario questions mix the domains — a single passage makes you choose Streams (D1) + F1 (D3) + Canary (D4) at the same time.
  • The decision points are mostly tested as pairs: Streams↔Firehose, Glue↔EMR, Canary↔Shadow, Monitor↔Debugger, precision↔recall.
  • For questions you do not know, narrow down with a four-step reduction: data shape → latency and scale → management burden → business cost.
  • The 12-week map: weeks 1-4 data and statistics, weeks 5-6 algorithm selection, weeks 7-12 modeling and implementation/operations.

Four-Domain Integration Map: One Pipeline

Domain 1: DATA         Domain 2: EDA         Domain 3: MODELING      Domain 4: OPS
────────────────────────────────────────────────────────────────────────────────────
Kinesis Streams   →   Clean missing values →  Tabular data + trees →  Real-time endpoint
S3 data lake      →   One-Hot encoding      →  XGBoost + AMT       →  Auto Scaling
Glue ETL          →   Correlation checks    →  Bayesian tuning     →  Drift monitoring
Athena SQL        →   Distribution plots    →  F1 (for imbalance)  →  Canary deployment
                                            →  Residual plot       →  Model Registry
  • Each domain's output becomes the next domain's input as-is.
  • A wrong choice in an earlier stage throws everything after it off — which is why the exam mixes domains.

The Key Contrast Table Where the Exam Splits Answers

PairDeciding criterionLeft-side clueRight-side clueExample
Streams ↔ FirehoseConsumer control and replay vs fully managed deliveryMilliseconds, multiple consumers, replayServerless, buffer then load into S3Multiple teams reading means Streams; a log copy means Firehose
Glue ↔ EMRServerless vs cluster controlFast ETL, schema catalogSpark version/library tuning"Fast ETL" = Glue, "Spark tuning" = EMR
Athena ↔ RedshiftAd hoc queries vs warehouseServerless SQL on S3Large-scale structured analytics, always-on BILog exploration = Athena, company-wide reporting = Redshift
XGBoost ↔ CNNData shapeMixed numeric/categorical columnsPixels, photos, object locationsFraud = XGBoost, face verification = CNN
Scaling needed ↔ not neededDoes it use distances or gradientsKNN, SVM, neural networks, PCATrees, XGBoost"Standardization is mandatory for XGBoost" is a trap
Precision ↔ RecallFP cost vs FN costFalse positives are expensiveFalse negatives are expensiveSpam = precision, disease screening = recall
Accuracy ↔ F1, PR-AUCWhether classes are balancedRoughly balancedExtreme imbalance, positives 0.5-5%99.5% accuracy with 0.5% fraud is meaningless
Real-time ↔ ServerlessIs traffic constantConstant low latencyIntermittent calls, cold start OKPublic API vs internal tool
Batch ↔ AsyncBulk vs per-request queuingNightly bulk scoring, no endpoint neededLarge payload, long processingScoring 10 million images overnight = Batch
Canary ↔ ShadowDo results reach usersSome real users, gradual shiftTraffic mirrored only, responses not returned"Risk-free validation" = Shadow
Monitor ↔ DebuggerAfter deployment vs during trainingInput distribution change, performance dropGradient explosion/vanishingCTR drop 6 weeks after deployment = Monitor
Monitor ↔ CloudWatchModel quality vs infrastructureDrift, baseline deviationLatency, invocation count, error rateFor API auditing it is neither: CloudTrail
Debugger ↔ ClarifyTraining process vs bias and explanationTraining tensor/gradient diagnosticsDisparate Impact, SHAPExplaining a loan rejection reason = Clarify

⚠️ Trap: Often all the options are "technically possible." What is asked is not possibility but the MOST appropriate choice. Rank them along the axis the passage emphasizes (cost, latency, operational burden, regulation).

End-to-End Scenario 1: Real-Time Fraud Detection

1. DATA:     Daily fraud reports → S3 (data lake)
             Kinesis Data Streams: real-time fraud flags (consumed independently by several teams)
             Glue ETL: daily batch cleaning → deduplication, missing-value imputation
 
2. EDA:      Exploration shows a 0.5% fraud rate (extreme imbalance)
             merchant_id is a high-cardinality categorical → One-Hot encoding
             No scaling needed (XGBoost)
 
3. MODELING: XGBoost binary classification
             AMT Bayesian tuning: optimize F1 (not accuracy!)
             Diagnosis: training 85%, validation 78% → overfitting
             → Add dropout and L1 regularization
             → Final: training 80%, validation 79% (better generalization)
 
4. OPS:      Real-time endpoint (the user waits for the response)
             Canary deployment: 5% → 25% → 100%
             Automatic alarm if recall drops below 70%
             Model Monitor: daily baseline refresh
             On drift detection → trigger the retraining pipeline
Requirement sentenceDomainChoiceReason
"Several teams each consume the same real-time flags, with replay after failures"1Kinesis Data StreamsMultiple consumers, replay within the retention period
"Daily deduplication and missing-value imputation"1S3 + Glue ETLLake storage + serverless transformation
"The fraud rate is 0.5%"2Drop accuracy, use F1 and PR-AUCAccuracy overstates performance under imbalance
"merchant_id has a very large number of distinct values"2One-HotUnordered categorical
"Binary classification on structured tabular data"3XGBoostStrong default for tabular data
"The tuning budget is limited"3AMT Bayesian, F1 MaximizeEfficient search that uses earlier trials
"Training 85% / validation 78%"3Overfitting → regularization, dropoutThe train-validation gap is the signal
"The user waits on the checkout screen"4Real-time endpointLow-latency requirement
"Release the new model while reducing risk"4Canary 5%→25%→100%Controls user impact in stages
"Detect performance drops automatically"4Model Monitor + CloudWatch alarmDrift → retraining trigger

End-to-End Scenario 2: Batch Scoring for Image Quality Inspection

A case where product images taken by factory-line cameras are scored all at once overnight to pull out defect candidates.

[Line cameras] → S3 (raw images) → Glue Catalog (metadata)
                     │
                     ├─ EDA: 2% defect labels · lighting/angle variation → augmentation plan
                     │
                     ├─ MODELING: Image Classification (CNN) + transfer learning
                     │        Metric: recall first (a miss = recall cost)
                     │        Training: Managed Spot Training (interruption tolerated)
                     │
                     └─ OPS: Nightly Batch Transform (S3 input → S3 output)
                              No always-on endpoint → zero cost during the day
                              Weekly retraining: Pipelines + Model Registry
Requirement sentenceDomainChoiceReason
"Hundreds of thousands of images pile up per hour"1S3 + Glue CatalogLarge-volume object storage and metadata
"Defective samples are only 2%"2Data augmentation, class weightsReinforce the minority class
"It is image data"3Image Classification (CNN)Data shape determines the algorithm
"Missing a defect means a costly product recall"3Recall-focused thresholdFN cost > FP cost
"Score everything overnight, no calls during the day"4Batch TransformRemoves the always-on endpoint cost
"Weekly retraining + approval process"4Pipelines + Model RegistryAutomation plus version and approval governance

⚠️ Trap: The word "real-time" does not always mean a Real-time Endpoint. Real time in data ingestion (Kinesis) and real time in inference (endpoint) are different layers. First work out which stage the requirement belongs to.

End-to-End Scenario 3: Operating Time-Series Demand Forecasting

A case where weekly demand for thousands of SKUs is forecast and handed to the supply-chain system in batches.

[Store POS / RDS] ─DMS→ S3 ─Glue/Athena→ daily/weekly aggregate tables
                                   │
                                   ├─ EDA: missing weeks, cold start for new SKUs
                                   │        Split by time point (no random shuffling)
                                   │
                                   ├─ MODELING: DeepAR (many related time series)
                                   │        Promotions/holidays = related time series / categorical features
                                   │        Metrics: RMSE / MAE (no classification metrics)
                                   │
                                   └─ OPS: Batch Transform once a week → S3 → supply-chain integration
                                            Seasonal change → Model Monitor + scheduled retraining
Requirement sentenceDomainChoiceReason
"Sales history lives in an on-premises relational DB"1Migrate to S3 with DMSService dedicated to database migration
"How do we split training and validation?"2Split by time pointRandom shuffling leaks data in time series
"Train thousands of related time series together"3DeepARSuited to global training across many series
"External variables such as promotions and holidays"3Feed in related time series / categorical featuresReflects exogenous variables
"Evaluate the forecast error"3RMSE / MAERegression metrics (F1 is wrong)
"Handing over the results as a file once a week is enough"4Batch Transform → S3No always-on endpoint needed
"The pattern changes with the season"4Model Monitor + scheduled retrainingResponds to drift

In scenario questions, the real constraint is hidden in the last sentence. A trailing sentence like "However, an always-on endpoint is not needed" or "There must be no impact on users" flips the answer.

Question Type → Solving Strategy Table

Question typeClue to check firstElimination ruleTypical answer candidates
"Which service should be used"Data shape · scale/latency · management burdenRemove options that contradict the required management levelStreams / Firehose / Glue / EMR / Athena
"Is this data leakage"Time order, can the feature be built at prediction timeRemove options with future information or target-derived featuresTime-based split, fit on the training set only
"Fix the overfitting"The gap between training and validation scoresIf both are low it is underfitting → remove stronger regularizationRegularization, early stopping, dropout, augmentation
"Which metric to use"Class balance, FP/FN cost, regression/classificationRemove F1/AUC for regression, RMSE/R² for classificationF1 / PR-AUC / recall / precision / RMSE
"Deploy safely"May results reach usersRemove Canary when "risk-free" is requiredShadow, Canary, Linear, Blue/Green
"Performance got worse after deployment"Is it during training or after deploymentRemove training-time tools (Debugger)Model Monitor + alarm + retraining
"Reduce cost"Traffic pattern, need for always-on operationRemove always-on Real-time optionsBatch, Serverless, Spot, Multi-Model
"Explanation/fairness required"Regulation/audit, rationale for individual decisionsRemove drift and logging toolsClarify (SHAP, Disparate Impact)
Multiple answers (choose 2-3)The number of answers in the instructionRemove options that overlap at the same layerCombinations across different layers (ingestion + storage, deployment + monitoring)

Exam Weighting and Typical Question Forms by Domain

DomainWeightTypical question formAnswer axis
1. Data Engineering20%Choosing ingestion, storage, and ETL servicesThe four Kinesis services, S3/Glue/EMR/Athena/Redshift, DMS
2. Exploratory Data Analysis24%Preprocessing, encoding, imbalance, leakage judgmentsOne-Hot, standardization, SMOTE, PCA, correlation/outliers
3. Modeling36%Algorithm selection, tuning, metrics, overfitting diagnosisXGBoost/CNN/DeepAR/RCF, AMT, F1/RMSE
4. ML Implementation and Operations20%Deployment type, safe rollout, monitoring, costBatch/Serverless/Async, Canary/Shadow, Clarify

In questions that mix domains, some options are "right in only one domain." The algorithm is right but the deployment type is wrong, or the metric is right but the ingestion service is wrong. An option is correct only when the whole sentence is true.

Elimination Checklist for Quickly Crossing Out Wrong Answers

  • "Fully managed / minimal operations" but the option spins up a cluster yourself → eliminate
  • "No always-on endpoint needed" but Real-time always-on operation → eliminate
  • Imbalance is stated but the option is based on Accuracy → eliminate
  • F1/AUC for regression, RMSE/R² for classification → eliminate
  • Multi-class but the output activation is Sigmoid → eliminate
  • Maximize an error metric / Minimize a performance metric → eliminate
  • Using t-SNE output as model input or to transform new data → eliminate
  • CloudTrail (auditing) or Elastic Inference as the answer for drift → eliminate
  • Debugger for a post-deployment problem, Model Monitor for a during-training problem → eliminate

In the next note, we bundle the exam structure and time allocation, the requirement translation table, and a full roundup of traps into a single page to build a D-Day operating manual.

📖 Glossary

  • End-to-end pipeline : The whole flow that connects everything from data ingestion to model deployment and monitoring.
  • Cross-domain question : A scenario-style question that makes you choose two or more of ingestion, preprocessing, modeling, and operations in a single passage.
  • Multi-consumer : A structure in which several applications each read the same stream without interfering with one another. A strength of Kinesis Data Streams.
  • Replay : Re-reading and reprocessing past records within the retention period. Used for failure recovery.
  • High-cardinality : A column with a very large number of distinct categorical values (e.g., merchant_id). Expanding it with One-Hot makes the dimensionality explode.
  • Canary deployment : A gradual shift in which only part of the traffic goes to the new model first, and the percentage is raised if there are no problems.
  • Shadow testing : Risk-free validation that mirrors real traffic to the new model too but does not return its responses to users.
  • Drift : The phenomenon where the distribution of production inputs, or the input-output relationship, differs from training time. Detected with Model Monitor.
  • MOST appropriate : Exam phrasing meaning that when several options would all work, you pick the one that best fits the constraint the passage emphasizes.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

A fintech company ingests mobile app clickstream data at millisecond granularity; the fraud detection team and the recommendation team must each consume the same stream independently, and the previous 1 day of data must be reprocessed after a failure. Which ingestion service is MOST appropriate?

Question 2

Credit approval data is extremely imbalanced, with a default (positive) rate of 2%. You want to compare candidate models by discriminative power independent of the threshold, and then set the operating threshold separately according to FN/FP costs. Which evaluation approach is MOST appropriate?

Question 3

A data scientist wants to explore logs in an S3 data lake with standard SQL without provisioning a cluster, and visualize the results in a dashboard. Which combination is MOST appropriate?

Question 4

You want to quickly optimize, with a small tuning budget, a model that predicts churn from structured tabular data (mixed numeric and categorical, with some missing values). Which combination of algorithm and tuning strategy is MOST appropriate?

Question 5

You only need to classify 10 million images in one pass overnight and store the results in S3, and no always-on endpoint is needed during the day. Which inference method is MOST cost-effective?

Question 6

The click-through rate of a recommendation model deployed to production has been declining gradually since 6 weeks after deployment. You want to automatically detect whether the input user behavior distribution has changed from training time and trigger retraining when a threshold is exceeded. Which configuration is MOST appropriate?

Question 7

For a loan underwriting model in a regulated industry, you must quantitatively measure prediction fairness across gender and race groups and explain the basis of individual rejection decisions (which features contributed and by how much). Which service is MOST appropriate?

Question 8

A team wants to standardize, as code, everything from data processing to training, evaluation, and conditional model registration, automatically retrain every week with new data, and manage versions and approvals. Which combination is MOST appropriate?

PreviousDomain 4 Integration: ML Implementation & OperationsWeek 12 · Day 3Next D-Day Wrap-Up: Exam Structure, Time Allocation, Requirement Translation Tables, Trap RoundupWeek 12 · Day 5

Official references

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

On this page

  • Key Takeaways
  • Four-Domain Integration Map: One Pipeline
  • The Key Contrast Table Where the Exam Splits Answers
  • End-to-End Scenario 1: Real-Time Fraud Detection
  • End-to-End Scenario 2: Batch Scoring for Image Quality Inspection
  • End-to-End Scenario 3: Operating Time-Series Demand Forecasting
  • Question Type → Solving Strategy Table
  • Exam Weighting and Typical Question Forms by Domain
  • Elimination Checklist for Quickly Crossing Out Wrong Answers
  • Glossary
  • Practice Questions