Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 300 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 300

Select 3

You are tasked with building a machine learning pipeline in Databricks using Spark ML to predict customer churn. The pipeline consists of the following steps: data cleaning, feature engineering, training a classification model, and evaluation. Which of the following steps are correct when creating a pipeline using Spark ML?

  1. A

    Define a sequence of stages where each stage is a Transformer or Estimator.

  2. B

    Use a Pipeline object to chain the stages together.

  3. C

    Directly call the fit method on the data without defining any stages.

  4. D

    Use the PipelineModel object to apply the trained pipeline on new data.

  5. E

    Run the pipeline stages in parallel to optimize performance.

Show answer and explanation

Correct answers: A, B, D

Explanation

To create a pipeline in Spark ML, you define the stages as a sequence of Transformers and Estimators, chain them together using a Pipeline object, and fit the pipeline to your training data. The resulting PipelineModel can then be used to transform and predict on new data. Spark ML pipelines are designed to execute stages in a sequential manner to ensure proper data flow through the pipeline.

  • A. Correct.

    Correct. In Spark ML, a pipeline is defined as a sequence of stages, where each stage is either a Transformer or an Estimator.

  • B. Correct.

    Correct. A Pipeline object is used to chain the defined stages together into a coherent workflow.

  • C. Incorrect.

    Incorrect. You cannot call the fit method on data without first defining and setting up the pipeline stages.

  • D. Correct.

    Correct. Once the pipeline is trained, the resulting PipelineModel is used to apply the transformations and predictions on new data.

  • E. Incorrect.

    Incorrect. Pipeline stages are executed sequentially, not in parallel, as they may depend on intermediate outputs.

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