CertLumen

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

Create and use shared access signature (SAS) tokens

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 partner needs read access to the container exports for six months. Requirements: access must be revocable within minutes, no storage account key may be used anywhere, and the security team has set allowSharedKeyAccess to false on the account. What should you implement?

  1. AA service SAS with a stored access policy and an expiry date six months from now
  2. BA user delegation SAS valid for six months and issued to the partner's application
  3. CInvite the partner as an Entra B2B guest with Storage Blob Data Reader
  4. DAn account SAS restricted to the partner's IP address with a six-month expiry
Show the answer

C. Disabling shared key access leaves only Entra ID based authorization (including user delegation SAS). Because the user delegation key lives for at most seven days, long-term delegated access is best handled with a role assignment for a guest user, which can be revoked at any time.

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 →