A company needs to grant a partner application temporary read-only access to a specific queue named incoming-orders in an Azure Storage account. The access configuration must meet the following security requirements:
- The partner application must only be able to read messages from the incoming-orders queue.
- Access must be restricted to the partner's IP address range of 198.51.100.0/24.
- The access credentials must automatically expire after 24 hours.
- Access to all other queues, blob containers, and tables in the storage account must be prevented.
- The connection protocol must be restricted to HTTPS.
Which configuration should you use to meet these requirements with the least privilege?
- AGenerate an Account SAS for the Queue service, specifying the read permission, HTTPS only, and no expiration time.
- BAssign the partner application's service principal the Storage Queue Data Reader role at the storage account scope and generate a User Delegation SAS.
- Generate a Service SAS for the incoming-orders queue, specifying the read permission, the IP address range 198.51.100.0/24, HTTPS only, and a 24-hour expiration.Cevap
- DGenerate a Service SAS for the queue, disable the storage account firewall bypass for trusted Microsoft services, and allow public access from any network.
Cevap
Generate a Service SAS for the incoming-orders queue, specifying the read permission, the IP address range 198.51.100.0/24, HTTPS only, and a 24-hour expiration.
Generating a Service SAS for the queue is the correct approach because it delegates access to a specific resource (the incoming-orders queue) rather than all queues in the storage account. It natively supports all requested security constraints, including the read-only permission, client IP address range restriction (198.51.100.0/24), HTTPS-only protocol, and a 24-hour expiration duration.
Adım Adım Çözüm
Anahtar Kavram
Selecting the least-privilege SAS type (Service SAS vs. Account SAS) and applying security constraints (IP range, HTTPS, expiration) for non-blob storage resources.
Tahmini Süre:1m 30s