Microsoft Azure Developer Associate AZ-204 Practice Question

A background service writes order information as messages to an Azure Storage queue named "orders". Each message must be processed within 3 days; afterwards it should be automatically deleted by the queue service without any custom cleanup code. You will update the code that adds the messages.

Which change will meet this requirement while using the Azure.Storage.Queues SDK for .NET?

  • Configure a separate dead-letter queue and redirect messages to it after 3 days.

  • Specify TimeSpan.FromDays(3) as the timeToLive argument in QueueClient.SendMessageAsync.

  • Add a Storage queue SAS that expires after 3 days and use it when sending the message.

  • Set the visibilityTimeout parameter of QueueClient.SendMessageAsync to TimeSpan.FromDays(3).

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