CertSafari
    Databricks Certified Machine Learning Associate· Lessons

    Domain 1 · Lesson 14/48

    Register a model in the Unity Catalog registry with MLflow

    Register a model using the MLflow Client API in the Unity Catalog registry

    19 min read
    2.11% of exam
    5 sources
    Published 22 Oct 2026
    Docs as of 30 Sep 2026

    What you will be able to do

    • Point the MLflow client at the Unity Catalog registry with mlflow.set_registry_uri("databricks-uc") and know when you can skip this step
    • Name the Unity Catalog privileges a principal needs before mlflow.register_model can create a registered model or a new version
    • Register a logged model with mlflow.register_model or with registered_model_name at log time, using a three-level catalog.schema.model name
    • Predict the version number a registration will produce and explain why numbers are never reused

    Key concept

    Registering into Unity Catalog — Registering turns a logged model into a numbered version of a registered model. In Unity Catalog, that registered model is a governed object with a three-level catalog.schema.model name. The MLflow client must target the databricks-uc registry, and the caller must hold the Unity Catalog privileges on the destination schema.

    1.What registration creates in Unity Catalog

    A training run produces a logged model: files and metadata attached to an experiment. Registering that model publishes it as a model version under a registered model. In Unity Catalog, the registered model lives in a schema, like a table does, so it is addressed by a three-level name such as prod.ml_team.iris_model. That is catalog prod, schema ml_team and model iris_model. The documented way to call any MLflow API on a Unity Catalog model, including mlflow.register_model, is to pass this full name.

    Unity Catalog is not the only place a registration can land. Every workspace also has an older, non-Unity Catalog model registry, the workspace model registry, which Databricks now labels legacy. Its counterpart on the catalog side is hive_metastore, the legacy non-Unity Catalog catalog that some workspaces still use as their default. Which of the two registries receives a registration depends on how the MLflow client is configured, which the next section covers.

    The catalog in that name says where a model is governed, not what it is doing. A version registered under prod follows the governance rules set on the prod catalog. For example, privileges might allow only admins to delete from it. That does not mean the version is serving production traffic. Deployment status is tracked separately, with aliases, which are covered in promoting a challenger to champion with aliases.

    Unity Catalog also checks something the legacy registry never did: every new model version must carry a model signature, which describes the inputs and outputs the model expects. You can get one in two ways. Databricks autologging records signatures for many popular frameworks. With MLflow 2.5.0 and above, you can also pass an input_example to mlflow.<flavor>.log_model and the signature is inferred from it. Versions without a signature have limitations. For example, inputs are not checked at inference time, and Model Serving does not auto-generate input examples for them.

    Checkpoint 1 of 8· Check yourself

    A colleague registers a new version under prod.ml_team.iris_model. Afterwards, someone on the team says, "That version is now serving production traffic, because it's in the prod catalog." What is the accurate reading of that registration?

    Sources1

    2.Pointing the MLflow client at databricks-uc

    The MLflow client decides which registry receives a registration from its registry URI. A three-level name alone does not tell the client to use Unity Catalog. If the client is still pointed at the legacy workspace model registry, the registration goes there. To target Unity Catalog explicitly, set the URI to databricks-uc once, before any registry call in the notebook:

    Configure the MLflow client to register into Unity Catalogpython
    import mlflow
    mlflow.set_registry_uri("databricks-uc")

    You can skip this line in some setups. If the workspace's default catalog is in Unity Catalog (rather than hive_metastore), and the cluster runs Databricks Runtime 13.3 LTS or above or uses MLflow 3, models are created in and loaded from the default catalog automatically. MLflow 3 also makes databricks-uc its default registry URI. In every other workspace the client falls back to the workspace registry, so adding the line is the safe habit.

    Setting the URI is not the only requirement. Models in Unity Catalog are supported in Databricks Runtime 13.2 ML and above. The compute must also have access to Unity Catalog. For ML workloads, that means Dedicated access mode, formerly called single user. On Databricks Runtime 15.4 LTS ML and above, dedicated group access mode also works.

    Checkpoint 2 of 8· Fill the gap

    Your workspace's default catalog is hive_metastore, and you want this notebook's registrations to land in Unity Catalog. Which value completes the client configuration?

    import mlflow
    mlflow.set_registry_uri(" ? ")

    Checkpoint 3 of 8· Exam question

    A data scientist trains a scikit-learn model in a Databricks notebook attached to a workspace whose default catalog is not configured for Unity Catalog. They plan to register the model directly into the Unity Catalog model prod.ml_team.churn_model using mlflow.register_model. Before calling register_model, what must they configure so the call targets the Unity Catalog registry instead of the legacy workspace registry?

    Sources1

    3.Privileges that must exist before register_model succeeds

    Registration creates a Unity Catalog object, so it is checked against Unity Catalog privileges. The general model of ownership and grants is covered in Unity Catalog privileges on registered models. This section covers only what mlflow.register_model needs. The two cases differ depending on whether the registered model already exists.

    Privileges checked by a registration call
    What the call doesPrivileges required
    Creates a new registered model (first registration under a name)USE CATALOG on the catalog, USE SCHEMA on the schema, and CREATE MODEL (or CREATE FUNCTION) on the schema
    Adds a new version to an existing registered modelOwner of the registered model, or CREATE MODEL VERSION on it, plus USE SCHEMA and USE CATALOG on its schema and catalog

    Repeated permission-denied errors usually mean a missing privilege on the target schema. The privileges in the table are the ones registration requires; workspace-level roles such as workspace admin or CAN_MANAGE on a cluster do not appear among them. The usual fix is to grant CREATE MODEL on the destination schema, and to make sure USE CATALOG and USE SCHEMA are also in place. You can grant these in Catalog Explorer or with SQL:

    Grant the schema-level privilege that lets a principal create registered modelssql
    GRANT CREATE MODEL ON SCHEMA <schema-name> TO <principal>

    Automated workflows are checked the same way. The principal that runs a scheduled training job needs these grants itself, because the job's identity is the one that performs the registration.

    One more fix applies when registration fails with an authorization error that a grant does not explain: set the environment variable MLFLOW_USE_DATABRICKS_SDK_MODEL_ARTIFACTS_REPO_FOR_UC to True in a notebook cell with os.environ. Its name points at what it switches: MLflow then goes through the Databricks SDK's model artifacts repository for Unity Catalog when it uploads model files. It cannot be used for models shared with OpenSharing that use default storage. On Databricks on AWS GovCloud the variable is required.

    Checkpoint 4 of 8· Check yourself

    A scheduled training job runs as a service principal. The principal is a workspace admin, has CAN_MANAGE on the job cluster, and already holds USE CATALOG on dev and USE SCHEMA on dev.forecast. The job is the first to register under dev.forecast.demand_model, and its mlflow.register_model call keeps failing with permission denied. Which change fixes it?

    Checkpoint 5 of 8· Exam question

    A workspace administrator with full workspace admin rights repeatedly gets a permission-denied error when running mlflow.register_model(model_uri, "ops.ml.models.fraud_detector") against the ops.ml.models schema. What privilege must be granted for the registration to succeed?

    Sources12

    4.Registering with register_model or at log time

    mlflow.register_model takes two arguments: a source URI that points at a logged model, and the three-level destination name. The source is the same model URI that logging produced, as explained in logged models and model URIs (runs:/, models:/). Which URI form you pass depends on the MLflow version that logged the model:

    Source URI forms accepted by mlflow.register_model
    MLflow versionSource URIExample call
    MLflow 3models:/<model_id>mlflow.register_model("models:/<model_id>", "prod.ml_team.iris_model")
    MLflow 2.xruns:/<run_id>/modelmlflow.register_model("runs:/<run_id>/model", "prod.ml_team.iris_model")

    Use register_model when registration is a separate decision made after training. A common example is comparing several runs and then registering only the winner. The call creates the registered model if the name does not exist yet, so you do not need to create it first in a UI. With MLflow 2.x, the run ID typically comes from the run you just finished:

    Build a runs:/ URI from the last run and register it under a three-level namepython
    autolog_run = mlflow.last_active_run()
    model_uri = "runs:/{}/model".format(autolog_run.info.run_id)
    mlflow.register_model(model_uri, "prod.ml_team.iris_model")

    The alternative is to log and register in a single step by passing registered_model_name to mlflow.<flavor>.log_model. This suits pipelines where every training run should produce a version. The parameter registers straight into Unity Catalog, and the documented form is the full three-level name. A bare iris_model leaves the catalog and schema to be filled in from the workspace default, and that default is in Unity Catalog only on some workspaces. Combining the name with input_example also covers the signature requirement in the same call:

    Log, infer a signature, and register in one log_model call (MLflow 3)python
        mlflow.sklearn.log_model(
            sk_model=clf,
            name="model",
            # The signature is automatically inferred from the input example and its predicted output.
            input_example=input_example,
            # Use three-level name to register model in Unity Catalog.
            registered_model_name="prod.ml_team.iris_model",
        )

    The two routes hand back different objects. mlflow.register_model returns a ModelVersion, whose name and version attributes identify what was created. log_model returns model info, and the registered version is read from model_info.registered_model_version.

    The objective's Client API also has a class form. MlflowClient takes its own registry URI, so a client can be bound to Unity Catalog without changing the notebook-wide setting. Its create_model_version method adds a version to a Unity Catalog model from a source model URI:

    Bind an MlflowClient to the Unity Catalog registrypython
    uc_client = MlflowClient(registry_uri="databricks-uc")
    Create a version from a source model URI; dst is the three-level destination namepython
    mv = uc_client.create_model_version(dst, placeholder_model)

    create_registered_model is the client method that creates a registered model by name alone, with no version, and it throws an MlflowException if the name already exists. register_model has no such failure, because it creates the model only when it is missing.

    With MLflow 3, the version also carries over everything recorded on the logged model. The parameters and metrics logged with it appear on the Unity Catalog model version page, so the version's numbers can be read from any workspace. You can also register from the UI. On the experiment run page, click Register model, choose Unity Catalog, and pick a destination model. Registration can take time, so refresh the destination model to see when it finishes.

    Checkpoint 6 of 8· Fill the gap

    A pipeline should create a new Unity Catalog version of the iris model from every training run, in the same call that logs the model and infers its signature. The destination is the ml_team schema in the prod catalog. Which value completes the call?

        mlflow.sklearn.log_model(
            sk_model=clf,
            name="model",
            # The signature is automatically inferred from the input example and its predicted output.
            input_example=input_example,
            # Use three-level name to register model in Unity Catalog.
            registered_model_name=" ? ",
        )

    Sources1345

    5.How version numbers are assigned

    You never choose a version number. register_model has no version argument: the registry assigns the number. The first registration under a new name creates the registered model and Version 1, and returns a ModelVersion object. Each later registration under the same name creates the next version and returns that object. To find out which number you got, read it from the returned object or from model_info.registered_model_version after log_model.

    Numbers only go up, and deleting a version does not hand its number back. The official migration script for moving models from the workspace registry to Unity Catalog relies on this. When the source model is missing a version number, the script does not choose that number for the copy. Instead, it creates a placeholder version in Unity Catalog and immediately deletes it, just to move the counter forward. That trick only works if deleting a version leaves the counter where it was.

    The counter belongs to one registered model. When you register the same artifact into dev.ml_team.churn and later into prod.ml_team.churn, you are writing to two separate registered models, each with its own counter. Neither one copies or resets the other's numbering. For a stable name that downstream code can follow from version to version, use an alias. Version numbers are fixed history.

    Checkpoint 7 of 8· Check yourself

    In the workspace registry, a model has versions 1 and 3. Version 2 was deleted long ago. The official migration script copies this model to Unity Catalog. Before it copies version 3, it creates a placeholder version in the Unity Catalog model and deletes it straight away. What would happen if the script skipped that step?

    Checkpoint 8 of 8· Exam question

    Which statement correctly describes model version numbers for a registered model in the Unity Catalog Model Registry?

    Sources54

    Practise it for real

    Train a small model and register it as a new version of a Unity Catalog model using the MLflow client

    1. 1.In a notebook on a Unity Catalog-enabled cluster in Dedicated access mode, run import mlflow and mlflow.set_registry_uri("databricks-uc").

      Why: This makes sure registry calls target Unity Catalog, whatever the workspace's default catalog is.

      You should see: The cell completes with no output.

    2. 2.Confirm, or ask an admin to grant, USE CATALOG and USE SCHEMA on your target catalog and schema, plus CREATE MODEL on the schema. The SQL form is GRANT CREATE MODEL ON SCHEMA followed by your schema name, then TO and your principal.

      Why: Creating a new registered model is checked against these Unity Catalog privileges.

      You should see: Your principal shows CREATE MODEL on the schema in Catalog Explorer.

    3. 3.Inside mlflow.start_run(), train a RandomForestClassifier on the iris dataset and log it with mlflow.sklearn.log_model, passing input_example=X.iloc[[0]].

      Why: Unity Catalog model versions need a signature, and the input example lets MLflow infer one.

      You should see: The run page lists a logged model with a signature.

    4. 4.Call mlflow.register_model with the logged model's URI and a three-level destination name made of your catalog, your schema and iris_model, joined by dots.

      Why: The first registration under a new name creates the registered model as well as its first version.

      You should see: A ModelVersion object with version 1 is returned.

    5. 5.Run the same registration again and note the version number.

      Why: The registry assigns version numbers itself, one per registration.

      You should see: A new version, number 2, appears under the same registered model.

    Stuck? Get a nudge

    If you get a permission-denied error, check the grants on the schema before anything else. Workspace-level permissions are not what this call checks.

    Sources

    (5)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Using the prod catalog doesn't necessarily mean that the model version serves production traffic.”
      ↩︎ What registration creates in Unity Catalog
      “New ML model versions in UC must have a model signature.”
      ↩︎ What registration creates in Unity Catalog
      “If your workspace is not enabled for Unity Catalog, the functionality on this page is not available.”
      ↩︎ What registration creates in Unity Catalog
      “models are automatically created in and loaded from the default catalog. You do not have to perform this step.”
      ↩︎ Pointing the MLflow client at databricks-uc
      “The default registry URI in MLflow 3 is databricks-uc, meaning the MLflow Model Registry in Unity Catalog will be used.”
      ↩︎ Pointing the MLflow client at databricks-uc
      “For ML workloads, this means that the compute's access mode must be Dedicated (formerly single user).”
      ↩︎ Pointing the MLflow client at databricks-uc
      “With Databricks Runtime 15.4 LTS ML and above, you can also use dedicated group access mode.”
      ↩︎ Pointing the MLflow client at databricks-uc
      “you need the CREATE MODEL and USE SCHEMA privileges on the enclosing schema, and USE CATALOG privilege on the enclosing catalog.”
      ↩︎ Privileges that must exist before register_model succeeds
      “CREATE MODEL or CREATE FUNCTION privilege on the schema.”
      ↩︎ Privileges that must exist before register_model succeeds
      “This setting might also be useful in other cases if you run into authorization issues when trying to register a model.”
      ↩︎ Privileges that must exist before register_model succeeds
      “To register a model, use MLflow Client API register_model() method.”
      ↩︎ Registering with register_model or at log time
      “The registered model will be created if it doesn't already exist”
      ↩︎ Registering with register_model or at log time
      “Then, pass the three-level name of the model to MLflow APIs, in the form <catalog>.<schema>.<model>.”
      ↩︎ Key concept
      “For other workspaces, the MLflow Python client creates models in the Databricks workspace model registry.”
      ↩︎ Exam trap 1
      “you need the CREATE MODEL and USE SCHEMA privileges on the enclosing schema, and USE CATALOG privilege on the enclosing catalog.”
      ↩︎ Exam trap 2
      “using registered_model_name in the log_model() call registers the model to Unity Catalog, so you must provide the full three-level name”
      ↩︎ Exam trap 5
      “For other workspaces, the MLflow Python client creates models in the Databricks workspace model registry.”
      ↩︎ Prediction
      “To create a new registered model, you need the CREATE MODEL and USE SCHEMA privileges on the enclosing schema”
      ↩︎ Checkpoint
    2. 2.
      “the principal must be the owner of the registered model, or have the CREATE MODEL VERSION privilege on it.”
      ↩︎ Privileges that must exist before register_model succeeds
      “the principal must be the owner of the registered model, or have the CREATE MODEL VERSION privilege on it.”
      ↩︎ Exam trap 3
    3. 3.
      “all performance data from the original LoggedModel becomes visible on the UC Model Version page”
      ↩︎ Registering with register_model or at log time
    4. 4.
      “uc_client = MlflowClient(registry_uri="databricks-uc")”
      ↩︎ Registering with register_model or at log time
      “the version counter on the UC model, so the version numbers on the UC”
      ↩︎ How version numbers are assigned
      “Create and immediately delete a placeholder model version to increment”
      ↩︎ Exam trap 4
      “Create and immediately delete a placeholder model version to increment”
      ↩︎ Prediction
    5. 5.
      “To create a new registered model with the specified name, use the MLflow Client API create_registered_model() method.”
      ↩︎ Registering with register_model or at log time
      “If a registered model with the name doesn't exist, the method registers a new model, creates Version 1, and returns a ModelVersion MLflow object.”
      ↩︎ How version numbers are assigned
      “If a registered model with the name exists already, the method creates a new model version and returns the version object.”
      ↩︎ How version numbers are assigned

    Ready to test yourself?

    Practise Databricks Certified Machine Learning Associate in quiz mode.

    Spotted a mistake, or was something unclear? Tell us.