Microsoft Azure Developer Associate AZ-204 Practice Question
You are building a C# application that uses the Azure.Storage.Blobs v12 SDK to manage files. Before editing a block blob, the app calls GetPropertiesAsync and stores the blob's current ETag value. You must upload the updated content so that the operation succeeds only if the blob has not been modified since it was read. Which implementation meets the requirement?
Call UploadAsync and set the AccessTier property of BlobUploadOptions to Hot.
Invoke SetHttpHeadersAsync to apply headers, then call UploadAsync without additional options.
Set TransferOptions.MaxConcurrency to 1 in BlobUploadOptions before calling UploadAsync.
Call UploadAsync with a BlobUploadOptions instance whose Conditions.IfMatch property is set to the stored ETag.
BlobClient.UploadAsync accepts a BlobUploadOptions object that exposes a Conditions property of type BlobRequestConditions. Setting the IfMatch property of that object to the previously retrieved ETag enforces optimistic concurrency: the upload proceeds only when the server's ETag matches the supplied value; otherwise, the service returns status 412 (Precondition Failed). Specifying access tier, transfer concurrency, or HTTP headers does not provide version comparison and therefore cannot prevent lost updates.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a block blob in Azure?
Open an interactive chat with Bash
What is optimistic concurrency in Azure Storage?
Open an interactive chat with Bash
What is an ETag in Azure Storage?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .