CertLumen

Microsoft Azure Administrator (AZ-104) · Section 2 · 18% of the exam

Manage access keys

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

A web application generates download links for blobs on behalf of signed-in users. The security team does not want the application to hold a storage account key. Which type of shared access signature should the application create?

  1. AA user delegation SAS
  2. BA service SAS
  3. CAn account SAS
  4. DA SAS tied to a stored access policy
Show the answer

A. Microsoft recommends the user delegation SAS because it is secured with Entra credentials instead of the account key. The caller needs a role containing the generateUserDelegationKey action, such as Storage Blob Data Contributor.

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

← Previous objective · All 81 objectives · Next objective →