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?

  1. A.Use one consumer group and one EventProcessorClient shared by both applications
  2. B.Use a separate consumer group for each application, with checkpoint storage for each processing workflowCorrect answer
  3. C.Use one partition for each application and keep both applications in the $Default consumer group
  4. 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

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