Microsoft Azure IoT Developer — Question 40
You have an Azure IoT hub that receives messages from an IoT device. The messages are serialized as Protobuf.
You need the IoT hub to route the messages.
What should you do first?
Answer options
- A. From the Azure portal, add desired properties to the device twin.
- B. Configure the IoT device to add application properties to the messages.
- C. From the Azure portal, configure the IoT hub to add message enrichments.
- D. Configure the IoT device to add ASCII-encoded properties to the body of the messages.
Correct answer: A
Explanation
The correct answer is A because adding desired properties to the device twin is essential for routing messages based on those properties. Options B, C, and D do not directly address the routing mechanism needed for the IoT hub to process messages effectively.