Databricks Machine Learning Professional exam dumps

Databricks Machine Learning Professional practice question 146 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 146

Select 2

You are working on a machine learning project in Databricks, and you need to load a registered model from the Databricks Model Registry for inference. Which of the following statements about loading the model using mlflow.pyfunc.load_model() or mlflow.<flavor>.load_model() is correct?

  1. A

    You can load a specific version of a registered model using the format 'models:/<model_name>/'.

  2. B

    You can load the latest version of a registered model in the 'Production' stage by specifying 'models:/<model_name>/Production'.

  3. C

    The function mlflow.pyfunc.load_model() cannot be used to load registered models; it is only for local model files.

  4. D

    It is mandatory to specify the absolute path to the model file when using mlflow.<flavor>.load_model().

Show answer and explanation

Correct answers: A, B

Explanation

In Databricks, you can load registered models from the Model Registry using the mlflow.pyfunc.load_model() or mlflow.<flavor>.load_model() functions. These functions allow you to specify the model URI in the format 'models:/<model_name>/' for a specific version or 'models:/<model_name>/' for the latest version in a specific stage. This makes it easy to integrate registered models into your workflow for inference or further development.

  • A. Correct.

    This is correct. mlflow.pyfunc.load_model() and mlflow.<flavor>.load_model() support loading a specific version of a model from the Databricks Model Registry using the 'models:/<model_name>/' format.

  • B. Correct.

    This is correct. You can load the latest version of a model in a specific stage (e.g., 'Production') by specifying the model URI format 'models:/<model_name>/'.

  • C. Incorrect.

    This is incorrect. mlflow.pyfunc.load_model() can indeed be used to load models from the Databricks Model Registry, as well as local files or remote URIs.

  • D. Incorrect.

    This is incorrect. When loading models from the Databricks Model Registry, you use the 'models:/' URI format, and it is not mandatory to specify an absolute path to the model file.

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