Courseiva
Machine Learning Implementation and OperationsmediumMultiple SelectObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

A data scientist is using SageMaker to build a model for fraud detection. The dataset is highly imbalanced. Which THREE techniques should be applied to address class imbalance?

⚠ Common exam trap

AWS exams often test the misconception that accuracy is a valid metric for imbalanced data, when in fact precision, recall, F1-score, or AUC-ROC are more appropriate.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Apply SMOTE to generate synthetic samples of the minority class.

SMOTE (Synthetic Minority Oversampling Technique) generates synthetic samples for the minority class by interpolating between existing minority instances, which helps balance the dataset without simply duplicating data. This is effective for fraud detection because it provides the model with more diverse examples of fraudulent transactions, reducing the bias toward the majority class.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Train the model only on the majority class.

    Why it's wrong here

    Ignoring minority class completely would fail to detect fraud.

  • Use accuracy as the evaluation metric.

    Why it's wrong here

    Accuracy can be high even if minority class is ignored; use precision-recall or AUC.

  • Apply SMOTE to generate synthetic samples of the minority class.

    Why this is correct

    SMOTE creates synthetic examples to balance classes.

  • Use class weights in the loss function.

    Why this is correct

    Class weights increase penalty for minority class errors.

  • Undersample the majority class.

    Why this is correct

    Reducing majority class samples can help balance the dataset.

About these practice questions

Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.