Courseiva

AZ-204 Practice Question: Connect to and consume Azure services and third-party services

Exhibit

{
  "queues": [
    {
      "name": "orders",
      "maxDeliveryCount": 10,
      "lockDuration": "PT30S",
      "defaultMessageTimeToLive": "PT5M"
    }
  ]
}

Refer to the exhibit. You are creating an Azure Service Bus queue using an ARM template. The requirement is that messages should be automatically dead-lettered after 3 failed delivery attempts. Does this configuration meet the requirement?

⚠ Common exam trap

The trap here is that candidates may see `maxDeliveryCount` is present and assume it meets the requirement, without checking that its value must be exactly 3 to match the specified number of failed delivery attempts.

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

No, because maxDeliveryCount should be 3

The `maxDeliveryCount` property in Azure Service Bus determines the number of attempts to deliver a message before it is automatically moved to the dead-letter queue. The requirement specifies 3 failed delivery attempts, so `maxDeliveryCount` must be set to 3. The exhibit shows `maxDeliveryCount` set to 10, which does not meet the requirement.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • No, because lockDuration should be shorter

    Why it's wrong here

    The `lockDuration` property determines how long a message is held by a receiver before it is released back to the queue or subscription if not explicitly completed. While crucial for ensuring message processing reliability and preventing concurrent processing, it does not directly influence the `maxDeliveryCount` which tracks the number of delivery attempts. Therefore, adjusting `lockDuration` would not change when a message is automatically moved to the dead-letter queue due to excessive delivery failures.

  • Yes, because defaultMessageTimeToLive ensures messages expire

    Why it's wrong here

    The `defaultMessageTimeToLive` property specifies the maximum duration a message remains in the queue or subscription before it expires. Messages that exceed this time-to-live are automatically moved to the dead-letter queue, but this mechanism is based purely on elapsed time, not on the number of failed delivery attempts. Consequently, setting this value does not directly control dead-lettering based on a specific count of delivery attempts.

  • No, because maxDeliveryCount should be 3

    Why this is correct

    To ensure a message is automatically moved to the dead-letter queue after precisely three failed delivery attempts, the `maxDeliveryCount` property must be explicitly set to 3. This property directly controls the threshold for automatic dead-lettering due to repeated processing failures by incrementing with each delivery. With the current setting (implied to be 10 from the exhibit), messages would endure seven additional failed attempts before being dead-lettered, which does not meet the requirement of dead-lettering after three attempts.

  • Yes, because maxDeliveryCount is set

    Why it's wrong here

    While the `maxDeliveryCount` property is indeed set, its current value (implied to be 10 from the exhibit) is not appropriate for dead-lettering messages after only three delivery attempts. This property dictates the maximum number of times a message can be delivered to a consumer before it is automatically sent to the dead-letter queue. Therefore, simply having the property configured is insufficient; its value must specifically align with the desired dead-lettering threshold of 3.

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 →

How Courseiva writes practice questions · Editorial policy

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.