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.Cevap
- 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.
Cevap
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.
Adım Adım Çözüm
Anahtar Kavram
Using service Shared Access Signatures (SAS) with minimum scope and short-lived expiration to implement the principle of least privilege.
Tahmini Süre:45s