Models in Unity Catalog: registry, tags, and aliases
Databricks Machine Learning Associate · Lesson 6 of 19 · 44:00
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Databricks Certified Machine Learning Associate exam. In this lesson: registering models in Unity Catalog with three-level names, why Unity Catalog replaces the Workspace Model Registry, model and version tags, and champion and challenger aliases. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
A registry per workspace
Juniper Rides still keeps its demand models in the old registry of one workspace, where versions move through stages, and the production workspace cannot see them without a copy. The team wants one registry for every workspace, clear rules on who can deploy, and a simple way to promote a new version. This lesson covers models in Unity Catalog: registering a model, its benefits, tags, and aliases.
Registering a model
To use Unity Catalog as the registry, the MLflow client points to it with set_registry_uri and the value databricks-uc, which is already the default with MLflow 3. A registered model gets a three level name, with a catalog, a schema, and the model, and each registration adds a new version. mlflow dot register_model takes the URI of a logged model and the name, while log_model can also register directly, with its registered model name argument. New versions in Unity Catalog must have a model signature, which autologging and an input example provide. And creating a registered model needs the privileges to create a model and use the schema, and to use the catalog.
Why Unity Catalog
The Workspace Model Registry is the legacy registry: each workspace has its own, and versions move through stages, like staging and production. Models in Unity Catalog bring the benefits of Unity Catalog to models: centralized access control, auditing, lineage, and discovery across workspaces. Any workspace attached to the metastore can load a model that it has privileges on, so a data scientist in development can compare a new model with the production model, without a copy. Lineage links each version to its run, its training data, and its feature tables. And instead of stages, the catalog expresses the environment, like dev or prod, while aliases mark the versions to deploy.
Tags
Tags are key and value pairs that label registered models and their versions. A registered model tag describes the model as a whole, like its task, and set_registered_model_tag adds it, while delete_registered_model_tag removes it. A model version tag describes one version, like a validation status that moves from pending to approved, with set_model_version_tag and delete_model_version_tag. Setting or deleting a tag needs ownership or the APPLY TAG privilege on the model, and tags can also be managed in the user interface.
Champion and challenger
An alias is a named reference that you can move, which points to one version of a registered model, like champion for the version in production, and challenger for the one being tested. set_registered_model_alias takes the model name, the alias, and a version, and calling it again with another version moves the alias, which is how a challenger becomes the champion. get_model_version_by_alias finds the version behind an alias, and delete_registered_model_alias removes it. Inference code loads the model by its alias, with a URI that ends with an at sign and the alias name, so a promotion needs no code change, and a serving endpoint can follow an alias too. A version can carry several aliases, but an alias points to one version at a time. And to promote across environments, copy_model_version copies a version from the staging catalog to the prod catalog, where an alias then marks it for deployment.
Recap
Let's recap. With the registry set to Unity Catalog, register_model or log_model registers a version under a three level name, and each new version needs a signature. Unity Catalog adds access control, auditing, lineage, and discovery across workspaces, and it replaces stages with catalogs and aliases. Registered model tags label the model, and model version tags label one version, each with a set and a delete call. An alias points to one version, set_registered_model_alias moves it, and inference code that loads the alias picks up the new version with no change. And copy_model_version moves a version from one catalog to another.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
A data scientist logs a scikit-learn model by hand, without a signature or an input example, and registering it in Unity Catalog then fails. What fixes it?
- Moving the version to a Staging stage first
- Granting APPLY TAG on the schema
- Logging it again with a signature or an example
- Registering it under a two-level name
Show the answer
Logging it again with a signature or an example
New model versions in Unity Catalog must have a signature, which the model gets when it is logged with one, or with an input example. “Moving the version to a Staging stage first” describes stages, which Unity Catalog does not support. “Granting APPLY TAG on the schema” grants a privilege for tags, which has nothing to do with the signature. And “Registering it under a two-level name” would break the three level name that Unity Catalog requires.
After validation, the team wants to mark version seven as approved, without labeling the other versions, and remove the mark later if a problem appears. Which calls fit?
- set_model_version_tag, then delete_model_version_tag
- set_registered_model_tag, then delete_registered_model_tag
- A new registered model named demand_approved
- set_tag on the run that trained it
Show the answer
set_model_version_tag, then delete_model_version_tag
A model version tag labels one version, and the matching delete call removes it. “set_registered_model_tag, then delete_registered_model_tag” would label the registered model as a whole, so every version would look approved. “A new registered model named demand_approved” would create a second model, and split its history. And “set_tag on the run that trained it” would label the training run, not the registered version.
Batch jobs load the demand model with the champion alias in their model URI. The team moves the alias from version 9 to version 12. What must change in the batch jobs?
- Their URI must name version 12 instead
- Nothing: the next load gets version 12
- They must register the model again
- The alias must first be deleted from version 9
Show the answer
Nothing: the next load gets version 12
The URI names the alias, so the next load resolves it to version twelve. “Their URI must name version 12 instead” would pin a version number, which is what the alias avoids. “They must register the model again” would create a new version, instead of loading the champion. And “The alias must first be deleted from version 9” is not needed, since setting the alias on version twelve moves it away from version nine.