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

CertStreak
Menu

Manage access to storage, including access policies

A worked example

Yes or no

Contoso stores vendor invoices in a container named invoices in the storage account contosodocs. The container already has five stored access policies. One of them is vendor-read-policy, which grants Read and List permissions.

An administrator ran the command in the exhibit to issue service SAS tokens to an external vendor. The administrator now also wants to create a separate stored access policy on the invoices container for an external auditor.

az storage blob generate-sas \
    --account-name contosodocs \
    --container-name invoices \
    --name march-statement.pdf \
    --policy-name vendor-read-policy \
    --account-key <key>

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
The SAS tokens issued to the vendor contain the expiry time and permissions defined in vendor-read-policy.

The command references vendor-read-policy without supplying expiry or permissions in the token. Azure Storage obtains those values from the stored access policy when evaluating requests.

Correct
Deleting vendor-read-policy revokes the vendor's SAS tokens without rotating the storage account keys.

Deleting the stored access policy invalidates every SAS that references it. This avoids the key rotation that would otherwise be needed and that would break other applications using the key.

Correct
The administrator can add a sixth stored access policy to the invoices container for the auditor.

A container supports a maximum of five stored access policies, and invoices already has five. To add an auditor policy to invoices, the administrator would first need to free a slot by deleting an existing policy.

Correct
Why

For the command shown, the service SAS references vendor-read-policy rather than embedding its expiry time and permissions. Azure Storage obtains those values from the policy, allowing policy changes or deletion to affect the associated tokens without rotating keys. Each container is limited to five stored access policies, so a sixth cannot be added to invoices.

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