Certified Machine Learning Professional Exam QuestionsBrowse all questions from this exam

Certified Machine Learning Professional Exam - Question 56


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?

Show Answer
Correct Answer: CD

To accomplish the task of triggering the webhook whenever a model version transitions into any MLflow Model Registry stage, the appropriate event to use in the job_json is 'MODEL_VERSION_TRANSITIONED_STAGE'. This event encompasses all transitions, including to staging and production. The other options, such as 'MODEL_VERSION_TRANSITIONED_TO_STAGING' or 'MODEL_VERSION_TRANSITIONED_TO_PRODUCTION,' would only trigger for specific stage transitions, not all possible stages.

Discussion

3 comments
Sign in to comment
GVR76Option: D
Jan 8, 2024

The answer is D. "MODEL_VERSION_TRANSITIONED_STAGE". Explanation: Webhook Trigger Events: The events argument in create_registry_webhook specifies which events will activate the webhook. General Stage Transition: To trigger the webhook for model version transitions into any stage, we need the general event "MODEL_VERSION_TRANSITIONED_STAGE". This encompasses transitions to all stages, not just specific ones.

IT3008Option: D
Jan 16, 2024

Answer: D

victorcolomeOption: D
Jan 19, 2024

Answer is D. Check Webhook events documentation: https://docs.databricks.com/en/mlflow/model-registry-webhooks.html#webhook-events