Databricks Machine Learning Associate exam dumps

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

Select 4

A data scientist is training a machine learning model in a Databricks notebook and wants to manually log metrics such as accuracy, save the model, and store a performance plot as an artifact using MLflow. Which of the following steps are required to accomplish this?

  1. A

    Start an MLflow run using mlflow.start_run()

  2. B

    Use mlflow.log_metric() to log accuracy

  3. C

    Save the model to MLflow using mlflow.save_model()

  4. D

    Log a performance plot as an artifact using mlflow.log_artifact()

  5. E

    End the MLflow run using mlflow.end_run()

Show answer and explanation

Correct answers: A, B, D, E

Explanation

To manually log metrics, artifacts, and models in MLflow, it is important to start an MLflow run with mlflow.start_run(), log metrics using mlflow.log_metric(), and log artifacts using mlflow.log_artifact(). Once all desired information is logged, the MLflow run must be ended with mlflow.end_run(). However, logging models requires mlflow.log_model(), not mlflow.save_model().

  • A. Correct.

    Correct: An MLflow run must be started using mlflow.start_run() to log metrics and artifacts.

  • B. Correct.

    Correct: mlflow.log_metric() is used to log metrics such as accuracy to the MLflow run.

  • C. Incorrect.

    Incorrect: mlflow.save_model() is not a valid MLflow function for saving a model. Instead, mlflow.log_model() should be used to log models.

  • D. Correct.

    Correct: Artifacts like performance plots can be logged using mlflow.log_artifact().

  • E. Correct.

    Correct: The MLflow run must be ended using mlflow.end_run() to ensure all logs and artifacts are finalized.

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