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?

  1. A.department is custom metadata, while the MIME type is set through BlobHttpHeaders.ContentType.Correct answer
  2. B.Both department and the MIME type must be stored as custom metadata.
  3. C.department is a blob tag, while the MIME type must be stored in the blob body.
  4. D.department is 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

All of Azure Blob Storage – SDK, Properties and Metadata

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 free

Free to start · No credit card needed