Your company has an Azure Storage account named storagecorp2026 that contains a blob container named software-deployments. You need to grant a partner company temporary read access to the software-deployments container for 7 days. The solution must meet the following requirements:
- The partner company must only have access to the software-deployments container.
- You must be able to revoke the access immediately before the 7-day period ends, without affecting other applications or rotating the storage account access keys.
Which two actions should you perform?
- Create a stored access policy on the container.Cevap
- Generate a service SAS that references the stored access policy.Cevap
- CGenerate an account SAS that has an expiration of 7 days.
- DGenerate a user delegation SAS that references the stored access policy.
- EConfigure a storage account firewall rule to block access to the container after 7 days.
Cevap
Create a stored access policy on the container and generate a service SAS that references the stored access policy.
To grant granular, temporary access that can be revoked immediately without affecting other applications, you must use a service SAS associated with a stored access policy on the container. Modifying or deleting the stored access policy instantly invalidates any service SAS tokens referencing it.
Adım Adım Çözüm
Anahtar Kavram
Using stored access policies with service SAS tokens to enable revocation without rotating account keys.