Databricks Machine Learning Associate Question 469
Select 3You are working on a Databricks project and want to register a trained machine learning model into the Unity Catalog Model Registry using the MLflow Client API. Which of the following steps are required to successfully accomplish this?
- A
Specify the Unity Catalog model URI when calling the MLflow Client's
log_modelmethod. - B
Use the MLflow Client's
create_registered_modelmethod to create a model entry in the Unity Catalog registry. - C
Ensure the model's storage location is mapped to a Unity Catalog-compatible catalog and schema.
- D
Call the MLflow Client's
register_modelmethod and pass the Unity Catalog model URI. - E
Grant appropriate permissions to the Unity Catalog registry for the workspace user or group.
Show answer and explanation
Correct answers: C, D, E
Explanation
Registering a model in the Unity Catalog Model Registry using the MLflow Client API requires ensuring that the model's storage is compatible with Unity Catalog's structure, using the correct API method (register_model), and having the necessary permissions on the Unity Catalog registry. Other methods, such as log_model and create_registered_model, are not relevant or sufficient for this specific task.
- A. Incorrect.
Incorrect. The
log_modelmethod is used to log the model artifact to an MLflow tracking server or a storage backend, not to register it in Unity Catalog. - B. Incorrect.
Incorrect. The
create_registered_modelmethod is not used for Unity Catalog model registration. Instead, registration is handled by theregister_modelmethod. - C. Correct.
Correct. Unity Catalog requires that the model be stored in a catalog and schema that are compatible with Unity Catalog's storage structure.
- D. Correct.
Correct. The
register_modelmethod is the appropriate MLflow Client API method for registering a model, and you must specify the Unity Catalog URI in this step. - E. Correct.
Correct. Permissions must be granted to the user or group in order to successfully register and manage models in Unity Catalog.