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?
- A.Update the checkpoint, then perform the database operation.
- B.Perform the database operation successfully, then update the checkpoint and await its completion.Correct answer
- C.Update the checkpoint only when the Event Hubs client starts.
- 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
- A telemetry application sends events from many IoT devices to Azure Event Hubs. Events from each individual device must be processed in ord…
- 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…
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