A developer is configuring a Shared Access Signature (SAS) token to allow an external application to download diagnostic reports from a specific Azure Blob Storage container. The token must be valid for 24 hours, enforce HTTPS-only access, and restrict operations to downloading blobs. Which two configurations should the developer apply to the SAS token to meet these requirements?
- Set the permissions parameter to Read (r) only.Answer
- Set the allowed protocols parameter to HTTPS only.Answer
- CSet the permissions parameter to Read and Write (rw) to allow metadata reading.
- DSet the allowed protocols parameter to HTTP and HTTPS to ensure compatibility.
- EGenerate an Account-level SAS with access to Blob, File, and Queue services.
Answer
To meet the requirements, the developer must set the permissions parameter to Read (r) only and set the allowed protocols parameter to HTTPS only.
The correct configurations restrict the SAS token permissions to Read (r) only, which is sufficient for downloading files, and enforce HTTPS-only access to prevent cleartext transmission of data, aligning with security requirements.
Step-by-Step Solution
Key Concept
Configuring least-privilege permissions and protocol constraints on a Shared Access Signature (SAS) token.
Estimated Time:1m 0s