You want to automatically append metadata such as the device's physical location (stored in the Device Twin tags) to every telemetry message before it is routed to Azure Cosmos DB. Which feature should you configure?

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

Correct Answer: IoT Hub Message Enrichments

IoT Hub Message Enrichments allow you to append key-value pairs to messages routed to endpoints. You can query Device Twin values, like $twin.tags.location, which are resolved dyna...

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

You want to automatically append metadata such as the device's physical location (stored in the Device Twin tags) to every telemetry message before it is routed to Azure Cosmos DB. Which feature should you configure?

โœ“ Correct Answer & ExplanationAzure IoT Hub

Correct Answer

IoT Hub Message Enrichments

Why This Answer Is Correct

IoT Hub Message Enrichments allow you to append key-value pairs to messages routed to endpoints. You can query Device Twin values, like $twin.tags.location, which are resolved dynamically and attached to routed messages.

๐Ÿ“š 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.