Azure Event Hubs · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services

A telemetry application sends events from many IoT devices to Azure Event Hubs. Events from each individual device must be processed in order, but ev…

Practice question from Azure Event Hubs (AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services), with the correct answer and a step-by-step solution.

easy · MCQ · Q-7D669A

A telemetry application sends events from many IoT devices to Azure Event Hubs. Events from each individual device must be processed in order, but events from different devices should be processed in parallel. What should the producer use as the event partition key?

  1. A.The device IDCorrect answer
  2. B.A randomly generated GUID for every event
  3. C.The event body size
  4. D.The consumer group name

Solution

Using the device ID as the partition key routes events from the same device to the same partition, preserving their order within that partition. Events from different devices can be distributed across partitions for parallel processing.

More from Azure Event Hubs

All of Azure Event Hubs

Practise more Connect to and Consume Azure and Third-party Services

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed