Shared Access Signatures · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security

A solution must grant temporary access to both a blob container and an Azure Queue Storage queue by using one SAS. The application uses Microsoft Ent…

Practice question from Shared Access Signatures (AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security), with the correct answer and a step-by-step solution.

medium · MCQ · Q-499BA6

A solution must grant temporary access to both a blob container and an Azure Queue Storage queue by using one SAS. The application uses Microsoft Entra ID and is not allowed to store or access a storage account key. What is the correct conclusion?

  1. A.Use a user delegation SAS because it can authorize Blob Storage and Queue Storage.
  2. B.Use an account SAS generated with Microsoft Entra ID because account SAS tokens do not require an account key.
  3. C.The requirements cannot be met with one SAS; user delegation SAS is for Blob Storage, while account or service SAS requires an account key.Correct answer
  4. D.Use a service SAS signed with the application's Microsoft Entra access token.

Solution

A user delegation SAS is signed with a user delegation key and supports Blob Storage, but not Queue Storage. Account SAS can span services, and service SAS can authorize a supported storage service, but both are signed with a storage account key. Therefore, one SAS cannot satisfy all the stated constraints.

More from Shared Access Signatures

All of Shared Access Signatures

Practise more Implement Azure Security

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