Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure stored access policies

A worked example

Single answer

You plan to issue shared access signatures (SAS) for an Azure Storage account. You want to be able to revoke the signatures centrally by using a stored access policy. Which type of SAS can you associate with a stored access policy?

Choose one answer
Why

A stored access policy adds server-side control over service-level SAS tokens. When a service SAS is bound to a policy, it takes its constraints from that policy. User delegation SAS and account SAS tokens must always be ad hoc and can't be bound to a stored access policy.

  • Not correct: User delegation SAS. A user delegation SAS is secured with Microsoft Entra credentials. It must be ad hoc and can't reference a stored access policy.
  • Correct: Service SAS. Stored access policies work only with service-level SAS tokens. The SAS inherits the start time, expiry time and permissions from the policy.
  • Not correct: Account SAS. An account SAS can span several services, but it must be ad hoc. Stored access policies don't support it.
  • Not correct: Any type of SAS, provided that it is created as an ad hoc SAS. An ad hoc SAS carries its start time, expiry time and permissions in the URI itself. The policy-based form is a distinct form that applies only to a service SAS.

Related topics

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free