IoT sensor data arrives in Azure IoT Hub. You need to detect when the average temperature across all sensors exceeds 75°C for any 5-minute window, and send an alert immediately when that threshold is crossed. Which Azure service should you use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Azure Stream Analytics with a tumbling window query over IoT Hub input

Azure Stream Analytics is designed for real-time stream processing with time-based windowing. A tumbling window query on the IoT Hub input can compute the average temperature over ...

📋Part of Microsoft Certified: Azure IoT Developer Specialty (AZ-220) · Azure Certification Practice
Real Exam ScenarioAzure Stream Analytics

IoT sensor data arrives in Azure IoT Hub. You need to detect when the average temperature across all sensors exceeds 75°C for any 5-minute window, and send an alert immediately when that threshold is crossed. Which Azure service should you use?

✓ Correct Answer & ExplanationAzure Stream Analytics

Correct Answer

Azure Stream Analytics with a tumbling window query over IoT Hub input

Why This Answer Is Correct

Azure Stream Analytics is designed for real-time stream processing with time-based windowing. A tumbling window query on the IoT Hub input can compute the average temperature over 5-minute windows and output an alert to Service Bus, Event Hubs, or another sink when the threshold is exceeded — all with minimal latency and no polling.

📚 What This Question Tests

This question evaluates your knowledge of Azure Stream Analytics — a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure Stream Analytics is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.