QuestionQ128

VerifiedMonitoring and Alerting

The data engineering team has set up a Databricks SQL query and alert to monitor values in a Delta Lake table. The recent_sensor_recordings table contains an identifying sensor_id, along with the timestamp and temperature for the most recent 5 minutes of recordings.

The following query creates the alert:

Question Image

The query refreshes every minute and always finishes in under 10 seconds. The alert triggers when mean(temperature) > 120. Notifications are configured to be sent no more than once every 1 minute.

If the alert sends notifications for 3 consecutive minutes and then stops, which statement must be true?

Explanation

Because the query groups the readings by sensor_id, MEAN(temperature) is calculated separately for each sensor. A triggered alert condition on that result means at least one sensor's average temperature exceeded 120 in each of the three consecutive query executions. Databricks SQL alerts evaluate a defined condition against scheduled query results.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!