Databricks Machine Learning Associate Question 468
Select 3You are tasked with registering a trained machine learning model to the Unity Catalog registry using the MLflow Client API. Which of the following steps are necessary to successfully register the model?
- A
Use the MLflow
log_model()method to log the model to a specified tracking URI. - B
Ensure that the Unity Catalog feature is enabled and the workspace is properly configured to use it.
- C
Use the MLflow
set_registry_uri()method to point to the Unity Catalog registry URI. - D
Call the
create_registered_model()method from the MLflow Client API to register the model in Unity Catalog. - E
Call the
register_model()method from the MLflow Client API with the appropriate model URI and model name.
Show answer and explanation
Correct answers: B, C, E
Explanation
To register a model in the Unity Catalog registry using the MLflow Client API, Unity Catalog must be properly enabled and configured. The MLflow Client API must then point to the Unity Catalog registry using set_registry_uri(). Finally, the register_model() method must be used with the appropriate model URI and target model name to complete the registration process.
- A. Incorrect.
This step is related to logging the model to MLflow but does not directly address registering the model in the Unity Catalog registry.
- B. Correct.
Unity Catalog must be enabled and properly configured to use it as the registry for MLflow models. Without this setup, the Unity Catalog registry cannot be used.
- C. Correct.
The
set_registry_uri()method ensures that the MLflow Client API interacts with the Unity Catalog as the model registry. This is a necessary step to utilize Unity Catalog. - D. Incorrect.
The
create_registered_model()method is used to create a new model registry entry in certain situations, but it is not required for registering a model in Unity Catalog specifically. Theregister_model()method is the correct choice for this purpose. - E. Correct.
The
register_model()method is the correct API call to register a logged model in the Unity Catalog registry. This method requires the model URI and the target model name.