Question

Difficulty: MediumConfigure Microsoft Entra ID Authentication for Storage

Your organization manages an Azure Storage account named stdeployments that contains a blob container named software-builds. A developer named Dev1 is currently assigned the Reader role for the resource group that contains stdeployments. Dev1 needs to download software builds from the software-builds container using Microsoft Entra ID credentials. When Dev1 attempts to access the container in the Azure portal, they receive an authorization error. You need to resolve the authorization error. The solution must follow the principle of least privilege. Which action should you perform?

  1. Assign the built-in Storage Blob Data Reader role to Dev1 at the scope of the software-builds containerAnswer
  2. B
    Assign the built-in Reader role to Dev1 at the scope of the software-builds container
  3. C
    Assign the built-in Contributor role to Dev1 at the scope of the stdeployments storage account
  4. D
    Assign the Global Reader directory role to Dev1 in Microsoft Entra ID

Answer

Assign the built-in Storage Blob Data Reader role to Dev1 at the scope of the software-builds container
The correct answer is to assign the built-in Storage Blob Data Reader role to Dev1 at the container scope. This provides Dev1 with the necessary data-plane permissions to read and download blobs in the container using Microsoft Entra ID. Scoping the assignment to the specific container ensures compliance with the principle of least privilege. The user's existing Reader role at the resource group level provides the necessary control-plane access to navigate to the storage account in the Azure portal, but it must be supplemented with a data-plane role for actual content access.

Step-by-Step Solution

1
Analyze the error and the existing permissions.
Dev1 has the Reader role at the resource group level, which allows listing resources but does not grant permissions to read blob data.
Azure Storage separates control-plane operations (e.g., Reader, Contributor) from data-plane operations (e.g., Storage Blob Data Reader).
2
Select the appropriate data-plane role to read blob content.
The Storage Blob Data Reader role is the least-privileged built-in role required to read and download blobs.
Other data-plane roles like Storage Blob Data Contributor or Storage Blob Data Owner grant write or delete permissions, which are not required.
3
Determine the optimal scope for the role assignment.
Assign the role at the container scope ('software-builds') rather than the storage account or resource group scope.
This complies with the principle of least privilege by restricting access to only the specific container required.

Key Concept

Azure Storage data-plane authorization requires data-plane RBAC roles (such as Storage Blob Data Reader) which are distinct from control-plane roles (such as Reader or Contributor).
Rate this question