Courseiva
Question 290 of 1,672
ModelingmediumMultiple SelectObjective-mapped

Mitigating Outliers in Linear Regression

A data scientist is using Amazon SageMaker to train a linear regression model. The training data contains outliers. Which THREE techniques can mitigate the impact of outliers?

Quick Answer

Outliers disproportionately affect linear regression because the standard squared-error loss function penalizes large residuals quadratically, meaning a single extreme point can pull the fitted line toward itself far more than its actual representativeness in the data would justify, so mitigating outliers means either changing how the model responds to large residuals, or changing what data it sees in the first place. Using a loss function that's robust to outliers, such as Huber loss, addresses the first path: Huber loss behaves like squared error for small residuals but switches to a linear penalty for large residuals, which caps how much influence any single extreme point can exert on the fitted coefficients compared to ordinary least squares. Removing observations with outlier values addresses the problem from the data side instead, directly eliminating points that would otherwise disproportionately skew the regression coefficients, which can be done as part of preprocessing before the model ever sees that data, for example in a SageMaker Processing job. These represent two different philosophies for the same goal, adapt the model's sensitivity to extreme values, or curate the data so extreme values aren't present to begin with, and a well-rounded approach to an outlier-heavy dataset often uses more than one such technique together, which is why this is framed as a 'choose three' question. Whenever a scenario describes outliers degrading a regression model and asks for mitigation techniques, expect the correct answers to include both loss-function changes and data-level interventions, since both are standard, complementary approaches.

⚠ Common exam trap

AWS often tests the misconception that feature scaling (standardization) alone can handle outliers, but scaling does not reduce the leverage of extreme values; it only changes their numeric range.

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

Remove observations with outlier values from the dataset.

Removing observations with outlier values directly eliminates data points that can disproportionately influence the linear regression coefficients, leading to a more stable and representative model. In Amazon SageMaker, this can be done during data preprocessing using built-in algorithms or custom scripts in a SageMaker Processing job.

Answer analysis

Option-by-option breakdown

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

  • Remove observations with outlier values from the dataset.

    Why this is correct

    Direct removal eliminates outlier impact.

  • Increase the number of layers in the model.

    Why it's wrong here

    More complexity may overfit to outliers.

  • Standardize the features to have mean zero and unit variance.

    Why it's wrong here

    Standardization does not reduce outlier influence.

  • Apply winsorization to the feature values.

    Why this is correct

    Winsorization limits extreme values to reduce outlier influence.

  • Use a loss function that is robust to outliers, such as Huber loss.

    Why this is correct

    Huber loss combines MSE and MAE, less sensitive to outliers.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on MLS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A data scientist is using Amazon SageMaker to train a linear regression model. The dataset has outliers. Which TWO techniques can help reduce the impact of outliers? (Choose TWO.)

easy
  • A.Trim the dataset to remove extreme values
  • B.Add more features
  • C.Apply L1 regularization
  • D.Use Huber loss instead of squared error
  • E.Standardize the features

Why A: Options A and D are correct. Huber loss is robust to outliers, and trimming the dataset removes extreme values. Option B (more features) is not relevant for handling outliers. Option C (L1 regularization) reduces overfitting but not outlier impact. Option E (standardization) does not handle outliers.

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.