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

An EventProcessorClient receives an event and invokes an asynchronous business operation that writes the event to a database. Which processing sequen…

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-E9B0FE

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?

  1. A.Update the checkpoint, then perform the database operation.
  2. B.Perform the database operation successfully, then update the checkpoint and await its completion.Correct answer
  3. C.Update the checkpoint only when the Event Hubs client starts.
  4. D.Perform the database operation and never update the checkpoint.

Solution

A checkpoint should be written after successful processing. If the application fails before checkpointing, the event can be delivered again, producing at-least-once behavior. Checkpointing first can cause an event to be skipped after a failure.

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