Databricks Machine Learning Professional exam dumps

Databricks Machine Learning Professional practice question 193 of 280

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

Databricks Machine Learning Professional Question 193

Select 3

You are tasked with converting a batch machine learning deployment pipeline to a streaming deployment pipeline in Databricks for a model predicting customer churn. The batch pipeline uses a Delta table as the data source and writes results to another Delta table. Which of the following steps are necessary to enable a streaming deployment pipeline in Databricks?

  1. A

    Change the data source to read from a Delta table in streaming mode using .readStream.

  2. B

    Update the write operation to use .write() instead of .writeStream().

  3. C

    Ensure that the model inference logic can handle micro-batches.

  4. D

    Configure a checkpoint location in the streaming write operation.

  5. E

    Use Spark Structured Streaming's trigger(once=True) mode to simulate streaming.

Show answer and explanation

Correct answers: A, C, D

Explanation

To convert a batch deployment pipeline to a streaming deployment pipeline in Databricks, the data source must be read in streaming mode using .readStream(), the model inference logic must support micro-batches, and a checkpoint location should be configured to ensure state management and fault tolerance. Using .write() or trigger(once=True) does not create a true streaming pipeline.

  • A. Correct.

    Correct: To enable streaming, the data source must be read in streaming mode using .readStream instead of .read.

  • B. Incorrect.

    Incorrect: The write operation must use .writeStream() for streaming pipelines, not .write().

  • C. Correct.

    Correct: Model inference logic must be designed to process micro-batches, as streaming involves processing data incrementally.

  • D. Correct.

    Correct: Checkpointing is crucial in streaming pipelines to maintain state and ensure fault tolerance.

  • E. Incorrect.

    Incorrect: While trigger(once=True) processes data in a batch-like manner, it does not create a continuous streaming pipeline.

Timed practice exam

Take a Databricks Machine Learning Professional practice test under exam conditions

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

Start timed exam