Microsoft Azure Developer Associate AZ-204 Practice Question
A C# Azure Function receives 4-KB JSON payloads from thousands of IoT devices every few seconds. Each payload must be appended to the existing telemetry.log blob in the iot container without overwriting prior data, even as the blob grows to multiple GB. Using Azure.Storage.Blobs, which implementation satisfies this requirement?
Create an instance of AppendBlobClient for telemetry.log and call AppendBlockAsync with the payload for every message.
Create a PageBlobClient and call UploadPagesAsync specifying the next page offset for each payload.
Create a BlobClient and call UploadAsync with BlobUploadOptions configured in append mode.
Create a BlockBlobClient and call StageBlockAsync for each payload, then CommitBlockListAsync periodically.
An append blob is designed for scenarios where data must be added sequentially to the end of a file, such as logging. In the Azure.Storage.Blobs SDK, the AppendBlobClient class targets this blob type. After ensuring the blob exists (or creating it with CreateIfNotExistsAsync), each new block of data is written by calling AppendBlockAsync. Block blobs and page blobs require managing block IDs or page offsets and do not guarantee that new data is automatically written at the end of the file. The general-purpose BlobClient class does not support an append-only mode.
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 an append blob?
Open an interactive chat with Bash
What is the difference between AppendBlobClient, BlockBlobClient, and PageBlobClient?
Open an interactive chat with Bash
Why can't BlockBlobClient or PageBlobClient be used for appending data?
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 .