Databricks Machine Learning Professional Question 111
Select 3You are tasked with setting up a webhook in Databricks to trigger an external system when a specific job completes. Which of the following steps must you perform to correctly configure the webhook integration?
- A
Create a webhook token and store it securely for authentication purposes.
- B
Configure the webhook URL in the job settings under the 'Webhook Notifications' section.
- C
Enable the 'Allow Webhooks' option in the Databricks workspace settings.
- D
Set up a Databricks job cluster to host the webhook listener.
- E
Test the webhook by running the job to verify the external system receives notifications.
Show answer and explanation
Correct answers: A, B, E
Explanation
To connect a webhook with a Databricks job, you need to create a webhook token for secure communication, configure the webhook URL in the job settings, and test the integration to ensure it functions as expected. There is no specific workspace-level option to enable webhooks nor a need to set up a Databricks cluster for hosting the listener, as the listener is external to Databricks.
- A. Correct.
Correct: Creating a webhook token is necessary for securing communication between Databricks and the external system. This token is used for authentication.
- B. Correct.
Correct: The webhook URL must be specified in the job settings so that Databricks knows where to send the notification upon job completion.
- C. Incorrect.
Incorrect: There is no explicit 'Allow Webhooks' option in Databricks workspace settings. Webhooks are configured directly in the job settings.
- D. Incorrect.
Incorrect: A Databricks job cluster is not required to host the webhook listener. The webhook listener is part of the external system.
- E. Correct.
Correct: Testing the webhook ensures that the configuration is correct and the external system is receiving notifications as expected.