LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Databricks Certified Data Engineer - Associate

Databricks Certified Data Engineer - Associate

Get started today

Ultimate access to all questions.


You are tasked with identifying how often a temperature sensor exceeds a threshold temperature of 100.00 for each device. Each row in the dataset contains 5 readings collected every 5 minutes. Complete the SQL query by filling in the blanks with the appropriate functions.

Schema: deviceId INT, deviceTemp ARRAY, dateTimeCollected TIMESTAMP

SELECT deviceId, __ (__ (__(deviceTemp], i -> i > 100.00))) FROM devices GROUP BY deviceId

Real Exam




Explanation:

The correct answer involves using the ARRAY_FILTER function to isolate temperatures exceeding the threshold, SIZE to count these instances, and SUM to aggregate the counts per device. This approach efficiently identifies the frequency of threshold exceedances for each device.

Powered ByGPT-5