An order processing system uses a C# background worker running the Azure.Storage.Blobs SDK to inspect inbound XML invoices. An external partner uploads these invoices and programmatically sets a custom metadata field with the key `ApprovalStatus` and value `Pending` to flag items for review.
The background worker retrieves the blob details using the following code segment:
csharp
BlobClient client = containerClient.GetBlobClient("invoice_992.xml");
BlobProperties properties = await client.GetPropertiesAsync();
The application must check if the `ApprovalStatus` metadata key is present. However, the evaluation logic consistently fails to detect the metadata key when querying `properties.Metadata`.
Which of the following describes the correct way to check for the presence of this metadata key in the dictionary?
- Query the properties.Metadata dictionary using the lowercase string "approvalstatus" as the key.Cevap
- BQuery the properties.Metadata dictionary using the prefix-inclusive string "x-ms-meta-approvalstatus" as the key.
- CAcquire a short-term lease on the blob using BlobLeaseClient to prevent the storage engine from converting keys to lowercase.
- DConstruct a Shared Access Signature (SAS) token with write permission to bypass the metadata casing normalization.