Azure Queue Storage · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services

A .NET worker retrieves a message from Azure Queue Storage and may need up to two minutes to process it. The worker calls ReceiveMessagesAsync with a…

Practice question from Azure Queue Storage (AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services), with the correct answer and a step-by-step solution.

easy · MCQ · Q-A6F1A1

A .NET worker retrieves a message from Azure Queue Storage and may need up to two minutes to process it. The worker calls ReceiveMessagesAsync with a two-minute visibility timeout. What is the purpose of this timeout?

  1. A.It permanently deletes the message after two minutes.
  2. B.It temporarily hides the message from other consumers; if it is not deleted before the timeout expires, it becomes visible again.Correct answer
  3. C.It limits the message body to two minutes of processing time and then truncates the message.
  4. D.It delays the first delivery of the message for two minutes.

Solution

A visibility timeout temporarily makes a dequeued message invisible to other consumers. The message must be successfully processed and deleted before the timeout expires; otherwise, it can become visible again for another attempt.

More from Azure Queue Storage

All of Azure Queue Storage

Practise more Connect to and Consume Azure and Third-party Services

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed