Databricks Machine Learning Professional exam dumps

Databricks Machine Learning Professional practice question 120 of 280

Databricks Certified Machine Learning Professional. Professional level, Databricks. Free question with the correct answer and a full explanation.

Databricks Machine Learning Professional Question 120

Select 2

You are managing a Databricks MLflow experiment and need to list all the webhooks associated with the experiment. Additionally, you want to delete a specific webhook by its ID. Which of the following steps should you take to achieve this?

  1. A

    Use the mlflow.list_webhooks() function to retrieve all webhooks and their details.

  2. B

    Use the MLflow REST API endpoint GET /api/2.0/mlflow/registry-webhooks/list to list all webhooks for a model.

  3. C

    Use the MLflow REST API endpoint DELETE /api/2.0/mlflow/registry-webhooks/delete with the webhook ID to delete the specific webhook.

  4. D

    Use the mlflow.delete_webhook() function to remove the webhook by ID.

  5. E

    Use the Databricks CLI command databricks mlflow webhooks delete to delete all webhooks associated with a model.

Show answer and explanation

Correct answers: B, C

Explanation

Managing MLflow webhooks, such as listing and deleting them, requires using the MLflow REST API. The GET /api/2.0/mlflow/registry-webhooks/list endpoint is used to list all webhooks for a model, while the DELETE /api/2.0/mlflow/registry-webhooks/delete endpoint is used to delete a specific webhook by its ID. These operations are not supported directly through the Python client or Databricks CLI.

  • A. Incorrect.

    Incorrect: There is no mlflow.list_webhooks() function in the MLflow Python client. Listing webhooks requires using the REST API.

  • B. Correct.

    Correct: The MLflow REST API provides the GET /api/2.0/mlflow/registry-webhooks/list endpoint to list all webhooks for a given model. This is the correct approach to retrieve webhook details.

  • C. Correct.

    Correct: The MLflow REST API provides the DELETE /api/2.0/mlflow/registry-webhooks/delete endpoint to delete a specific webhook by its unique ID. This is the correct approach for deletion.

  • D. Incorrect.

    Incorrect: There is no mlflow.delete_webhook() function in the MLflow Python client. Webhook deletion must be done via the REST API.

  • E. Incorrect.

    Incorrect: The Databricks CLI does not have a direct command for listing or deleting MLflow webhooks. Managing webhooks is currently only supported via the REST API.

Timed practice exam

Take a Databricks Machine Learning Professional practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam