Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing a console application that runs each night to move unprocessed blobs in the "images" container from the hot tier to the archive tier. Every blob is assigned the index tag processed="false" until it is handled. The solution must retrieve only the blobs that are still unprocessed and avoid enumerating the entire container client-side. Which approach should you use?
List blobs with BlobTraits.Metadata and filter the results where the metadata key processed equals "false".
Organize blobs under a virtual directory named "unprocessed/" and enumerate blobs with that prefix.
Use BlobChangeFeedClient.GetChanges to obtain blobs that have not yet been processed.
Call BlobContainerClient.FindBlobsByTagsAsync with the query "processed = 'false'".
Blob index tags are automatically indexed by the storage service, which enables the FindBlobsByTagsAsync operation to return only the blobs that match a tag expression. Using the query "processed = 'false'" lets the service return just the unprocessed blobs, so the application avoids downloading the full listing. Metadata is not indexed, so you would still have to list every blob and filter locally. Blob prefixes only work with virtual directory names and offer no tag filtering. The change feed provides an ordered log of changes but cannot issue ad-hoc queries for the current set of unprocessed blobs.
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 are blob index tags in Azure Storage?
Open an interactive chat with Bash
How does FindBlobsByTagsAsync work?
Open an interactive chat with Bash
Why can't blob metadata be used for filtering 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 .