Databricks Certified Machine Learning Associate · Free Practice Question Easy

Question 10

What is the primary goal of using dimensionality reduction techniques in Spark ML workflows?
  • A To increase model complexity
  • B To add irrelevant features to the dataset
  • C To reduce the number of input features
  • D To speed up data preprocessing
Reveal correct answer

Correct answer: C

Explanation

Correct Answer:
To reduce the number of input features

Explanation:

  1. Why This Is Correct?

    • Dimensionality reduction (e.g., PCA, Feature Selection) in Spark ML aims to:

      • Eliminate redundant/irrelevant features: Focus on the most informative ones.

      • Reduce computational cost: Fewer features speed up training and inference.

      • Improve model performance: Mitigates the "curse of dimensionality" (noise from irrelevant features).

    • Example (PCA in Spark ML):


  2. Key Benefits:

    • Faster training: Less data to process.

    • Better generalization: Removes noise.

Why Other Options Are Incorrect?

  • "Increase model complexity":

    • Dimensionality reduction simplifies models.

  • "Add irrelevant features":

    • Counterproductive—reduction removes irrelevance.

  • "Speed up preprocessing":

    • A side effect, not the primary goal.

Key Takeaway:

For efficient Spark ML workflows:

  1. Use PCA for linear dependencies.

  2. Use ChiSqSelector for categorical features.

  3. Validate with cross-validation to choose optimal dimensions.

Pro Tip: Pair with VectorSlicer to manually drop low-importance features.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need