Microsoft Azure Administrator (AZ-104) · Section 2 · 18% of the exam
Configure stored access policies
One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Implement and manage storage”. Here is what it covers, the points to remember and a question to try.
What it covers
Every request to a storage account passes two gates: the network path (firewall, virtual network rules, private endpoints) and authorization (Microsoft Entra ID, access keys or a shared access signature). This lesson covers how to restrict the network, how to rotate and retire access keys, and how to hand out limited, revocable access with SAS tokens and stored access policies.
Points to remember
- The network gate (firewall, VNet rules, private endpoint) and the authorization gate (Entra ID, key, SAS) are independent; a request needs both.
- Default action Deny is required for firewall rules to take effect; virtual network rules need the Microsoft.Storage service endpoint on the subnet.
- Storage allows up to 400 IP rules and 400 virtual network rules; IP rules cannot use private ranges and do not match same-region Azure traffic.
- Two 512-bit access keys give full account access; rotate with key2 first, and use Key Vault or disable shared key access altogether.
- Regenerating a key invalidates account and service SAS signed with it, but not user delegation SAS.
Try a question
An administrator selects Set rotation reminder on the Access keys page and enters 90 days. What does this configuration do?
- AIt regenerates both keys automatically every 90 days and updates the connection strings
- BIt blocks the use of any key that is older than 90 days until it is regenerated
- CIt limits every SAS token created for the account to a 90-day validity period
- DIt sets a rotation reminder; keys older than 90 days are flagged
Show the answer
D. A key expiration policy sets the recommended rotation interval. It does not rotate keys or block requests. On older accounts the button can be grayed out until both keys have been regenerated once, because the key creation time must be recorded first.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Secure access to storage: firewalls, keys and SAS teaches this objective (about 45 minutes), and 22 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Configure Azure Storage firewalls and virtual networks
- Create and use shared access signature (SAS) tokens
- Manage access keys
- Configure identity-based access for Azure Files
- Create and configure storage accounts
- Configure Azure Storage redundancy
- Configure object replication
- Configure storage account encryption
- Manage data by using Azure Storage Explorer and AzCopy
- Create and configure a file share in Azure Storage
- Create and configure a container in Blob Storage
- Configure storage tiers