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?
- A.The device IDCorrect answer
- B.A randomly generated GUID for every event
- C.The event body size
- 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
- A company has two independent applications that must each receive every event from an Azure Event Hub. The applications should maintain sep…
- An organization must retain a raw copy of all events for later batch analytics. The copy must be written automatically to Azure Blob Storag…
- A .NET application must send telemetry to Azure Event Hubs by using a Microsoft Entra managed identity. Which built-in Azure role should be…
- An EventProcessorClient receives an event and invokes an asynchronous business operation that writes the event to a database. Which process…
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 freeFree to start · No credit card needed