Databricks Machine Learning Professional Question 106
Select 3You are working on a machine learning project in Databricks, where your team uses MLflow to manage the lifecycle of models. You want to create a Databricks Job that is automatically triggered whenever a model transitions to the 'Production' stage in the MLflow Model Registry. Which of the following steps must you take to achieve this?
- A
Use the MLflow Model Registry Webhooks feature to configure a webhook that listens for stage transition events.
- B
Create a Databricks notebook that defines the logic to be executed when the model transitions to the 'Production' stage.
- C
Configure a Databricks Job to be triggered by the webhook created for the stage transition event.
- D
Manually schedule the Databricks Job to run at regular intervals to check for stage transitions.
- E
Ensure that the webhook is associated with the correct model version in the MLflow Model Registry.
Show answer and explanation
Correct answers: A, B, C
Explanation
To create a Job that triggers when a model transitions to the 'Production' stage, you must leverage the MLflow Model Registry Webhooks feature to listen for stage transition events. You also need to create a Databricks notebook to define the logic to be executed during the Job and configure the Job to be triggered by the webhook. Manually scheduling the Job or associating the webhook with a specific model version are not required steps.
- A. Correct.
This is correct because MLflow Model Registry Webhooks allow you to listen for specific events, such as a model stage transition. Setting up a webhook is a necessary step to automate the triggering of the Job.
- B. Correct.
This is correct because the Databricks Job needs to execute some logic when the model transitions to 'Production'. This logic can be defined in a Databricks notebook.
- C. Correct.
This is correct because the Databricks Job needs to be configured to be triggered by the webhook associated with the stage transition event.
- D. Incorrect.
This is incorrect because manually scheduling the Job defeats the purpose of automating the process and does not leverage the webhook feature.
- E. Incorrect.
This is incorrect because webhooks are created at the model level, not the model version level. Associating the webhook with the correct model (not version) is sufficient.