Courseiva
Develop for Azure storagehardMultiple ChoiceObjective-mapped

AZ-204 Develop for Azure storage Practice Question

Your application uses Azure Queue Storage to process orders. Occasionally, messages are not processed and remain in the queue. You need to ensure that messages are automatically retried after a specified time if they are not deleted. What should you configure?

⚠ Common exam trap

Many candidates confuse the visibility timeout with the message time-to-live (TTL) or think that logging or dead-letter queues directly enable automatic retries, when in fact the visibility timeout is the key mechanism for controlling retry timing.

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

Set the message visibility timeout to a small value

Setting the message visibility timeout to a small value ensures that if a message is not deleted after processing (i.e., the worker fails or crashes), the message becomes visible again in the queue after the short timeout. This allows other queue consumers to retry processing the message automatically. The visibility timeout controls how long a message is hidden from other consumers after being dequeued, and a small value reduces the delay before a retry occurs.

Answer analysis

Option-by-option breakdown

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

  • Set the message visibility timeout to a small value

    Why this is correct

    When a message is dequeued, it becomes temporarily invisible for the duration of the visibility timeout. Setting a small visibility timeout ensures that if a worker fails to process the message and does not delete it, the message quickly reappears in the queue. This allows another worker, or the same worker after a short delay, to pick up the message for a retry attempt, making it an effective strategy for handling transient processing failures.

  • Configure a dead-letter queue

    Why it's wrong here

    A dead-letter queue (DLQ) is a designated queue for storing messages that have failed processing after a maximum number of retry attempts or have otherwise become unprocessable. While crucial for isolating problematic messages and preventing them from blocking the main queue, configuring a DLQ itself does not initiate or control the immediate retry mechanism for messages that experience temporary failures; it's a destination for messages that have exhausted their retry opportunities.

  • Enable queue storage logging

    Why it's wrong here

    Enabling queue storage logging provides comprehensive diagnostic information about all requests made against the queue service, including successful operations, client errors, and server errors. While invaluable for monitoring, auditing, and troubleshooting application behavior and performance, logging is a passive observation mechanism. It does not alter the operational flow of message processing, nor does it directly influence how messages are retried or their visibility within the queue.

  • Increase the message time-to-live (TTL)

    Why it's wrong here

    The message time-to-live (TTL) defines the maximum duration a message can remain in the queue before it automatically expires and is removed by the queue service. Increasing the TTL only extends the message's overall lifespan in the queue, preventing its premature deletion due to age. It has no direct bearing on the message's visibility timeout or the logic that governs when a message becomes available for a retry attempt after a processing failure.

About these practice questions

This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.