Azure Blob Storage – SDK, Properties and Metadata · AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage
A catalog service needs to store an arbitrary business value named department on each blob and also specify the blob's MIME type. Which classificatio…
Practice question from Azure Blob Storage – SDK, Properties and Metadata (AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage), with the correct answer and a step-by-step solution.
easy · MCQ · Q-09643D
A catalog service needs to store an arbitrary business value named department on each blob and also specify the blob's MIME type. Which classification is correct in the Azure Blob Storage .NET SDK?
- A.
departmentis custom metadata, while the MIME type is set throughBlobHttpHeaders.ContentType.Correct answer - B.Both
departmentand the MIME type must be stored as custom metadata. - C.
departmentis a blob tag, while the MIME type must be stored in the blob body. - D.
departmentis a system property, while the MIME type is stored as a blob tag.
Solution
Custom application key-value pairs belong in blob metadata. HTTP properties such as the MIME type are represented by BlobHttpHeaders.ContentType.
More from Azure Blob Storage – SDK, Properties and Metadata
- An ASP.NET Core application uploads a JPEG to Azure Blob Storage. The application must ensure that browsers and download clients recognize…
- A service needs to read a blob's custom metadata key named department without downloading the blob contents. Which code correctly retrieves…
- A blob already has metadata keys department and retention. A job must add the metadata key reviewed while preserving the existing keys. Whi…
- A .NET service uploads a JSON document and must set its content type and a custom metadata value during the upload. Which code correctly co…
Practise more Develop for Azure Storage
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed