- A
The message becomes visible again in the queue and another worker can dequeue it
This is the core at-least-once delivery guarantee. The visibility timeout is a lease, not a lock. When the lease expires, the queue re-exposes the message. To prevent double-processing, the worker should call UpdateMessage to extend the timeout, or ensure processing is idempotent.
- B
The message is permanently deleted because the worker already dequeued it
Why wrong: Dequeuing does not delete the message. The worker must explicitly call DeleteMessage after successful processing. If it does not, the message reappears when the visibility timeout expires.
- C
The message moves to a dead-letter queue after the visibility timeout expires
Why wrong: Azure Queue Storage does not have a built-in dead-letter queue. Messages that exceed the maximum dequeue count are deleted or can be moved to a poison message queue only if the application implements that logic explicitly.
- D
Processing continues uninterrupted; the visibility timeout applies only to the initial retrieval window
Why wrong: The visibility timeout is a real deadline. Once it expires, the queue re-exposes the message regardless of whether the original worker is still processing. The worker must extend the timeout via UpdateMessage if processing takes longer than expected.
Quick Answer
The answer is that the message becomes visible again in the queue and another worker can dequeue it. This happens because Azure Queue Storage uses a lease-based mechanism: when the visibility timeout expires, the original worker loses its exclusive lease on the message, making it available for other consumers. On the AZ-204 exam, this scenario tests your understanding of at-least-once delivery semantics and the importance of managing processing time against the visibility timeout. A common trap is assuming the message is deleted or moved to a dead-letter queue upon timeout expiration, but Azure instead relies on this lease expiry to prevent message loss if a worker crashes or takes too long. For the exam, remember that the visibility timeout acts like a temporary hold—once it expires, the message pops back into the queue for reprocessing. A useful memory tip: think of the timeout as a “lease timer” that, when it runs out, returns the message to the pool, ensuring no message is ever truly lost.
AZ-204 Practice Question: Queue Storage visibility timeout behavior when…
This AZ-204 practice question tests your understanding of develop for azure storage. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: azure Queue Storage. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A background worker retrieves a message from Azure Queue Storage and begins processing. The processing logic takes longer than the configured visibility timeout. Before the worker finishes, the timeout expires. What happens to the message?
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 becomes visible again in the queue and another worker can dequeue it
When the visibility timeout expires, the message becomes visible again in the queue because Azure Queue Storage uses a lease-based mechanism. The worker that dequeued the message loses its exclusive visibility lease, allowing another worker to dequeue and process the same message. This ensures at-least-once delivery semantics, preventing message loss if a worker fails or takes too long.
Key principle: Azure Queue Storage
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 becomes visible again in the queue and another worker can dequeue it
Why this is correct
This is the core at-least-once delivery guarantee. The visibility timeout is a lease, not a lock. When the lease expires, the queue re-exposes the message. To prevent double-processing, the worker should call UpdateMessage to extend the timeout, or ensure processing is idempotent.
Related concept
Azure Queue Storage
- ✗
The message is permanently deleted because the worker already dequeued it
Why it's wrong here
Dequeuing does not delete the message. The worker must explicitly call DeleteMessage after successful processing. If it does not, the message reappears when the visibility timeout expires.
- ✗
The message moves to a dead-letter queue after the visibility timeout expires
Why it's wrong here
Azure Queue Storage does not have a built-in dead-letter queue. Messages that exceed the maximum dequeue count are deleted or can be moved to a poison message queue only if the application implements that logic explicitly.
- ✗
Processing continues uninterrupted; the visibility timeout applies only to the initial retrieval window
Why it's wrong here
The visibility timeout is a real deadline. Once it expires, the queue re-exposes the message regardless of whether the original worker is still processing. The worker must extend the timeout via UpdateMessage if processing takes longer than expected.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume the dequeue operation permanently locks or deletes the message, but Azure Queue Storage only hides it temporarily, and the worker must explicitly delete it to prevent reprocessing.
Detailed technical explanation
How to think about this question
Under the hood, Azure Queue Storage uses a REST API with a lease ID tied to the visibility timeout. The worker must call UpdateMessage to extend the timeout or DeleteMessage to remove the message; otherwise, the queue service automatically restores visibility. In real-world scenarios, workers should implement a heartbeat pattern (e.g., updating the visibility timeout periodically) to avoid duplicate processing when tasks take longer than expected.
KKey Concepts to Remember
- Azure Queue Storage
- visibility timeout
- at-least-once delivery
- message reappearance
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Azure Queue Storage
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Review azure Queue Storage, then practise related AZ-204 questions on the same topic to reinforce the concept.
- →
Develop for Azure storage — study guide chapter
Learn the concepts, then practise the questions
- →
Develop for Azure storage practice questions
Targeted practice on this topic area only
- →
All AZ-204 questions
997 questions across all exam domains
- →
Microsoft Azure Developer Associate AZ-204 study guide
Full concept coverage aligned to exam objectives
- →
AZ-204 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-204 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Develop Azure compute solutions practice questions
Practise AZ-204 questions linked to Develop Azure compute solutions.
Develop for Azure storage practice questions
Practise AZ-204 questions linked to Develop for Azure storage.
Implement Azure security practice questions
Practise AZ-204 questions linked to Implement Azure security.
Connect to and consume Azure services and third-party services practice questions
Practise AZ-204 questions linked to Connect to and consume Azure services and third-party services.
Monitor, troubleshoot, and optimize Azure solutions practice questions
Practise AZ-204 questions linked to Monitor, troubleshoot, and optimize Azure solutions.
AZ-204 fundamentals practice questions
Practise AZ-204 questions linked to AZ-204 fundamentals.
AZ-204 scenario practice questions
Practise AZ-204 questions linked to AZ-204 scenario.
AZ-204 troubleshooting practice questions
Practise AZ-204 questions linked to AZ-204 troubleshooting.
Practice this exam
Start a free AZ-204 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-204 question test?
Develop for Azure storage — This question tests Develop for Azure storage — Azure Queue Storage.
What is the correct answer to this question?
The correct answer is: The message becomes visible again in the queue and another worker can dequeue it — When the visibility timeout expires, the message becomes visible again in the queue because Azure Queue Storage uses a lease-based mechanism. The worker that dequeued the message loses its exclusive visibility lease, allowing another worker to dequeue and process the same message. This ensures at-least-once delivery semantics, preventing message loss if a worker fails or takes too long.
What should I do if I get this AZ-204 question wrong?
Review azure Queue Storage, then practise related AZ-204 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
Azure Queue Storage
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.