Databricks Generative AI Engineer Associate Question 215
Select 4You are working on a project where you have trained a machine learning model using Databricks and logged it using MLflow. You want to register this model to Unity Catalog for enhanced governance and discoverability. Which of the following steps is necessary to ensure successful model registration to Unity Catalog?
- A
Ensure that the MLflow Experiment is linked to a Unity Catalog-enabled workspace.
- B
Assign the Unity Catalog model a unique name within its catalog and schema.
- C
Enable model versioning explicitly in Unity Catalog before registration.
- D
Use the
mlflow.register_model()function with a Unity Catalog model URI. - E
Verify that the Databricks workspace is configured with Unity Catalog governance.
Show answer and explanation
Correct answers: A, B, D, E
Explanation
To register a model to Unity Catalog using MLflow, certain configurations and processes must be followed. The MLflow experiment needs to be linked to a Unity Catalog-enabled workspace, and the model must be uniquely named within its catalog and schema. Additionally, using the mlflow.register_model() function with the appropriate Unity Catalog model URI is essential. Finally, the workspace must be configured to support Unity Catalog governance to ensure proper access control and discoverability.
- A. Correct.
Correct. The MLflow experiment must be linked to a Unity Catalog-enabled workspace for the model registration process to work seamlessly.
- B. Correct.
Correct. In Unity Catalog, models are registered under a specific catalog and schema, and each model must have a unique name within that namespace.
- C. Incorrect.
Incorrect. Model versioning is automatically managed by MLflow and Unity Catalog, so there is no explicit step required to enable it.
- D. Correct.
Correct. The
mlflow.register_model()function with a Unity Catalog model URI (e.g.,models://catalog_name.schema_name/model_name) is required to register the model. - E. Correct.
Correct. The Databricks workspace must be configured with Unity Catalog governance to support features like model registration and access control.