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?
- A.It permanently deletes the message after two minutes.
- B.It temporarily hides the message from other consumers; if it is not deleted before the timeout expires, it becomes visible again.Correct answer
- C.It limits the message body to two minutes of processing time and then truncates the message.
- 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
- An Azure Queue Storage worker receives a message, but processing fails repeatedly because the message contains invalid data. The applicatio…
- A long-running .NET worker receives a message using Azure.Storage.Queues and needs to extend the message's invisibility while processing co…
- A .NET application must place a 100 KiB document-related work item in Azure Queue Storage. What is the recommended design?
- A legacy worker reads Azure Queue Storage messages and expects the message body to be Base64-encoded. Which C code configures the Azure.Sto…
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 freeFree to start · No credit card needed