A Data Engineer is configuring alerts for a critical production job. Which TWO actions are required to successfully set up an email notification for a job failure?
Trap 1: Create an Alert object in the SQL workspace linked to the job ID.
Alert objects in the Databricks SQL workspace are specifically designed for query result monitoring, not for managing individual job run states. While they offer robust alerting capabilities, they are not the appropriate mechanism for monitoring the lifecycle of a discrete job or task.
Trap 2: Add the 'on_failure' trigger to the Jobs API payload for the…
The Jobs API allows for granular control over notification settings. By defining an 'on_failure' email configuration in the API payload, engineers can programmatically ensure that failures trigger immediate alerts, which is essential for CI/CD pipelines and automated infrastructure-as-code deployments of production data workflows.
Trap 3: Set up a System Table audit log trigger to monitor job state…
System tables provide audit logs for security and governance, not for real-time notification of job statuses. Relying on audit logs for operational alerting introduces significant latency and complexity, as audit events are not intended for immediate operational monitoring or incident response workflows.
- A
Create an Alert object in the SQL workspace linked to the job ID.
Why it fails: Alert objects in the Databricks SQL workspace are specifically designed for query result monitoring, not for managing individual job run states. While they offer robust alerting capabilities, they are not the appropriate mechanism for monitoring the lifecycle of a discrete job or task.
- B
Configure the 'Notifications' section in the Job settings to include the email address.
The Job UI contains a dedicated 'Notifications' section where you can specify email addresses to receive alerts for various run events like starts, successes, or failures. This is the primary method for ensuring stakeholders are notified directly whenever a job fails to complete correctly.
- C
Add the 'on_failure' trigger to the Jobs API payload for the specific task.
Why it fails: The Jobs API allows for granular control over notification settings. By defining an 'on_failure' email configuration in the API payload, engineers can programmatically ensure that failures trigger immediate alerts, which is essential for CI/CD pipelines and automated infrastructure-as-code deployments of production data workflows.
- D
Set up a System Table audit log trigger to monitor job state changes.
Why it fails: System tables provide audit logs for security and governance, not for real-time notification of job statuses. Relying on audit logs for operational alerting introduces significant latency and complexity, as audit events are not intended for immediate operational monitoring or incident response workflows.
- E
Enable the 'Notify on task failure' checkbox in the cluster configuration.
Why it fails: Cluster configuration defines the hardware and runtime environment, not the operational alerts for a specific job or task. Notifications belong to the job orchestration layer, and associating them with clusters would result in redundant or misdirected alerts when multiple jobs use the same cluster.