Correct Answer: Set the device ID as the partition key when sending events
Event Hubs guarantees ordering within a partition. By using the device ID as the partition key, all events from a specific device are routed to the same partition. A consumer readi...
Correct Answer
Set the device ID as the partition key when sending events
Why This Answer Is Correct
Event Hubs guarantees ordering within a partition. By using the device ID as the partition key, all events from a specific device are routed to the same partition. A consumer reading that partition sees all device events in order. This is the standard pattern for per-device ordering at massive scale.
This question evaluates your knowledge of Azure Event Hubs โ a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure Event Hubs 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.
You are designing an IoT ingestion pipeline using Azure Event Hubs to process real-time telemetry from 50,000 devices. Downstream services need to process events in the order they were sent by each device. How should you ensure that all telemetry events from a specific device are sent to and processed in sequence from the same partition?
Your IoT solution uses Event Hubs to ingest device telemetry. A downstream processing service needs to re-read all telemetry from the past 3 days to replay a failed batch analytics job. Which Event Hubs feature supports this?