Chapter 3 · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services
Azure Event Hubs
20 practice questions · 5 marks weightage
Practice questions
- Question 1Q-7D669ASee the answer and solution
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 ID
- B.A randomly generated GUID for every event
- C.The event body size
- D.The consumer group name
- Question 2Q-C0AF93See the answer and solution
A company has two independent applications that must each receive every event from an Azure Event Hub. The applications should maintain separate processing positions and should not affect each other's checkpointing. What configuration should you use?
- A.Use one consumer group and one EventProcessorClient shared by both applications
- B.Use a separate consumer group for each application, with checkpoint storage for each processing workflow
- C.Use one partition for each application and keep both applications in the $Default consumer group
- D.Create a new Event Hub for each application but use the same consumer group name
- Question 3Q-575662See the answer and solution
An organization must retain a raw copy of all events for later batch analytics. The copy must be written automatically to Azure Blob Storage or Azure Data Lake Storage Gen2, even when no custom event consumer is running. Which Azure Event Hubs feature should be configured?
- A.Event Hubs Capture with a configured storage destination and capture window
- B.A consumer group with a longer checkpoint interval
- C.A dead-letter queue on the event hub
- D.An EventProcessorClient that writes checkpoints to Azure Table Storage
- Question 4Q-605DBBSee the answer and solution
A .NET application must send telemetry to Azure Event Hubs by using a Microsoft Entra managed identity. Which built-in Azure role should be assigned to the identity at the Event Hubs namespace or event hub scope?
- A.Azure Event Hubs Data Sender
- B.Azure Event Hubs Data Receiver
- C.Storage Blob Data Contributor
- D.Azure Service Bus Data Owner
- Question 5Q-E9B0FESee the answer and solution
An EventProcessorClient receives an event and invokes an asynchronous business operation that writes the event to a database. Which processing sequence provides at-least-once processing behavior when checkpoints are used?
- A.Update the checkpoint, then perform the database operation.
- B.Perform the database operation successfully, then update the checkpoint and await its completion.
- C.Update the checkpoint only when the Event Hubs client starts.
- D.Perform the database operation and never update the checkpoint.
15 more questions on Azure Event Hubs
Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed