Question

Difficulty: MediumManage Storage Access Keys and Shared Access Signatures (SAS)

An organization has an Azure Storage account named `medicalrecords2026` containing a blob container named `scans`. An on-premises clinical analysis application needs to upload files directly to the `scans` container. The connection must be secure, restricted to the on-premises public IP address range of 198.51.100.0/24198.51.100.0/24, and valid only for 4848 hours. You need to create a Shared Access Signature (SAS) that adheres to the principle of least privilege. Which two configurations should you apply to meet the security requirements?

  1. Generate a Service SAS scoped to the scans container rather than an Account SAS.Answer
  2. Configure the allowed IP address range to 198.51.100.0/24198.51.100.0/24 and set the allowed protocol to HTTPS only.Answer
  3. C
    Assign the Contributor role at the storage account level to the application.
  4. D
    Disable the storage account firewall bypass for trusted Microsoft services.
  5. E
    Configure the SAS token with a validity period of 365 days to prevent token expiration issues.

Answer

To secure the data transmission and apply the principle of least privilege, you must generate a Service SAS scoped to the scans container, and restrict the allowed IP range to 198.51.100.0/24 while enforcing HTTPS only.
Generating a Service SAS is the correct approach to scope permissions specifically to the scans container without exposing other services or resources in the storage account. Restricting the SAS to the public IP subnet and requiring HTTPS ensures that data is transmitted securely and only from the authorized corporate network.

Step-by-Step Solution

1
Determine the type of Shared Access Signature (SAS) required for container-level scoping.
Select a Service SAS instead of an Account SAS.
A Service SAS can be scoped directly to the scans container, whereas an Account SAS grants access to services and resources across the entire storage account.
2
Apply the network and transport layer security constraints.
Set the Allowed IP addresses to 198.51.100.0/24 and Allowed protocols to HTTPS only.
This satisfies the requirements to secure the connection and limit access to the corporate network's public IP range.
3
Configure the token's lifetime constraint.
Define the start and end times to span exactly 48 hours.
This limits the validity period according to the application's temporary access window.

Key Concept

Configuring Shared Access Signatures (SAS) with constrained scope, secure network/protocol parameters, and minimum lifetime to enforce least privilege.
Estimated Time:2m 0s
Rate this question