- A
Move the message to a poison queue after the first failure.
Why wrong: Poison queue discards after retries; message may be lost if not monitored.
- B
After processing fails, update the message's visibility timeout to a later time so it becomes visible again for retry.
This allows the message to be retried after a delay without loss.
- C
Increase the polling interval to reduce the chance of missing messages.
Why wrong: Does not handle processing failures.
- D
Delete the message only if processing succeeds; otherwise, leave it in the queue.
Why wrong: The message becomes visible immediately and may be processed again too soon.
Quick Answer
The answer is to update the message's visibility timeout to a later time when processing fails. This is correct because Azure Storage Queue uses a visibility timeout to control when a message becomes visible to consumers after being dequeued; by extending this timeout upon failure, you effectively schedule the message to reappear in the queue for a future retry, preventing data loss without deleting or moving the message. On the AZ-204 exam, this scenario tests your understanding of the Peek-Lock pattern and the `UpdateMessageAsync` method, often appearing as a trap where candidates mistakenly delete the message or move it to a poison queue prematurely. A common memory tip is to think of the visibility timeout as a "snooze button" for failed messages—you extend it to give the system time before the message is retried, rather than discarding it.
AZ-204 Develop Azure compute solutions Practice Question
This AZ-204 practice question tests your understanding of develop azure compute solutions. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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.
You are developing a solution that processes messages from an Azure Storage Queue. Each message triggers a long-running operation that may take up to 30 minutes. You need to ensure that if the processing fails, the message is not lost and can be retried later. The current implementation uses a console application that polls the queue and deletes messages after processing. What should you change?
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
After processing fails, update the message's visibility timeout to a later time so it becomes visible again for retry.
The correct approach is to update the message's visibility timeout to a later time when processing fails. This makes the message reappear in the queue after the specified timeout, allowing another consumer to retry processing. Azure Storage Queue messages have a default visibility timeout of 30 seconds, but you can extend it to up to 7 days. This ensures the message is not lost and can be retried without being deleted or moved prematurely.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Move the message to a poison queue after the first failure.
Why it's wrong here
Poison queue discards after retries; message may be lost if not monitored.
- ✓
After processing fails, update the message's visibility timeout to a later time so it becomes visible again for retry.
Why this is correct
This allows the message to be retried after a delay without loss.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Increase the polling interval to reduce the chance of missing messages.
Why it's wrong here
Does not handle processing failures.
- ✗
Delete the message only if processing succeeds; otherwise, leave it in the queue.
Why it's wrong here
The message becomes visible immediately and may be processed again too soon.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often think leaving the message in the queue (Option D) is sufficient, but they forget that the message remains invisible after being dequeued unless its visibility timeout is explicitly updated to make it visible again for retries.
Detailed technical explanation
How to think about this question
Under the hood, Azure Queue messages have a visibility timeout that controls when a message becomes visible to other consumers after being dequeued. When processing fails, you can call UpdateMessageAsync with a new visibility timeout (e.g., 30 minutes) to schedule the message to reappear. This is more efficient than deleting and re-adding the message, as it preserves the message ID and pop receipt. In real-world scenarios, you might combine this with a dequeue count check to move the message to a poison queue after a configurable number of retries (e.g., 5), avoiding infinite retries.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
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
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Develop Azure compute solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Develop Azure compute solutions 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 Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: After processing fails, update the message's visibility timeout to a later time so it becomes visible again for retry. — The correct approach is to update the message's visibility timeout to a later time when processing fails. This makes the message reappear in the queue after the specified timeout, allowing another consumer to retry processing. Azure Storage Queue messages have a default visibility timeout of 30 seconds, but you can extend it to up to 7 days. This ensures the message is not lost and can be retried without being deleted or moved prematurely.
What should I do if I get this AZ-204 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 24, 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.