Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 285 of 656

Databricks Certified Machine Learning Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Machine Learning Associate Question 285

Select 2

You are working on a distributed dataset in Databricks and need to split it into training, validation, and test sets using Spark ML's randomSplit method. Which of the following considerations must you keep in mind to ensure data is split correctly and reproducibly?

  1. A

    The seed parameter should be set to ensure reproducibility of splits.

  2. B

    The sum of the weights provided in randomSplit must equal 1.0.

  3. C

    Data skew in the dataset can lead to uneven splits across partitions.

  4. D

    randomSplit may result in overlapping data points across splits without proper configuration.

  5. E

    The dataset should always be cached before performing a randomSplit to avoid recomputation.

Show answer and explanation

Correct answers: A, C

Explanation

When using randomSplit in Spark ML, setting a seed ensures reproducibility of the splits, which is essential for consistent experimentation. Additionally, in distributed systems, data skew can impact how data is partitioned and lead to imbalanced splits. Understanding these considerations helps in building reliable machine learning pipelines.

  • A. Correct.

    Setting the seed parameter ensures that the splits are reproducible, which is critical for consistent results when rerunning workflows.

  • B. Incorrect.

    This is incorrect because the weights provided in randomSplit do not need to sum to 1.0; they are just relative proportions.

  • C. Correct.

    Data skew can lead to unevenly distributed data across partitions, which may result in imbalanced splits.

  • D. Incorrect.

    randomSplit ensures that no data point is included in multiple splits, so this is not a concern.

  • E. Incorrect.

    While caching can improve performance, it is not a strict requirement for randomSplit to function correctly.

Timed practice exam

Take a Databricks Machine Learning Associate practice test under exam conditions

48 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam