Databricks Data Engineer Associate Question 457
Select 3You are tasked with setting up an alert for a Databricks job to notify your team whenever a task fails. Which of the following steps should you take to create this alert?
- A
Navigate to the 'Jobs' tab in the Databricks workspace and select the specific job.
- B
Click on the 'Tasks' tab and select the task where you want to set the alert.
- C
Go to the 'Alerts' tab in the Databricks workspace and create a new alert for the job.
- D
Define the condition as 'Task Run Status' and set it to 'Failed' in the alert configuration.
- E
Set up an email notification or webhook to deliver the alert to the team.
Show answer and explanation
Correct answers: A, D, E
Explanation
To create an alert for a failed task in a Databricks job, you need to start by navigating to the 'Jobs' tab, selecting the job, and configuring an alert condition based on the 'Task Run Status' set to 'Failed'. Additionally, you need to define a notification mechanism, such as an email or webhook, to ensure the team receives the alert. Task-level configuration is not required, and the 'Alerts' tab is unrelated to job task alerts.
- A. Correct.
Correct. You need to start by navigating to the 'Jobs' tab in the Databricks workspace to find the specific job you want to monitor.
- B. Incorrect.
Incorrect. Alerts are not set at the task level directly. They are configured at the job level using alerting functionality.
- C. Incorrect.
Incorrect. While there is an 'Alerts' tab in Databricks, it is not used to configure task failure alerts. Alerts for tasks are set up via job notifications.
- D. Correct.
Correct. Defining the condition as 'Task Run Status' and setting it to 'Failed' ensures that the alert triggers when a task fails.
- E. Correct.
Correct. Setting up a notification mechanism, such as an email or webhook, ensures that the alert is delivered to the intended team members.