Microsoft Azure Developer Associate AZ-204 Practice Question
You are building a .NET application that uses the Azure.Storage.Blobs v12 SDK. Before processing an existing block blob you must determine its size (ContentLength) and read the value of a custom metadata key named "department." You must accomplish this without downloading the blob's content and while making as few service calls as possible. Which SDK action should you take?
Call BlobClient.GetPropertiesAsync and read the returned BlobProperties values.
Call BlobClient.GetTagsAsync and read the Tags dictionary.
Call BlobClient.DownloadContentAsync and inspect the BlobDownloadResult.
Call BlobClient.SetMetadataAsync with an empty dictionary, then read the response headers.
BlobClient.GetPropertiesAsync issues a single HEAD request to the blob and returns a BlobProperties object. The object contains both system properties such as ContentLength and the complete Metadata dictionary, allowing you to read the "department" value without downloading content.
DownloadContentAsync retrieves the full blob data, which is unnecessary and incurs additional network cost.
GetTagsAsync returns only tags, not system properties or metadata.
SetMetadataAsync is used to write metadata-calling it with an empty dictionary would overwrite existing metadata and still would not return the blob's size.
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 BlobClient.GetPropertiesAsync?
Open an interactive chat with Bash
What’s the difference between metadata and tags in Azure blobs?
Open an interactive chat with Bash
Why is using BlobClient.DownloadContentAsync inefficient in this scenario?
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 .