You are developing a media processing application in C# using the Azure.Storage.Blobs SDK (version 12). The application needs to manage the custom metadata of uploaded video blobs and transition them to the Archive access tier to reduce storage costs. Which two of the following statements are correct regarding how the SDK handles metadata, access tiers, and leases?
- To change the access tier of a blob to Archive, you call the SetAccessTierAsync method on the BlobClient, and you can read the blob's metadata without needing to rehydrate the blob first.Cevap
- Azure Blob Storage converts all metadata keys to lowercase. When retrieving metadata via the .NET SDK's Metadata dictionary, you must access the keys using lowercase strings (e.g., 'resolution'), even if they were written with uppercase letters.Cevap
- CWhen retrieving metadata using BlobProperties.Metadata, you must query keys with the exact casing they were originally set with, as the SDK preserves the original capitalization for key lookup.
- DIf the target blob has an active, exclusive-write lease, calling SetMetadataAsync will temporarily suspend the lease, write the metadata, and resume the lease automatically without requiring a lease ID.
Cevap
Setting the access tier using SetAccessTierAsync allows reading metadata without rehydration, and retrieving blob metadata requires using lowercase keys since Azure Storage converts all metadata keys to lowercase.
The correct answer statements correctly describe that: 1. You can transition a blob to the Archive tier using the SetAccessTierAsync method and still read its metadata without rehydration. 2. Metadata keys are stored in lowercase by Azure Blob Storage, meaning you must access them with lowercase keys in the SDK.
Adım Adım Çözüm
Anahtar Kavram
Blob Metadata Case Sensitivity, Access Tier Management, and Lease Requirements