Databricks Machine Learning Professional Question 123
Select 4You are managing webhooks in a Databricks workspace for an MLflow tracking server. You want to list all existing webhooks and delete a specific webhook by its ID. Which of the following steps should you take to achieve this?
- A
Use the
mlflow webhooks listcommand to retrieve all webhooks associated with the tracking server. - B
Use the
MlflowClientclass in the MLflow Python API and call thelist_webhooksmethod to fetch all registered webhooks. - C
Utilize the REST API endpoint
GET /api/2.0/mlflow/webhooks/listto retrieve all webhooks. - D
Use the
MlflowClientclass in the MLflow Python API and call thedelete_webhookmethod with the webhook ID to delete a specific webhook. - E
Use the REST API endpoint
DELETE /api/2.0/mlflow/webhooks/deleteand provide the webhook ID as a parameter to delete a specific webhook.
Show answer and explanation
Correct answers: B, C, D, E
Explanation
To manage webhooks in Databricks for an MLflow tracking server, you can list all webhooks using either the list_webhooks method from the MlflowClient class or the REST API endpoint GET /api/2.0/mlflow/webhooks/list. To delete a webhook, you can use the delete_webhook method from the MlflowClient class or the REST API endpoint DELETE /api/2.0/mlflow/webhooks/delete. These are the supported approaches for managing webhooks in Databricks.
- A. Incorrect.
The
mlflow webhooks listcommand does not exist in the MLflow CLI, so this option is incorrect. - B. Correct.
The
MlflowClientclass provides alist_webhooksmethod in the MLflow Python API, which can be used to retrieve all registered webhooks. This is a valid approach. - C. Correct.
The REST API endpoint
GET /api/2.0/mlflow/webhooks/listis a valid method to list all webhooks associated with a tracking server. - D. Correct.
The
delete_webhookmethod of theMlflowClientclass allows you to delete a webhook by providing its unique ID, making this a correct choice. - E. Correct.
The REST API endpoint
DELETE /api/2.0/mlflow/webhooks/deleteis another valid method to delete a specific webhook by its ID.