Which client call adds a tag to a registered model, and which removes it?
- Exam domain
- Databricks Machine Learning36% of the exam
- Difficulty
- Easy
- In this mock
- 18 questions on this domainPractise this domain
Why the exam asks this
Databricks Machine Learning (36% of the exam)
Objective in the exam guide: Set or remove a tag for a model
Setting and removing model tags is named.
Why C is the answer
client.set_registered_model_tag to add and client.delete_registered_model_tag to remove
Registered model tags are set with set_registered_model_tag and removed with delete_registered_model_tag. Model versions have matching version-level calls.
Remember: set and delete tag calls.
How it works
Registered models and versions both carry tags.
In detail
- set_ and delete_ tag calls.
- Version-level calls exist too.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Tags cannot be removed once setWrongMost tempting
Tags can be deleted.
Why it tempts: Some metadata is permanent, but tags are not.
B. client.log_param to add and client.log_metric to removeWrong
Params and metrics belong to runs.
C. client.set_registered_model_tag to add and client.delete_registered_model_tag to removeRight
set and delete tag calls.
D. client.create_run(experiment_id, tags={...}) to add and client.delete_run(run_id) to remove the tag againWrong
Runs are unrelated to model tags.
Use case
An illustrative scenario, not a real incident.
Illustrative: a model gets owner=fraud-team, then a stale review tag is removed.
See it in different ways
stateDiagram-v2 state "No tag" as s0 state "Tagged" as s1 [*] --> s0 s0 --> s1: set_registered_model_tag s1 --> s0: delete_registered_model_tag
How to read this chart
- It starts at "No tag".
- From "No tag", "set_registered_model_tag" moves it to "Tagged".
- From "Tagged", "delete_registered_model_tag" moves it to "No tag".
mindmap
root(("Tags"))
n1["Registered model"]
n2["set_registered_model_tag"]
n3["Model version"]
n4["set_model_version_tag"]How to read this chart
- The centre is "Tags".
- "Registered model" covers "set_registered_model_tag".
- "Model version" covers "set_model_version_tag".