Question 1
A machine learning engineer is attempting to create a webhook that will trigger a Databricks Job job_id when a model version for model model transitions into any MLflow Model Registry stage.
They have the following incomplete code block:

Which of the following lines of code can be used to fill in the blank so that the code block accomplishes the task?
- AOption A:
"MODEL_VERSION_CREATED"
- BOption B:
"MODEL_VERSION_TRANSITIONED_TO_PRODUCTION"
- COption C:
"MODEL_VERSION_TRANSITIONED_TO_STAGING"
- DOption D:
"MODEL_VERSION_TRANSITIONED_STAGE"
- EOption E:
"MODEL_VERSION_TRANSITIONED_TO_STAGING",
"MODEL_VERSION_TRANSITIONED_TO_PRODUCTION"
Show answer and explanation
Correct answer: D
The correct line of code is “MODEL_VERSION_TRANSITIONED_STAGE”, which is the name of the event that occurs when a model version transitions to any stage in the MLflow Model Registry. This event can be used to trigger a webhook that will execute a Databricks Job based on the model version and the stage it transitions to. The other options are either invalid event names or too specific for the task.
References: MLflow Model Registry Webhooks , MLflow Model Registry Events