nerdexam
Google

PROFESSIONAL-DATA-ENGINEER · Question #134

You are training a spam classifier. You notice that you are overfitting the training data. Which three actions can you take to resolve this problem? (Choose three.)

The correct answer is A. Get more training examples C. Use a smaller set of features E. Increase the regularization parameters. Overfitting is resolved by reducing model complexity, increasing training data diversity, or adding regularization constraints.

Submitted by eva_at· Mar 30, 2026Operationalizing machine learning models

Question

You are training a spam classifier. You notice that you are overfitting the training data. Which three actions can you take to resolve this problem? (Choose three.)

Options

  • AGet more training examples
  • BReduce the number of training examples
  • CUse a smaller set of features
  • DUse a larger set of features
  • EIncrease the regularization parameters
  • FDecrease the regularization parameters

How the community answered

(22 responses)
  • A
    73% (16)
  • B
    14% (3)
  • D
    5% (1)
  • F
    9% (2)

Why each option

Overfitting is resolved by reducing model complexity, increasing training data diversity, or adding regularization constraints.

AGet more training examplesCorrect

More training examples expose the model to a wider variety of patterns, reducing its ability to memorize specific training instances and improving generalization to unseen data.

BReduce the number of training examples

Reducing training examples worsens overfitting by giving the model fewer diverse examples, making it easier to memorize the smaller dataset rather than learn generalizable patterns.

CUse a smaller set of featuresCorrect

Reducing the feature set lowers model complexity and eliminates noisy or irrelevant signals that the model might overfit to, forcing it to rely on the most predictive features.

DUse a larger set of features

Adding more features increases model dimensionality and complexity, providing additional dimensions along which the model can overfit the training data.

EIncrease the regularization parametersCorrect

Increasing regularization parameters (such as L1 or L2 lambda) penalizes large coefficient values, constraining model complexity and preventing the model from fitting noise in the training data.

FDecrease the regularization parameters

Decreasing regularization parameters weakens the complexity penalty, allowing the model to assign larger weights to individual features and fit the training data more aggressively.

Concept tested: Resolving overfitting with regularization and data strategies

Source: https://developers.google.com/machine-learning/crash-course/regularization-for-simplicity/l2-regularization

Topics

#overfitting#regularization#feature selection#model training

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-DATA-ENGINEER Practice