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

A worker receives a message from an Azure Service Bus queue in PeekLock mode, but the message contains invalid data and cannot be processed. The queu…

Practice question from Azure Service Bus (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.

easy · MCQ · Q-6E18F0

A worker receives a message from an Azure Service Bus queue in PeekLock mode, but the message contains invalid data and cannot be processed. The queue's MaxDeliveryCount is set to 5. What happens after the message exceeds the allowed delivery attempts?

  1. A.The message is automatically deleted permanently.
  2. B.The message is moved to the queue's dead-letter subqueue.Correct answer
  3. C.The message is transferred to the next available queue.
  4. D.The message is returned to the queue with its delivery count reset.

Solution

When a message exceeds MaxDeliveryCount, Azure Service Bus moves it to the queue's dead-letter subqueue instead of delivering it again. Applications can inspect and handle dead-lettered messages separately.

More from Azure Service Bus

All of Azure Service Bus

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