An administrator needs to grant an external partner application read-only access to a specific blob container in an Azure storage account for exactly two hours. The access must be restricted to that container only, without granting access to other services in the storage account or requiring Microsoft Entra ID authentication.
Which action should the administrator perform?
- Generate a service Shared Access Signature (SAS) for the blob service, scoped to the specific container, with Read permission and an expiration time of two hours.Cevap
- BAssign the Storage Blob Data Reader role to the application's service principal at the storage account scope.
- CRegenerate the primary storage access key and provide the connection string to the external partner.
- DEnable the 'Allow trusted Microsoft services' option in the storage account firewall settings.
Cevap
Generate a service Shared Access Signature (SAS) for the blob service, scoped to the specific container, with Read permission and an expiration time of two hours.
The correct action is to generate a service Shared Access Signature (SAS) scoped to the container. A service SAS is designed to delegate access to a specific resource (such as a blob container) within a single storage service. Specifying Read permission and an expiration window of two hours ensures the token complies with the principles of least privilege and limited duration, without requiring Microsoft Entra ID authentication.
Adım Adım Çözüm
Anahtar Kavram
Shared Access Signatures (SAS) allow administrators to delegate fine-grained, temporary access to storage account resources with specific permissions and expiration times without exposing the account access keys.