Databricks Certified Machine Learning Associate · Free Practice Question Easy

Question 1

A data scientist is using MLflow to manage machine learning experiments and versions. They want to update the metadata of an existing model version, such as changing its description or adding tags.

Which MLflow operation should they use?

  • A

    mlflow.update_model_metadata

  • B

    mlflow.register_model

  • C

    mlflow.update_model_version

  • D

    mlflow.edit_model_version

Reveal correct answer

Correct answer: C

Explanation

Correct Answer:
✅ mlflow.update_model_version

Explanation:

In MLflow Model Registry, the update_model_version() method is used to update metadata of an existing model version, such as:

  • Changing its description

  • Adding or modifying tags

  • Updating other metadata fields

This allows data scientists to manage model documentation and tracking efficiently without re-registering a new version.

Example: Updating a Model Version’s Metadata in MLflow

  • update_model_version() updates the model version's description.

  • set_model_version_tag() adds tags for better tracking.

Why Other Options Are Incorrect?

  1. mlflow.update_model_metadata

    • Incorrect, because no such function exists in MLflow.

    • Metadata updates are done using update_model_version() instead.

  2. mlflow.register_model

    • Incorrect, because registering a model creates a new model version, rather than updating an existing one.

  3. mlflow.edit_model_version

    • Incorrect, because this function does not exist in MLflow.

    • The correct function is update_model_version().

Final Answer:

✅ Use mlflow.update_model_version() to modify metadata, descriptions, and tags for an existing MLflow model version.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need