Microsoft Azure Developer Associate AZ-204 Practice Question

Your application adds work items to an Azure Storage queue. A worker role dequeues one message at a time and starts processing. Some items require up to 10 minutes to finish. While a message is being processed, no other worker must be able to see it, even when processing lasts longer than the original visibility timeout that was set when the message was fetched. Which approach meets this requirement?

  • Increase the queue's MaxDequeueCount setting to 20 in the Azure portal.

  • Set a 15-minute time-to-live (TTL) on each message when it is enqueued.

  • Read messages with PeekMessageAsync instead of ReceiveMessageAsync so the message remains hidden from other workers.

  • Periodically call UpdateMessageAsync on the in-process message, supplying a new visibility timeout that extends past the expected completion time.

Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot