You can develop, but can you develop for the cloud? Harness your development skills and learn how to create robust solutions for Microsoft Azure, aiming for your Microsoft Certified: Azure Developer Associate certification!
Prepare and test your skills

Prepare and test your skills

Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A development team is building an application that uploads various document types, such as PDFs and images, to Azure Blob Storage. For each uploaded document, they need to ensure that the browser correctly interprets the file type by setting the appropriate Content-Type property. Additionally, they must attach custom information, specifically a ProjectID and DocumentVersion, to each blob for internal tracking and categorization.
The team is using the Azure Blob Storage .NET SDK.
Which of the following approaches should the team use to efficiently set both the standard Content-Type and the custom ProjectID and DocumentVersion for each blob?
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Azure Blob Storage distinguishes between system properties, like Content-Type, which are standard HTTP headers, and user-defined metadata, which are custom key-value pairs. The most efficient and correct approach is to use the .NET SDK's capabilities to set the Content-Type as a system property (e.g., via BlobHttpHeaders) and to set ProjectID and DocumentVersion as user-defined metadata (e.g., via a Dictionary<string, string>). This ensures proper handling by browsers for Content-Type and provides flexible, accessible custom tracking information without affecting blob behavior. The documentation states: 'System properties exist on each Blob storage resource. Some of them can be read or set, while others are read-only. Under the covers, some system properties correspond to certain standard HTTP headers.' and 'User-defined metadata consists of one or more name-value pairs that you specify for a Blob storage resource. You can use metadata to store additional values with the resource.'