Databricks Machine Learning Associate · Section 1 · 38% of the exam
Promote a challenger model to a champion model using aliases
One of the objectives of the Databricks Certified Machine Learning Associate exam, in the section “Databricks Machine Learning”. Here is what it covers, the points to remember and a question to try.
What it covers
Models in Unity Catalog is the MLflow model registry governed by Unity Catalog. This lesson covers why it replaces the workspace registry, how to register versions with the fluent and Client APIs, how to set and remove tags, and how champion and challenger aliases drive promotion.
Points to remember
- Unity Catalog models use
catalog.schema.modelnames; the MLflow 3 default registry URI on Databricks isdatabricks-uc. - Benefits over the workspace registry: centralized Unity Catalog access control, audit logs, lineage to tables and feature tables, discovery and access from every workspace on the metastore.
- The workspace registry is legacy (disabled for new accounts since April 2024); its stages, transition requests and webhooks are not in Unity Catalog.
- New Unity Catalog model versions must have a signature (
signature=orinput_example=). - Register:
log_model(registered_model_name=...),mlflow.register_model(uri, name), orMlflowClientcreate_registered_model+create_model_version(name, source, run_id).
Try a question
A data scientist on MLflow 3 wants to register a logged model as a new version of the model churn_model in the ml schema of the prod catalog in Unity Catalog. Which call is correct?
- A
mlflow.register_model(model_info.model_uri, "churn_model") - B
mlflow.register_model(model_info.model_uri, "ml.churn_model") - C
mlflow.register_model(model_info.model_uri, "prod.ml.churn_model") - D
mlflow.register_model(model_info.model_uri, "prod/ml/churn_model")
Show the answer
C. Models in Unity Catalog are named <catalog>.<schema>.<model>. In MLflow 3 the default registry URI on Databricks is databricks-uc, so the call registers to Unity Catalog without further set-up, creating the model if it does not exist.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Models in Unity Catalog: register, tag and alias teaches this objective (about 40 minutes), and 19 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Identify the best practices of an MLOps strategy
- Identify the advantages of using ML runtimes
- Identify how AutoML facilitates model/feature selection.
- Identify the advantages AutoML brings to the model development process
- Identify the benefits of creating feature store tables at the account level in Unity Catalog in Databricks vs at the workspace level
- Create a feature store table in Unity Catalog
- Write data to a feature store table
- Train a model with features from a feature store table.
- Score a model using features from a feature store table.
- Describe the differences between online and offline feature tables
- Identify the best run using the MLflow Client API.
- Manually log metrics, artifacts, and models in an MLflow Run.