A payment processing microservice sends order events to an Azure Service Bus queue. Downstream consumers occasionally crash mid-processing, and in that case the message must be retried. However, if the same message fails more than 5 times, it must be moved to a separate queue for manual review without blocking healthy messages. Which Service Bus feature handles this automatically?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Configure the queue's MaxDeliveryCount to 5; messages that exceed this are automatically moved to the dead-letter queue (DLQ)

Azure Service Bus has a built-in dead-letter queue (DLQ) per queue/subscription. When a message's delivery count exceeds the configured MaxDeliveryCount, it is automatically moved ...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure Service Bus

A payment processing microservice sends order events to an Azure Service Bus queue. Downstream consumers occasionally crash mid-processing, and in that case the message must be retried. However, if the same message fails more than 5 times, it must be moved to a separate queue for manual review without blocking healthy messages. Which Service Bus feature handles this automatically?

โœ“ Correct Answer & ExplanationAzure Service Bus

Correct Answer

Configure the queue's MaxDeliveryCount to 5; messages that exceed this are automatically moved to the dead-letter queue (DLQ)

Why This Answer Is Correct

Azure Service Bus has a built-in dead-letter queue (DLQ) per queue/subscription. When a message's delivery count exceeds the configured MaxDeliveryCount, it is automatically moved to the dead-letter sub-queue, where it can be inspected and reprocessed separately.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Service Bus โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure Service Bus is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.