Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon MLA-C01 Exam - Topic 4 Question 18 Discussion

Posted by Marti on May 03, 2026 at 10:47 PM

An ML engineer is training an ML model to identify medical patients for disease screening. The tabular dataset for training contains 50,000 patient records: 1,000 with the disease and 49,000 without the disease.

The ML engineer splits the dataset into a training dataset, a validation dataset, and a test dataset.

What should the ML engineer do to transform the data and make the data suitable for training?

Suggested Answer: B

This dataset shows severe class imbalance, with only 2% of records representing patients with the disease. AWS ML best practices recommend correcting imbalance only in the training dataset, while keeping validation and test sets representative of real-world distributions.

Synthetic Minority Oversampling Technique (SMOTE) generates synthetic samples of the minority class by interpolating between existing minority examples. This improves the model's ability to learn disease-related patterns without discarding data.

PCA is a dimensionality reduction method, not an oversampling technique. Oversampling the majority class worsens imbalance. Altering the test dataset would invalidate evaluation results.

Therefore, applying SMOTE to the training dataset is the correct approach.


Get Premium MLA-C01 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
AM
Amanda Davis 9 days ago
I would pick A because PCA is dimensionality reduction, not an oversampling method. We must correct imbalance only in training.
SA
Sarah Parker 6 days ago
↳ replying to Amanda Davis
Why would PCA be chosen over SMOTE here if PCA doesn't fix class imbalance in training?
CH
Chantay 15 days ago
I’m not sure about A. PCA might not solve the imbalance issue.
MI
Mila 21 days ago
Yes, B can help the model learn better from the minority class.
PO
Portia 26 days ago
I feel B is the most effective for training. It improves model performance.
MI
Miesha 1 month ago
D is definitely wrong. Undersampling the minority class is risky.
JA
Jaime 1 month ago
C is not a good idea. Oversampling the majority class can lead to bias.
OM
Omer 1 month ago
A seems interesting too, but PCA is more for dimensionality reduction.
KA
Karima 2 months ago
Agreed, B makes sense. We need more samples of the minority class.
AL
Alexis 2 months ago
I think B is the best choice. SMOTE helps balance the classes.
QU
Quentin 2 months ago
Yeah, B is the most suitable for training the model.
TA
Tambra 2 months ago
I feel like B addresses the imbalance directly.
NO
Nobuko 2 months ago
B is the way to go. It creates synthetic data effectively.
HO
Howard 2 months ago
D is definitely wrong. Undersampling the minority is risky.
JO
Johnna 3 months ago
C is not a good idea. Oversampling the majority won't help.
AV
Avery 3 months ago
A seems interesting, but PCA is not for oversampling.
RA
Rasheeda 3 months ago
I agree, B makes sense. We need more samples of the minority class.
MA
Ma 3 months ago
I think B is the best choice. SMOTE helps balance the classes.
EM
Emilio 3 months ago
Totally agree, SMOTE is the way to go here!
ME
Melda 3 months ago
Wait, can k-means really be used for undersampling? Sounds off.
LE
Leota 4 months ago
Randomly oversampling the majority class? That's risky!
BR
Brittni 4 months ago
PCA won't help with class imbalance, just saying.
TE
Tequila 4 months ago
SMOTE is a solid choice for balancing classes!
TE
Terina 4 months ago
K-means clustering for undersampling the minority class in the test dataset seems off to me; I thought we should keep the test set representative.
HA
Harrison 6 months ago
I feel like randomly oversampling the majority class in the validation dataset doesn't really help with training, but I can't recall the exact reason.
AD
Adaline 6 months ago
I think SMOTE is often recommended for handling imbalanced datasets, so I might lean towards option B.
AS
Asuncion 6 months ago
I remember we discussed the importance of balancing the dataset, but I'm not sure if PCA is the right choice for oversampling.
0/2000 characters

Save Cancel