An administrator needs to grant a temporary contractor read-only access to a specific blob container in an Azure storage account. The contractor requires access for exactly two hours. To follow the principle of least privilege, which action should the administrator take?
- Generate a service Shared Access Signature (SAS) for the blob container and set its expiration time to two hours.Answer
- BGenerate an account-level Shared Access Signature (SAS) with no expiration time to ensure the contractor has continuous access.
- CAssign the Storage Account Contributor Azure Role-Based Access Control (RBAC) role to the contractor's Microsoft Entra ID account.
- DConfigure the storage firewall to allow trusted Microsoft services to bypass network restrictions for the contractor.
Answer
Generate a service Shared Access Signature (SAS) for the blob container and set its expiration time to two hours.
The correct action is to generate a service Shared Access Signature (SAS) for the blob container and set its expiration time to two hours. A service SAS restricts access to a specific resource (the blob container), and the two-hour expiration ensures that access is revoked automatically when no longer needed, following the principle of least privilege.
Step-by-Step Solution
Key Concept
Using service Shared Access Signatures (SAS) with minimum scope and short-lived expiration to implement the principle of least privilege.
Estimated Time:45s