Your Azure Digital Twins solution receives real-time temperature readings from IoT Hub. You need to update the temperature property of the corresponding Room twin automatically when a device sends telemetry. What is the recommended architecture?

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

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...

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

Your Azure Digital Twins solution receives real-time temperature readings from IoT Hub. You need to update the temperature property of the corresponding Room twin automatically when a device sends telemetry. What is the recommended architecture?

✓ Correct Answer & ExplanationAzure Digital Twins

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.

📚 What This Question Tests

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.