Azure Event Hubs · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services
A company has two independent applications that must each receive every event from an Azure Event Hub. The applications should maintain separate proc…
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.
medium · MCQ · Q-C0AF93
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 workflowCorrect answer
- 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
Solution
A consumer group provides an independent view of an event stream, including its own offsets and checkpoints. Each application should use its own consumer group so that it can read all events independently and resume processing from its own checkpoints.
More from Azure Event Hubs
- A telemetry application sends events from many IoT devices to Azure Event Hubs. Events from each individual device must be processed in ord…
- 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