Your IoT Hub receives messages from both temperature sensors and pressure sensors. Temperature messages have a custom property 'sensorType=temperature'. You need to route temperature messages to Azure Blob Storage and pressure messages to a Service Bus Queue, without duplicating messages. How do you configure this?

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

Correct Answer: Create two IoT Hub message routes: one with condition 'sensorType=temperature' to Blob Storage, one with condition 'sensorType=pressure' to Service Bus. Disable the fallback route.

IoT Hub message routing evaluates routes in order and sends a message to the first matching endpoint. By creating two explicit routes with mutually exclusive conditions and disabli...

๐Ÿ“‹Part of Microsoft Certified: Azure IoT Developer Specialty (AZ-220) ยท Azure Certification Practice
Real Exam ScenarioAzure IoT Hub

Your IoT Hub receives messages from both temperature sensors and pressure sensors. Temperature messages have a custom property 'sensorType=temperature'. You need to route temperature messages to Azure Blob Storage and pressure messages to a Service Bus Queue, without duplicating messages. How do you configure this?

โœ“ Correct Answer & ExplanationAzure IoT Hub

Correct Answer

Create two IoT Hub message routes: one with condition 'sensorType=temperature' to Blob Storage, one with condition 'sensorType=pressure' to Service Bus. Disable the fallback route.

Why This Answer Is Correct

IoT Hub message routing evaluates routes in order and sends a message to the first matching endpoint. By creating two explicit routes with mutually exclusive conditions and disabling the built-in fallback route, you ensure temperature messages go only to Blob Storage and pressure messages go only to Service Bus with no duplication.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure IoT Hub โ€” a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure IoT Hub 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.