Set Visibility Timeout in Azure Queue Storage
You have an Azure Queue Storage named queue1. You plan to develop code that will process messages in queue1. You need to implement a queue operation to set the visibility timeout value of individual messages in queue1. Which two operations can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Community Votes
100% of anonymous learners picked answer DE. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests knowledge of Azure Queue Storage message operations and the specific actions that allow modifying a message's visibility timeout, avoiding the trap of assuming all retrieval operations affect visibility.
This guide explains how to set the visibility timeout for individual messages in Azure Queue Storage. It establishes that receiving and updating messages are the specific operations used to configure this timeout.
Choosing 'Peek at a message' (A) because it retrieves a message, but peeking does not hide the message or allow setting a visibility timeout.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Receiving a message (E) inherently involves setting a visibility timeout to hide the message from other consumers while it is being processed. Updating a message (D) explicitly allows modifying both the message content and its visibility timeout, enabling you to extend or reset the invisibility window during processing.Why the Other Options Are Wrong
Peeking at a message (A) retrieves it without making it invisible, so no visibility timeout is applied or needed. Deleting a message (B) removes it permanently from the queue and does not set a timeout. Adding a message (C) creates a new message but does not set an initial visibility timeout for processing.Community Comment Notes
Commenters agree that both receiving and updating messages are valid ways to interact with the visibility timeout. As mahomes15 noted, "After receiving it, you can modify its visibility timeout by using the Update operation". Mattt also pointed out that "The UpdateMessage operation allows you to modify the content of a message as well as reset its visibility timeout value."Official Reference
Exam Strategy
When asked about modifying message visibility in Azure Queue Storage, remember that only operations that hide the message from the queue (Receive) or explicitly modify its state (Update) can set the visibility timeout. Peek leaves the message visible to all other consumers.