Cert Notes/ 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
SCS-C03 · SpecialtySecurity - Specialty
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
    • 1.Data Transformation and ETL: AWS Glue, Spark, and EMR
    • 2.Automating ML Training Pipelines: Step Functions and SageMaker Pipelines
    • 3.Data Augmentation and Synthesis: Addressing Insufficient and Imbalanced Data
    • 4.Data Storage and Access Optimization: Pipe vs File Mode, FSx for Lustre, Distributed Training
    • 5.Week 2 Comprehensive Review: From Transformation to Distributed Training Data Supply
  • Week 3
    • 1.Data Cleaning: Missing Values, Outlier Detection, Duplicates and Errors
    • 2.Feature Engineering: Scaling, Encoding, and Binning
    • 3.Time Series, Text Features, and High-Cardinality Categorical Handling
    • 4.SageMaker Tools: Data Wrangler, Processing Job, Feature Store
    • 5.Week 3 Comprehensive Review: Cleaning and Feature Engineering
  • Week 4
    • 1.Dimensionality Reduction: PCA, t-SNE, and the Curse of Dimensionality
    • 2.Feature Selection: Filter, Wrapper, Embedded, Importance, Multicollinearity
    • 3.Data Visualization: Distribution, Correlation, QuickSight, Insights
    • 4.Handling Class Imbalance: Over/Undersampling, SMOTE, Class Weights, Evaluation
    • 5.Week 4 Comprehensive Review: Dimensionality, Feature Selection, Visualization, Imbalance
  • Week 5
    • 1.Statistical Foundations: Distribution, Central Tendency, Dispersion, Transformations, Sample and Population
    • 2.Correlation and Relationships: Correlation Coefficients, Causation vs. Correlation, Multivariate Relationships
    • 3.Data Leakage: Causes, Detection, Prevention; Time Series Leakage; Target Leakage
    • 4.Validation Design: train/validation/test Split, Cross-Validation, Time Series Split, Stratified Sampling
    • 5.Week 5 Comprehensive Review: Statistics and Validation Design
  • Week 6
    • 1.Algorithm Selection: Problem Type to Mapping
    • 2.SageMaker Builtin 1: XGBoost, Linear Learner, K-Means, KNN
    • 3.SageMaker Builtin 2: Text, Image, Time Series, Recommendation
    • 4.Unsupervised/Anomaly Detection: RCF, PCA, IP Insights, Topic Models (LDA/NTM)
    • 5.Week 6 Comprehensive Review: Algorithm Selection and SageMaker Builtins
  • Week 7
    • 1.Neural Network Foundations: Perceptron to Backpropagation
    • 2.CNN: Convolutional Neural Networks and Computer Vision
    • 3.RNNs and Sequences: From LSTM to Transformer
    • 4.Learning Techniques and Transfer Learning
    • 5.Week 7 Synthesis: Deep Learning Summary
  • Week 8
    • 1.SageMaker Training Jobs: Estimator, Input Modes, Distributed Learning, Spot
    • 2.Hyperparameter Tuning (AMT): Bayesian, Random, Hyperband
    • 3.Overfitting/Underfitting: Diagnosis and Regularization/Data Augmentation
    • 4.Learning Optimization: Batch Size, Learning Rate, Gradient Issues, Debugger/Profiler
    • 5.Week 8 Review: Training, Tuning, Generalization
  • Week 9
    • 1.Classification Evaluation Metrics: Accuracy, Precision, Recall, F1 and Confusion Matrix
    • 2.ROC/AUC and Threshold Adjustment: Reading Model Performance with Curves
    • 3.Regression Evaluation Metrics: RMSE, MAE, MAPE, R² and Residual Analysis
    • 4.Model Debugging and Bias: SageMaker Debugger and Clarify
    • 5.Week 9 Review: Evaluation and Debugging
  • Week 10
    • 1.Inference Options: Real-time vs Serverless vs Asynchronous vs Batch Transform
    • 2.Real-time Endpoint Operations: Configuration, Auto Scaling, Multi-Model
    • 3.Inference Optimization: Neo, Elastic Inference, Inferentia, Inference Pipelines
    • 4.Deployment Strategies: A/B Testing, Blue/Green, Canary, Shadow, Rollback
    • 5.Week 10 Review: ML Implementation & Operations 1 — Deployment & Inference
  • 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 Review: Monitoring, MLOps, Security, Operations
  • 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
← MLS-C01/Week 1/Day 5
MLS-C01· AssociateWeek 1 · Day 5~14 min read

Day 5 - Week 1 Comprehensive Review: ML Overview & Data Engineering 1

This week laid the foundation for MLS-C01. We revisited the ML lifecycle at Specialty depth (Day 1), where to store data and in what format (Day 2), how to ingest it (Day 3), and how to label it (Day 4). Today we integrate how these pieces interlock into a single data pipeline, and consolidate the decision criteria that most often trip people up on the exam.

The Data Engineering Pipeline at a Glance

Connecting this week's content into a single flow looks like this.

[Sources]  Click logs · IoT · Transactions  ──┐
                            ▼
[Ingest]   Stream? → Kinesis (Firehose = delivery / KDS = multi-consumer & replay)  (Day 3)
           Batch?  → Glue ETL / EMR / Batch
                            ▼
[Store]    S3 data lake (Parquet/RecordIO)                      (Day 2)
                            ▼
[Label]    SageMaker Ground Truth (workforce + active learning + consensus)  (Day 4)
                            ▼
[Features] Feature engineering with Glue/Processing → Feature Store
                            ▼
[Training I/O] S3 (Pipe/File/FastFile) | EFS | FSx for Lustre   (Day 2)
                            ▼
[Model]    Train → Evaluate (tie to business metrics) → Deploy → Monitor   (Day 1)
                            └──── loop back on drift ────┘

💡 Related theory: The principles that run consistently through this entire pipeline are reproducibility and preventing training-serving skew. Fix ingestion, cleaning, and feature logic in code, version your data, and use identical transformations in training and inference. Features improvised in a notebook or data of unknown provenance quietly break your model in production.

Key Decision Criteria, Consolidated

Compressing the choices that most often split exam takers into one-line rules.

Storage input mode (Day 2)

SituationChoice
Large, sequential, fast startPipe mode
Small data, random accessFile mode
Large but partial/random reads onlyFastFile mode
Repeated, high-throughput sharingFSx for Lustre
General-purpose shared file systemEFS

Data format (Day 2)

SituationChoice
Structured data analytics/ETL, only some columnsParquet (columnar)
Large-scale training with SageMaker built-in algorithmsRecordIO-protobuf
Millions of small filesConsolidate into large bundles via sharding

Ingestion service (Day 3)

SituationChoice
Simple no-code delivery to S3 etc.Kinesis Data Firehose
Multiple consumers, reprocessing, custom processingKinesis Data Streams
Real-time stream aggregation & anomaly detectionManaged Service for Flink
Schema inference & catalogGlue Crawler
Serverless Spark ETLGlue ETL Job

Labeling (Day 4)

SituationChoice
Sensitive or regulated dataPrivate or Vendor workforce
Public, large-scale, low-costMechanical Turk
Reducing labeling costActive learning (automated labeling)
Reducing random errorsConsensus (multiple labelers + consolidation)

Quick Review of Evaluation Metrics (Day 1)

# Classification metric decision tree (pseudocode)
if classes_are_severely_imbalanced:
    if false_negative_cost_is_high (fraud, disease):      → prioritize recall, compare with PR-AUC
    elif false_positive_cost_is_high (spam, marketing):   → prioritize precision
    else:                                                 → PR-AUC
else:
    if threshold_undecided:                               → ROC-AUC
    else:                                                 → F1 / accuracy

💡 Related theory: Always beware the single-metric trap. On imbalanced data, 99.9% accuracy can be an "all negative" model. If you remember the two-stage structure — offline metrics as the deployment gate, online business metrics (A/B testing) as the final verdict — you have captured the core of Day 1.

Mini Integrated Scenario

Scenario: A global e-commerce company wants to detect fraudulent transactions from a real-time clickstream. Historical fraud labels are very scarce, and only 0.1% of transactions are fraudulent. The data contains PII.

The correct step-by-step flow:

  1. Ingest: Multiple consumers and reprocessing are needed, so Kinesis Data Streams + Flink for real-time features, while simultaneously accumulating to S3 via Firehose (lambda architecture).
  2. Store: Land in the S3 data lake as Parquet.
  3. Label: PII is present, so a Private workforce. With few labels, gain efficiency with active learning — or if labels are too scarce, start with unsupervised anomaly detection (Random Cut Forest).
  4. Evaluate: 0.1% imbalance + high false-negative cost → prioritize recall, compare models with PR-AUC.
  5. Deploy: Validate on a small traffic share via A/B, then scale up; detect drift with monitoring.

This single scenario contains every concept from Week 1. If you can explain the reasoning behind each decision in words, you have digested the week.

💡 Related theory: In scenario questions where multiple concepts collide, "constraints" come first. PII forces the workforce, extreme imbalance forces the metric, and the multi-consumer requirement forces KDS. The correct answer is not the fanciest technology among the options, but the choice that satisfies all constraints simultaneously.

Next Week Preview

Week 2 is Data Engineering 2: large-scale processing with EMR and Spark, deeper data transformation and cleaning, handling missing values, outliers, and imbalanced data, and the real techniques of feature engineering. It is the week we dig deep into the "Features" stage of the pipeline we consolidated today.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

You are comparing the performance of a fraud detection model where only 0.1% of transactions are fraudulent and false negatives are costly. What is the most honest single metric?

Question 2

You are distributing training of hundreds of GB of data across multiple instances, minimizing GPU idle time while having each instance read only a different slice of the data. What do you use?

Question 3

You need to label medical data containing PII while also reducing labeling labor costs. What is the most appropriate combination?

Question 4

A single event stream must be used independently for a real-time dashboard, a fraud model, and later reprocessing, and replay is needed after failures. Which ingestion service fits?

Question 5

When solving a scenario question with multiple simultaneous constraints (sensitive data, extreme imbalance, multi-consumer stream), what is the correct approach?

PreviousData Labeling: SageMaker Ground Truth, Active Learning, Label QualityWeek 1 · Day 4Next Data Transformation and ETL: AWS Glue, Spark, and EMRWeek 2 · Day 1

On this page

  • The Data Engineering Pipeline at a Glance
  • Key Decision Criteria, Consolidated
  • Quick Review of Evaluation Metrics (Day 1)
  • Mini Integrated Scenario
  • Next Week Preview
  • Practice Questions