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 1

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

MLS-C01· AssociateWeek 12 · Day 1~37 min read

Day 1 - Domains 1 & 2 Integration: Data Engineering + EDA

📌 Key Takeaways

  • Domain 1 (20%) + Domain 2 (24%) = about 44% of the exam. This is the front part of the pipeline that "turns raw source data into clean, trainable features."
  • Ingestion is the four Kinesis siblings, storage and querying is S3/Athena/Redshift, and transformation is Glue/EMR. The deciding axis is always management burden vs control.
  • Encoding and scaling are decided by the model type. Distance-based and gradient-based models require scaling; tree-based models make it practically meaningless.
  • Every fit (scaler, encoder, imputer, SMOTE) happens only on the training set, after the split. Breaking this rule is data leakage.
  • EDA is not admiring plots but gathering the basis for the next preprocessing decision. Skewness → log transform, outliers → winsorizing, correlation above 0.95 → remove multicollinearity.

Flow Map: Until the Data Becomes Trainable

[Raw source data]
   │
   ├─ 1) Ingestion / loading (Domain 1)
   │     Real-time stream → Kinesis (Data Streams / Firehose)
   │     Batch loading    → S3 + Glue catalog
   │     Relational / migration → DMS, DataSync
   │
   ├─ 2) Storage (Domain 1)
   │     Data lake = S3 (the de facto standard)
   │     Query     = Athena (serverless), Redshift (warehouse)
   │
   ├─ 3) Transformation / ETL (Domain 1)
   │     Glue (serverless Spark) / EMR (large-scale cluster)
   │
   ├─ 4) Cleaning (Domain 2)
   │     Missing values, outliers, deduplication, type correction
   │
   ├─ 5) Feature engineering (Domain 2)
   │     Encoding, scaling, binning, dimensionality reduction (PCA)
   │
   └─ 6) Visualization / EDA (Domain 2)
         Explore distributions, correlations, outliers → QuickSight, scatter plots/histograms

Exam Weight by Domain and Typical Question Forms

DomainTypical question typeTypical question
1 Data Engineering (20%)Service selection"To load a stream into S3 with minimal operational burden?"
1 Data Engineering (20%)Architecture combination"How do you connect ingestion → storage → query?"
1 Data Engineering (20%)Migration/transfer"To move an on-premises DB/files to AWS?"
2 Exploratory Data Analysis (24%)Preprocessing technique selection"Encoding for a high-cardinality categorical?"
2 Exploratory Data Analysis (24%)Preprocessing order"What is the order of split, imputation, and scaling?"
2 Exploratory Data Analysis (24%)Leakage identification"Why is only the offline score high?"
2 Exploratory Data Analysis (24%)Chart interpretation"What do you do after seeing this histogram?"
2 Exploratory Data Analysis (24%)Imbalance handling"Positives are 0.5% yet accuracy is 99%"

Domain 1: Ingestion and Streaming (The Four Kinesis Services)

Streaming questions almost always come down to distinguishing the roles of the four Kinesis siblings.

ServiceCore roleClue words
Kinesis Data StreamsReal-time ingestion, custom consumers, shard managementMillisecond latency, multiple consumers, reprocessing
Kinesis Data FirehoseFully managed delivery (S3/Redshift/OpenSearch)Serverless, buffered delivery, transformation
Kinesis Data AnalyticsReal-time analysis on streams with SQL/FlinkReal-time aggregation, window queries
Kinesis Video StreamsVideo stream ingestionCamera, video

💡 Related Theory: Streams vs Firehose is decided by "who bears the management burden." Streams manages shard capacity, consumers, and retention directly, making it the most flexible but with a heavy operational burden. Firehose has no shard concept: you only set the buffer size and time, and it delivers automatically to S3/Redshift, so it is the answer when words like "fully managed / serverless / minimal operations" appear. Answer instantly: "custom processing / milliseconds / reprocessing" is Streams, and "just drop it into S3" is Firehose.

Domain 1: Storage and ETL

RequirementService
Central data lake storageS3
Serverless SQL queries over S3Athena
Large-scale structured analytics warehouseRedshift
Serverless Spark ETL + catalogGlue
Control of a large-scale Hadoop/Spark clusterEMR
On-premises DB → AWS migrationDMS
Synchronized transfer of large filesDataSync

Glue vs EMR is another case of "operational control vs convenience." Glue is serverless, so it provides ETL jobs and a Data Catalog (metadata) without launching a cluster, and is strong for "serverless ETL, automatic schema inference." EMR is used when you launch a cluster yourself and want fine control over the Spark version, libraries, and the Hadoop ecosystem. "Managed / serverless / quick start" = Glue; "fine-grained cluster tuning / existing Hadoop jobs" = EMR.

Domain 2: Data Cleaning

ProblemTechnique
Missing values (few, MCAR)Delete rows or impute with mean/median
Missing values (many, with a pattern)KNN/model-based imputation, add a missing-flag feature
Numeric outliersDetect with IQR/Z-score, then winsorize or remove
Class imbalanceSMOTE (oversampling), undersampling, weights
Duplicates / format errorsDeduplicate, standardize types and units

⚠️ Pitfall: Scalers, encoders, imputers, and SMOTE are fit only on the training set after the split, and only transform is applied to the validation and test sets. Fitting on the entire data leaks test information into training (data leakage), inflating only the offline score and collapsing in production. A stem like "cross-validation score is excellent but production performance is terrible" is, in most cases, a question about leakage.

Domain 2: Feature Engineering and Encoding

Data / goalTechnique
Unordered categoricalOne-Hot Encoding
Ordered categoricalOrdinal/Label Encoding
High-cardinality categoricalEmbeddings, target/frequency encoding
Scale differences for distance/gradient-based modelsStandardization (StandardScaler), normalization (MinMax)
Bucketing continuous valuesBinning
Too many dimensions, multicollinearityPCA (principal component analysis)
TextTF-IDF, BoW, embeddings

The distinction between "models that need" and "models that don't need" scaling falls within the exam scope. Distance-based (KNN, K-Means, SVM) and gradient-descent-based (linear/logistic regression, neural networks) models are sensitive to feature scale, so standardization is almost mandatory. Tree-based models (decision tree, random forest, XGBoost), on the other hand, have split criteria that are invariant to scale, so scaling is practically meaningless. An option like "it's XGBoost but scaling is mandatory" is a trap.

Domain 2: What Do You Look For in Visualizations

ChartWhat it shows
Histogram/densitySingle-variable distribution, skewness
Box plotOutliers, quartile spread
Scatter plotRelationship between two variables, clusters and outliers
Correlation heatmapMulticollinearity, correlation between features
Line chartTime-series trend and seasonality

The purpose of EDA is not "a nice-looking picture" but "gathering the basis for preprocessing and modeling decisions." If the histogram shows strong skewness you decide on a log transform, if the box plot shows outliers you decide on winsorizing, and if the correlation heatmap shows two features at 0.95 or higher you decide to remove multicollinearity (drop one or use PCA). Visualization questions reduce to "what do you see in this picture and what do you do next?"

Exam Clue Keyword → Answer Translation Table (Domain 1)

Clue in the stemAnswerReason
"Millisecond latency, multiple consumers each read and reprocess"Kinesis Data StreamsDirect control of shards and retention, supports multiple consumers
"Minimal operational burden, buffered delivery to S3/Redshift"Kinesis Data FirehoseFully managed delivery, only buffer size and time to set
"Real-time aggregation and window queries on a stream"Kinesis Data AnalyticsApplies SQL/Flink to the stream
"Ingest and play back camera video"Kinesis Video StreamsVideo-specific ingestion
"Ad hoc query of S3 with standard SQL without provisioning a cluster"AthenaServerless query, billed only for data scanned
"Complex joins and BI reports on large-scale structured data"RedshiftColumnar warehouse
"Query raw data in S3 together with the warehouse without loading"Redshift SpectrumDirectly queries S3 external tables from Redshift
"Serverless Spark ETL, automatic schema inference and metadata"Glue (crawler + Data Catalog)Provides ETL and a catalog without a cluster
"Fine control of the Spark version and Hadoop ecosystem, migrating existing Hadoop jobs"EMRYou operate the cluster directly
"Migrate an on-premises relational DB with minimal downtime"DMSDedicated to DB migration, supports continuous replication
"Synchronize large files from an on-premises file server to S3"DataSyncDedicated to file transfer and synchronization
"Visually clean and profile data without code"Glue DataBrewNo-code data preparation
"Training and inference share and reuse the same feature definitions"SageMaker Feature StoreUnifies feature storage and retrieval
"Share with non-technical users as a dashboard"QuickSightBI visualization service

Exam Clue Keyword → Answer Translation Table (Domain 2)

Clue in the stemAnswerReason
"Unordered categories like color or city"One-Hot EncodingDoesn't create an arbitrary magnitude relationship
"Ordered categories like S/A/B grades"Ordinal / Label EncodingPreserves the order information as integers
"Thousands of distinct values like a user ID"Embeddings or target/frequency encodingOne-Hot would explode the dimensions
"Before training KNN, SVM, or a neural network"Standardization (StandardScaler)Distance and gradients are sensitive to scale
"It's XGBoost but standardization is mandatory"Wrong optionTrees' split criteria are invariant to scale
"Strong right skew with a long right tail"Log transformMakes the distribution closer to symmetric
"Two features have a correlation of 0.96"Remove multicollinearity (drop or PCA)Redundant information destabilizes coefficients
"Positive class is 0.5% yet accuracy is 99%"Resampling/class weights + switch the metric to F1/AUPRCAccuracy is meaningless under imbalance
"The minority class has very few samples in absolute terms"SMOTE (oversampling)Synthesizes the minority without discarding data
"The majority class is excessively large and training is slow"UndersamplingReduces the majority for balance and speed
"Correct the imbalance without touching the data"Class weights (e.g., scale_pos_weight)Adjusts the penalty in the loss function
"The distribution is skewed but outliers must be caught"IQR (box plot) criterionNeeds no distribution assumption
"Extreme values of a near-normal variable"Z-score criterion (e.g., |z| > 3)The normality assumption holds
"Missing values are few and scattered randomly"Delete rows or impute with mean/medianGood effect for the cost
"Whether a value is missing looks like information itself"Missing-flag feature + model-based/KNN imputationDoesn't throw away the missingness pattern
"Turn free text into numeric features"BoW / TF-IDF / embeddingsText vectorization

Confusing Pairs Comparison Tables

Streams vs Firehose vs Data Analytics

ItemData StreamsFirehoseData Analytics
RoleReal-time ingestion and retentionDelivery to a destinationReal-time analysis on streams
What you manageShards, consumers, retentionOnly buffer size and timeQueries, applications
Multiple consumers / reprocessingPossibleNot suitableUses Streams/Firehose as the source
Typical clueMilliseconds, custom consumersFully managed, drop it into S3Window aggregation, SQL/Flink

Glue vs EMR

ItemGlueEMR
FormServerless SparkA cluster you launch yourself
StrengthQuick start, Data Catalog and crawlersControl of versions, libraries, Hadoop ecosystem
Typical clueServerless ETL, automatic schema inferenceFine-grained tuning, existing Hadoop jobs

Athena vs Redshift vs Redshift Spectrum

ItemAthenaRedshiftRedshift Spectrum
Data locationS3Data loaded into the clusterS3 (external tables)
ProvisioningNone (serverless)Cluster requiredRedshift cluster required
Suited forAd hoc queries, intermittent analysisRepeated large-scale BI, complex joinsJoining raw S3 data together without loading

DMS vs DataSync

ItemDMSDataSync
TargetDatabasesFile and object storage
Typical useOn-premises DB → RDS/Redshift/S3 migrationOn-premises NFS/SMB → S3/EFS/FSx transfer
Typical clueMinimal-downtime DB migrationLarge file synchronization

One-Hot vs Label (Ordinal) vs Target Encoding

ItemOne-HotLabel / OrdinalTarget
PremiseNo orderHas orderVery high cardinality
DimensionsGrows by the number of categoriesStays 1 columnStays 1 column
RiskDimension explosion at high cardinalityCreates an order that doesn't existTarget information leakage — compute only on the training set

Standardization vs Normalization

ItemStandardization (Z-score)Normalization (Min-Max)
ResultMean 0, standard deviation 1Generally a 0-1 range
RangeNot fixedFixed
OutliersRelatively less sensitiveDragged by min and max, greatly distorted
Commonly used forLinear/logistic regression, SVM, PCAImage pixels, neural network inputs

Oversampling vs Undersampling vs Class Weights

ItemOversampling (SMOTE)UndersamplingClass weights
What it doesSynthesizes and increases the minority classReduces the majority classBig penalty on minority-class errors in the loss
Data lossNoneYesNone
Side effectsOverfitting risk, longer training timeInformation lossNone (hyperparameter tuning needed)
CautionApply only to the training set after the splitBeware of damaging the diversity of the majority classBest viewed together with threshold adjustment

IQR vs Z-score Outlier Detection

ItemIQRZ-score
Decision criterionBelow Q1 − 1.5×IQR, above Q3 + 1.5×IQRMore than some multiple of the standard deviation from the mean (e.g., |z| > 3)
Distribution assumptionNoneAssumes near-normal distribution
Skewed distributionsRobustEasily distorted
Effect of outliersQuartiles are insensitive to outliersThe mean and standard deviation themselves get contaminated

Self-Check Questions

  1. Multiple consumers must reprocess the same stream with millisecond latency? → Kinesis Data Streams
  2. Automatically load a stream into S3 with no operations? → Kinesis Data Firehose
  3. SQL-query an S3 data lake serverlessly? → Athena
  4. Serverless Spark ETL and automatic schema inference (catalog)? → Glue
  5. Is standardization mandatory before training XGBoost? → No (trees are scale-invariant)
  6. Encoding for an unordered categorical (color)? → One-Hot Encoding
  7. Response when two features have a correlation of 0.97? → Remove multicollinearity (drop or PCA)
  8. The common transform for a strongly right-skewed distribution? → Log transform
  9. What arises if you fit a scaler on the entire data? → Data leakage (fit only on the training set after the split)
  10. Services for on-premises DB migration and large file transfer? → DMS / DataSync
  11. To join raw S3 data from a Redshift cluster without loading? → Redshift Spectrum
  12. Positives are 0.5% yet accuracy is 99%. How do you change the metric? → F1 / AUPRC (precision-recall based)
  13. Outlier criterion for a heavily skewed variable? → IQR (box plot)

📖 Glossary

  • Data lake: A central repository that gathers structured and unstructured data as is, without processing. On AWS this effectively means S3.
  • Shard: The unit of throughput in Kinesis Data Streams. Adding shards increases throughput, and consumers read per shard.
  • Data Catalog: A metadata ledger recording what data is where, with what schema. Glue crawlers fill it automatically.
  • Cardinality: The number of distinct values a categorical variable can take. Thousands to millions, as with user IDs, is high cardinality.
  • Data leakage: Information that should be unknowable at training time seeping in through features or preprocessing. It inflates only the offline score.
  • Multicollinearity: A state where two or more features carry nearly the same information and are strongly correlated with each other. It destabilizes the coefficients of linear models.
  • Skewness: The degree to which a distribution leans to one side. A long right tail is right skew, and a log transform is the common response.
  • Winsorizing: Treatment that clips outliers to the upper and lower boundary values instead of discarding them. It preserves the sample count.
  • AUPRC: The area under the precision-recall curve. In heavily imbalanced problems with very rare positives, it is a more trustworthy metric than accuracy or ROC-AUC.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Thousands of IoT sensors send tens of thousands of events per second, and multiple independent applications read the same stream at their own different speeds and must also reprocess historical data. Which ingestion service is MOST appropriate?

Question 2

While minimizing operational burden, you want to buffer streaming data for 1 minute and deliver it to S3, with only simple format conversion before delivery. Which is MOST appropriate?

Question 3

You are reviewing preprocessing before training a decision-tree-based XGBoost model. Which of the following tasks has the LEAST effect and therefore the lowest priority?

Question 4

In EDA, the Pearson correlation coefficient of two features is 0.96. Which of the following is NOT an appropriate response for reducing multicollinearity?

Question 5

A data analyst wants to run ad hoc queries with standard SQL on logs stored in an S3 data lake without provisioning a cluster. Which service is MOST appropriate?

PreviousWeek 11 Comprehensive Review: Monitoring, MLOps, Security, OperationsWeek 11 · Day 5Next Domain 3 Integration: Modeling (Algorithm to Evaluation)Week 12 · Day 2

Official references

  • MLS-C01 official exam page(opens in a new tab)
  • Amazon S3 documentation(opens in a new tab)
  • Amazon Redshift documentation(opens in a new tab)
  • Amazon Kinesis documentation(opens in a new tab)
  • Amazon Data Firehose documentation(opens in a new tab)
  • AWS Glue documentation(opens in a new tab)

On this page

  • Key Takeaways
  • Flow Map: Until the Data Becomes Trainable
  • Exam Weight by Domain and Typical Question Forms
  • Domain 1: Ingestion and Streaming (The Four Kinesis Services)
  • Domain 1: Storage and ETL
  • Domain 2: Data Cleaning
  • Domain 2: Feature Engineering and Encoding
  • Domain 2: What Do You Look For in Visualizations
  • Exam Clue Keyword → Answer Translation Table (Domain 1)
  • Exam Clue Keyword → Answer Translation Table (Domain 2)
  • Confusing Pairs Comparison Tables
  • Streams vs Firehose vs Data Analytics
  • Glue vs EMR
  • Athena vs Redshift vs Redshift Spectrum
  • DMS vs DataSync
  • One-Hot vs Label (Ordinal) vs Target Encoding
  • Standardization vs Normalization
  • Oversampling vs Undersampling vs Class Weights
  • IQR vs Z-score Outlier Detection
  • Self-Check Questions
  • Glossary
  • Practice Questions