CertLumen

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.model names; the MLflow 3 default registry URI on Databricks is databricks-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= or input_example=).
  • Register: log_model(registered_model_name=...), mlflow.register_model(uri, name), or MlflowClient create_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?

  1. Amlflow.register_model(model_info.model_uri, "churn_model")
  2. Bmlflow.register_model(model_info.model_uri, "ml.churn_model")
  3. Cmlflow.register_model(model_info.model_uri, "prod.ml.churn_model")
  4. Dmlflow.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

← Previous objective · All 48 objectives · Next objective →