AWS Machine Learning Specialty (MLS-C01) · 36% practice allocation

AWS MLS-C01: Modeling Practice Questions

5 free sample questions from the Modeling domain, with answers and explanations. The full MLS-C01 bank has 212 questions across 4 domains. Questions are scenario-based and written from the official AWS exam guide.

1.

A data scientist needs to train a binary classification model on a tabular dataset with 50 features and 500,000 rows. The team prioritizes a fast training time, a built-in ability to handle class imbalance, and automatic feature normalization. Which Amazon SageMaker built-in algorithm best satisfies all three requirements?

  • A. Linear Learner✓ Correct
  • B. K-Means
  • C. Random Cut Forest
  • D. XGBoost
Explanation

Linear Learner is correct because it natively supports binary classification, automatically normalizes input features during preprocessing, provides a 'positive_example_weight_mult' hyperparameter for class imbalance, and is highly optimized for fast training on large tabular datasets. XGBoost is a strong classifier but does not perform automatic feature normalization and requires manual handling of class imbalance (e.g., via 'scale_pos_weight'). K-Means is an unsupervised clustering algorithm and cannot perform supervised binary classification. Random Cut Forest is an unsupervised anomaly detection algorithm, not a binary classifier.

2.

A data science team is evaluating a binary classification model built to predict customer churn. The business stakeholder states that identifying every actual churner is far more important than avoiding false alarms, because the cost of missing a churner greatly exceeds the cost of a unnecessary retention call. Which evaluation metric should the team primarily optimize for?

  • A. Accuracy
  • B. Recall✓ Correct
  • C. Precision
  • D. Specificity
Explanation

Recall (also called sensitivity or true positive rate) measures the fraction of actual positives (churners) that the model correctly identifies. Since the business priority is minimizing missed churners (false negatives), recall is the correct primary metric. Accuracy is misleading when the class distribution is imbalanced (churn is typically rare) and does not specifically reward finding all churners. Precision measures the fraction of predicted churners that are actual churners; optimizing precision reduces false alarms but allows more churners to go undetected, which conflicts with the stated business priority. Specificity measures the true negative rate (correctly identifying non-churners), which is the opposite of what is needed here.

3.

A company is using SageMaker Clarify to audit a binary classification model that predicts loan approvals. The team suspects the model may be unfavorably biased against applicants from a particular age group. Which metric in SageMaker Clarify DIRECTLY measures whether the model's positive prediction rate differs significantly between two demographic groups?

  • A. Class Imbalance (CI)
  • B. SHAP feature importance value
  • C. Label Distribution Skew (LDS)
  • D. Disparate Impact (DI)✓ Correct
Explanation

Disparate Impact (DI) measures the ratio of the positive prediction rate (favorable outcome) for an unprivileged group to that of a privileged group. A DI value significantly below 1.0 indicates the model is less likely to grant positive outcomes to the disadvantaged group. — Class Imbalance (CI) is a pre-training bias metric measuring imbalance in the label distribution or group representation in training data, not the model's prediction rates. — SHAP values measure feature importance and contribution to individual predictions but are not a bias fairness metric between groups. — Label Distribution Skew is not a standard SageMaker Clarify bias metric name.

4.

A machine learning team trains an XGBoost model on Amazon SageMaker for predicting loan defaults. During evaluation, the model achieves 99% accuracy on the test set, but the business team notices it almost never flags any loan as high-risk. The team suspects the dataset has a severe class imbalance (0.8% default rate). Which THREE changes to the training configuration would most effectively address this problem?

  • A. Oversample the minority class (defaulters) using SMOTE or random oversampling in a preprocessing step before training✓ Correct
  • B. Switch the evaluation metric from 'error' (accuracy) to 'auc' to better reflect model performance on imbalanced data✓ Correct
  • C. Reduce the 'max_depth' hyperparameter to 2 to force the model to always predict the majority class
  • D. Add L1 regularization ('alpha') to prevent the model from learning any features
  • E. Increase the number of training rounds ('num_round') to allow the model to memorize more examples from the majority class
  • F. Set the 'scale_pos_weight' hyperparameter to approximately 124 (ratio of negative to positive samples) to penalize misclassification of the minority class more heavily✓ Correct
Explanation

Setting 'scale_pos_weight' to ~124 (ratio of negatives to positives: ~99.2/0.8 ≈ 124) directly tells XGBoost to penalize missed defaults much more heavily than missed non-defaults, correcting for class imbalance at the algorithm level. Switching the evaluation metric to 'auc' (Area Under the ROC Curve) is critical because accuracy is misleading on severely imbalanced datasets; AUC measures the model's ability to discriminate between classes regardless of the prediction threshold. Oversampling the minority class with SMOTE or random oversampling before training increases the effective representation of defaulters in the training data, helping the model learn default patterns. Increasing 'num_round' would allow the model to better fit the majority class but does nothing to address imbalance and could worsen the minority-class problem. Reducing 'max_depth' to 2 severely underfits the model; it does not improve minority-class detection and would produce a model that defaults to the majority class prediction. Adding L1 regularization to prevent learning any features is counterproductive and would result in a useless model.

5.

An e-commerce company wants to group its 2 million customers into distinct segments based on purchasing behavior to target them with personalized marketing campaigns. No labeled data is available. A data scientist proposes using a SageMaker built-in algorithm. Which algorithm is the most appropriate choice?

  • A. BlazingText in supervised mode
  • B. XGBoost with unsupervised objective
  • C. K-Means✓ Correct
  • D. Linear Learner with multiclass classification
Explanation

K-Means is the correct choice because it is an unsupervised clustering algorithm purpose-built for exactly this scenario: partitioning unlabeled data points into k distinct groups based on feature similarity. SageMaker's K-Means implementation scales efficiently to millions of records. Linear Learner requires labeled data for supervised classification and cannot perform unsupervised segmentation. XGBoost does not have an unsupervised training objective; it is a supervised gradient-boosted tree algorithm. BlazingText in supervised mode is a text classification algorithm that requires labeled text data and is not applicable to tabular customer behavior data.

Test yourself across every MLS-C01 domain

The free MLS-C01 practice test mixes about 20 questions weighted like the exam. The full 212-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Modeling study guide (MLS-C01) →

Other MLS-C01 domains

← All AWS Machine Learning Specialty study resources