Microsoft Azure Developer Associate AZ-204 Practice Question

In a .NET 6 worker service you must download a blob from Azure Storage only when the object has changed since the previous run. The last successful synchronization persisted the blob's ETag. Using the Azure.Storage.Blobs client library, which approach should you implement to prevent unnecessary data transfer without an extra round-trip to the service?

  • Set BlobClientOptions.TransferValidation to MatchETag before creating the BlobClient.

  • Call GetPropertiesAsync, compare the stored ETag locally, and only then invoke DownloadToAsync if the tags differ.

  • Pass a BlobRequestConditions instance with IfNoneMatch set to the stored ETag when calling DownloadStreamingAsync.

  • Append ?if-none-match= to the blob URL and call DownloadToAsync.

Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
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