Correct Answer: Use an Azure Function triggered by IoT Hub Event Hub-compatible endpoint to parse telemetry and call the Digital Twins API to update the twin
The standard pattern is: IoT Hub → Azure Function (triggered via Event Hub-compatible endpoint) → Azure Digital Twins REST API. The function parses the device telemetry, maps the d...
Correct Answer
Use an Azure Function triggered by IoT Hub Event Hub-compatible endpoint to parse telemetry and call the Digital Twins API to update the twin
Why This Answer Is Correct
The standard pattern is: IoT Hub → Azure Function (triggered via Event Hub-compatible endpoint) → Azure Digital Twins REST API. The function parses the device telemetry, maps the device ID to the correct twin instance, and uses the Digital Twins SDK/API to update the relevant twin property. There is no direct native integration between IoT Hub and Digital Twins.
This question evaluates your knowledge of Azure Digital Twins — a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure Digital Twins 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.