Your company has an Azure environment structured with the following hierarchy:
* Management Group: `MG-Production`
* Subscription: `Sub-AppServices`
* Resource Group: `RG-DataStorage`
* Storage Account: `saproddata101`
A user-assigned managed identity named `mi-web-app` is used by an App Service web app. The web app must be able to read, write, and delete blobs inside the containers of `saproddata101` using Microsoft Entra authentication. The solution must follow the principle of least privilege and prevent the managed identity from deleting or modifying the configuration of the storage account itself.
Which role assignment should you configure?
- Assign the Storage Blob Data Contributor role to mi-web-app at the scope of the saproddata101 storage account.Cevap
- BAssign the Storage Account Contributor role to mi-web-app at the scope of the saproddata101 storage account.
- CAssign the Storage Blob Data Contributor role to mi-web-app at the scope of the MG-Production management group.
- DAssign the Microsoft Entra ID Application Administrator role to mi-web-app at the scope of the Sub-AppServices subscription.
Cevap
Assign the Storage Blob Data Contributor role to mi-web-app at the scope of the saproddata101 storage account.
The correct answer is to assign the Storage Blob Data Contributor role to the managed identity at the scope of the saproddata101 storage account. This role grants the specific permissions needed to read, write, and delete blobs using Microsoft Entra authentication. By scoping it to the storage account itself, the permissions are restricted to only this resource, meeting the requirement of least privilege. It also does not grant permissions to modify or delete the storage account resources, ensuring control plane actions are blocked.
Adım Adım Çözüm
Anahtar Kavram
Azure RBAC Roles and Scopes for Data Plane Access
Tahmini Süre:1m 30s