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?
- A.The message is automatically deleted permanently.
- B.The message is moved to the queue's dead-letter subqueue.Correct answer
- C.The message is transferred to the next available queue.
- 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
- An order-processing application must send the same order notification independently to an email service, an inventory service, and an analy…
- A .NET application uses an Azure.Messaging.ServiceBus ServiceBusProcessor with AutoCompleteMessages set to false and the default PeekLock r…
- A billing system sends multiple messages for each customer and sets the same SessionId for all messages belonging to that customer. The app…
- An application may retry sending an invoice message because of a transient network failure. The application sets the same MessageId for eac…
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