AZ-204 Practice Question: Service Bus dead-letter queue behavior after…
Messages failing to process are redelivered by Azure Service Bus. After a message has been delivered and abandoned the maximum number of times (MaxDeliveryCount), where does Service Bus move the message?
⚠ Common exam trap
A common mix-up: candidates assume messages are simply deleted or returned to the queue when the delivery count is exceeded, but Azure Service Bus explicitly moves them to a dead-letter sub-queue to ensure no data loss and to provide a mechanism for manual handling.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The message is moved to the dead-letter sub-queue of the original queue
When a message in Azure Service Bus is delivered and abandoned the maximum number of times (as defined by the MaxDeliveryCount property, default 10), the message is automatically moved to the dead-letter sub-queue of the original queue. This dead-letter sub-queue stores messages that cannot be processed successfully, allowing you to inspect and handle them separately without losing the message entirely.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The message is moved to the dead-letter sub-queue of the original queue
Why this is correct
When a message's DeliveryCount property exceeds the MaxDeliveryCount setting on an Azure Service Bus queue or subscription, the Service Bus automatically moves that message to the associated dead-letter sub-queue. This action is performed by the Service Bus runtime itself, ensuring that messages that cannot be processed after multiple attempts are isolated for further inspection. The DeadLetterReason property of the message will be set to 'MaxDeliveryCountExceeded' in the dead-letter queue.
- ✗
The message is permanently deleted from the queue
Why it's wrong here
Permanently deleting a message from the queue upon repeated delivery failure would lead to silent and undetectable data loss, which is unacceptable in reliable messaging systems. Azure Service Bus prioritizes data integrity, and instead of deletion, it employs the dead-letter queue mechanism to preserve problematic messages. This allows administrators or dedicated processes to inspect the message, understand the failure cause, and potentially reprocess or archive it.
- ✗
The message is returned to the front of the queue with its DeliveryCount reset to zero
Why it's wrong here
Returning a message to the front of the queue with its DeliveryCount reset to zero would create an infinite retry loop for 'poison messages' – those that consistently fail processing due to application errors or invalid content. This scenario would effectively block queue consumers, preventing them from processing subsequent valid messages and leading to system stagnation. The MaxDeliveryCount threshold and subsequent dead-lettering are specifically designed to prevent such indefinite retries and ensure system throughput.
- ✗
The message expires and is discarded according to the Time-to-Live setting
Why it's wrong here
Time-to-Live is an independent expiration mechanism. A message can be moved to the dead-letter queue before its TTL expires if MaxDeliveryCount is exceeded. TTL expiry and delivery count are separate conditions, either of which can trigger dead-lettering if the respective setting is enabled.
Go deeper
Related to this question
Learn chapter
Azure Functions Development
Key term
Azure Service Bus
Azure Service Bus is a cloud-based message broker that allows applications, services, and devices to send and receive messages reliably, even when they are not all running at the same time.
Key term
Azure Relay
Azure Relay is a cloud service that securely exposes on-premises web services to the public internet or other cloud applications without opening firewall ports.
About these practice questions
One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.