SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
AZ-104 · Domain 2

Implement and manage storage practice questions

Implement and manage storage is worth 19% of the AZ-104 exam — the 3rd-heaviest of the 5 domains. Storage access control, storage account configuration, and Azure Files and Blob Storage. Official weighting 15–20%. 6 fully worked examples are further down this page, answers included.

Exam weight
19%
the 3rd-heaviest of the 5 domains
Questions
60
across 3 topics
Free, no account
5/day
sign up free to remove the cap
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 5 domains, in Learn mode.

Focused review

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Implement and manage storage questions, fully explained

Questions from the AZ-104 bank mapped to domain 2, with the answer key and the reasoning behind every option. None of them repeat the examples on the main AZ-104 practice page.

Question 1Implement and manage storage

A partner application needs read-only access to a single blob in a container for 24 hours. Your security team requires that storage account access keys are never used or distributed. What is the MOST secure way to grant this access?

Choose one.

  • a
    Generate an account SAS with read permission across all services

    An account SAS is signed with an account access key, violating the requirement, and granting access across all services is far broader than the single blob needed.

  • b
    Generate a service SAS for the container signed with key1

    A service SAS is still signed with a storage account access key, which the security team has ruled out, and container scope is wider than the single blob required.

  • c
    Share the storage account access key with the partner and ask them to use it only for reads

    An access key grants full authorization to the entire account and cannot be limited to read-only or to one blob; distributing it directly contradicts the requirement.

  • d
    Generate a user delegation SAS scoped to the blob with read permission and a 24-hour expiry Correct

    Correct. A user delegation SAS is signed with Entra ID credentials rather than an account key, and scoping it to one blob with read-only permission and a short expiry follows least privilege.

The concept

When granting temporary, delegated access to blob data, prefer a user delegation SAS: it is signed with Microsoft Entra ID credentials, can be scoped tightly to a resource and permission set, and avoids ever handling account keys.

Why that’s the answer

The user delegation SAS satisfies every constraint: no account key is used in signing, the scope is a single blob, the permission is read-only, and the expiry is 24 hours. The account SAS and service SAS options both fail because their signatures require an account access key, and the account SAS additionally over-grants across services. Handing out the access key itself is the worst option because keys confer full, non-scoped access to all data in the account.

How to reason it out
  1. Note the constraint: account access keys must not be used or shared, which eliminates account SAS, service SAS, and direct key distribution.
  2. Choose the user delegation SAS, which is signed with an Entra-issued user delegation key.
  3. Scope the SAS to the specific blob, grant only the read permission, and set the expiry to 24 hours.
  4. Deliver the SAS URL to the partner over a secure channel and require HTTPS-only access.

Exam tip: For time-limited delegated access without touching account keys, issue a tightly scoped user delegation SAS.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

Question 2Implement and manage storage

You issued service SAS tokens for a blob container, and each token references a stored access policy on that container. You must immediately revoke all of these tokens without affecting SAS tokens issued for other containers. What should you do?

Choose one.

  • a
    Rotate both storage account access keys

    Rotating both keys would revoke the tokens, but it also invalidates every other SAS signed with those keys across the entire account, which violates the requirement to leave other containers' tokens working.

  • b
    Change the container's public access level to private

    The public access level controls anonymous access only; it has no effect on SAS-authorized requests, which remain valid regardless of that setting.

  • c
    Delete the stored access policy that the SAS tokens reference Correct

    Correct. A service SAS that references a stored access policy is validated against that policy on every request, so deleting (or modifying) the policy immediately invalidates every token that references it, without touching anything else.

  • d
    Enable the storage account firewall and select all networks

    Allowing all networks changes nothing, and firewall rules restrict by network location rather than revoking specific SAS tokens; valid tokens from allowed networks would still work.

The concept

A stored access policy centralizes the permissions and expiry of the service SAS tokens that reference it. Because the policy is checked server-side on each request, changing or deleting it takes effect immediately for all dependent tokens.

Why that’s the answer

Deleting the stored access policy is the precise, surgical revocation mechanism: only tokens that reference that policy die, and every other SAS in the account keeps working. Key rotation is the blunt alternative, revoking every SAS signed with the rotated keys account-wide, which the scenario forbids. Changing the container access level only affects anonymous readers, and network rules gate by source network, not by token.

How to reason it out
  1. Confirm the issued service SAS tokens reference a stored access policy rather than carrying ad-hoc parameters.
  2. Delete the stored access policy on the container (or change its expiry to a past date).
  3. Verify a request using one of the revoked tokens now returns an authorization error.
  4. If access must continue for some clients, create a new policy and issue fresh SAS tokens against it.

Exam tip: Issue service SAS tokens against stored access policies so you can revoke them instantly by deleting the policy instead of rotating account keys.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

Question 3Implement and manage storage

You rotate key1 of a storage account. Several applications hold ad-hoc service SAS tokens that were signed with key1 and have not yet reached their expiry time. What happens to those tokens?

Choose one.

  • a
    They continue to work until their stated expiry time

    The expiry time only matters while the signing key is still valid; rotation invalidates the signature itself, so the tokens fail before expiry.

  • b
    Azure automatically re-signs them with key2

    Azure never re-signs issued SAS tokens; a token is a self-contained signed string, and the service can only validate or reject it.

  • c
    They become invalid immediately Correct

    Correct. A SAS signature is computed from the key that signed it; once that key is regenerated, the signature no longer validates and every request using the token is rejected, regardless of the expiry time.

  • d
    Only user delegation SAS tokens are affected by the rotation

    It is the opposite: user delegation SAS tokens are signed with an Entra-issued user delegation key and are unaffected by account key rotation, while key-signed tokens break.

The concept

Account SAS and service SAS tokens are signed with one of the two storage account access keys. Regenerating a key invalidates every SAS whose signature was produced with it, which is both the risk and the emergency revocation lever for ad-hoc SAS.

Why that’s the answer

Because the token's signature was computed with key1, validation fails as soon as key1 is regenerated, so the tokens are dead immediately, not at expiry. Azure has no mechanism to migrate a token to key2, and user delegation SAS tokens are the ones NOT affected by key rotation since they are signed with a user delegation key from Entra ID.

How to reason it out
  1. Recall that ad-hoc account and service SAS signatures are computed from a specific account access key.
  2. Recognize that regenerating that key breaks signature validation for every token it signed, effective immediately.
  3. Plan rotations accordingly: reissue SAS tokens signed with the other key first, or accept the outage.
  4. Remember that key rotation is the only way to revoke an ad-hoc SAS, which is why stored access policies or user delegation SAS are preferred.

Exam tip: Rotating an access key instantly invalidates every ad-hoc SAS signed with that key; only user delegation SAS tokens survive key rotation.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

Question 4Implement and manage storage

A data analyst must read blobs in a storage account using their Microsoft Entra ID identity. Following the principle of LEAST privilege, which built-in role should you assign?

Choose one.

  • a
    Reader

    Reader is a control-plane role: it lets the analyst see the storage account resource and its properties but grants no access to the blob data itself.

  • b
    Storage Blob Data Contributor

    Storage Blob Data Contributor allows reading, writing, and deleting blobs, which exceeds the read-only requirement and violates least privilege.

  • c
    Contributor

    Contributor grants broad control-plane management rights (and could be used to retrieve access keys), which is far more privilege than reading blob data requires.

  • d
    Storage Blob Data Reader Correct

    Correct. Storage Blob Data Reader grants data-plane read access to blob containers and data and nothing more, which is exactly what a read-only analyst needs.

The concept

Azure separates control-plane roles (managing the storage account resource) from data-plane roles (accessing the data inside it). Reading blob data with an Entra identity requires a data-plane role such as Storage Blob Data Reader.

Why that’s the answer

Storage Blob Data Reader is the narrowest built-in role that satisfies the requirement: read-only access to blob data via Entra ID authorization. Reader fails because control-plane visibility does not include data access. Storage Blob Data Contributor and Contributor both over-grant: the former adds write and delete on data, and the latter grants sweeping management rights including the ability to list access keys, effectively full data access.

How to reason it out
  1. Determine whether the requirement is control-plane (manage the account) or data-plane (read the data); here it is data-plane read.
  2. Shortlist the data-plane blob roles: Storage Blob Data Reader, Contributor, and Owner.
  3. Apply least privilege and pick the read-only role, Storage Blob Data Reader.
  4. Assign the role at the narrowest sensible scope, such as the specific container or storage account.

Exam tip: For Entra-based read-only access to blob data, assign Storage Blob Data Reader; the plain Reader role sees the resource but not the data.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

Question 5Implement and manage storage

An automation service principal must upload and overwrite blobs in one container using Microsoft Entra ID authorization. It must not be able to change container permissions or manage the storage account. Which role assignment meets the requirement with LEAST privilege?

Choose one.

  • a
    Storage Blob Data Owner scoped to the storage account

    Storage Blob Data Owner additionally allows managing POSIX access control, and account scope covers every container, so this grants more than the task needs on both axes.

  • b
    Contributor scoped to the storage account

    Contributor is a control-plane role that can manage the account and list access keys; it grants management rights the principal must not have.

  • c
    Storage Blob Data Contributor scoped to the container Correct

    Correct. This data-plane role allows read, write, and delete on blob data, which covers uploads and overwrites, and scoping it to the single container keeps the grant as narrow as possible.

  • d
    Storage Blob Data Reader scoped to the container

    Storage Blob Data Reader is read-only, so the service principal could not upload or overwrite any blobs.

The concept

Least privilege in Azure Storage means picking the narrowest data-plane role that covers the required operations and assigning it at the narrowest scope, which can be a single container.

Why that’s the answer

Uploading and overwriting are write operations on blob data, so the principal needs Storage Blob Data Contributor; scoping the assignment to the container limits blast radius. Storage Blob Data Owner over-grants because it adds permission management, and account-level scope widens access to all containers. Contributor is a control-plane role that could retrieve access keys and reconfigure the account. Storage Blob Data Reader simply cannot write.

How to reason it out
  1. List the operations required: create and overwrite blobs, which are data-plane writes.
  2. Match the operations to the smallest built-in role that includes them: Storage Blob Data Contributor.
  3. Reject roles that add unneeded rights (Data Owner, Contributor) or lack needed rights (Data Reader).
  4. Assign the role at container scope rather than storage account or resource group scope.

Exam tip: Match the smallest data-plane role to the operations needed and assign it at the narrowest scope, down to a single container.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

Question 6Implement and manage storage

You set AllowSharedKeyAccess to false on a storage account to disallow Shared Key authorization. Which of the following access methods will continue to work?

Choose one.

  • a
    An account SAS

    An account SAS is signed with an account access key, and disabling Shared Key authorization rejects any request authorized via those keys, including key-signed SAS.

  • b
    A service SAS signed with an access key

    A service SAS is also signed with an account access key, so it is blocked once Shared Key authorization is disabled.

  • c
    A user delegation SAS Correct

    Correct. A user delegation SAS is signed with an Entra-issued user delegation key, not an account access key, so disabling Shared Key authorization does not affect it.

  • d
    Direct requests authorized with the account access key

    This is exactly the authorization method being disabled; requests presenting the account key are rejected.

The concept

Disabling Shared Key authorization (AllowSharedKeyAccess = false) forces all requests to be authorized with Microsoft Entra ID. Anything whose validity chains back to an account access key stops working, including account SAS and service SAS.

Why that’s the answer

The user delegation SAS survives because its signature comes from a user delegation key obtained with Entra ID credentials, keeping it within the Entra authorization chain. The account SAS, the service SAS, and raw key auth all fail because each is validated against a storage account access key, which is precisely the mechanism that was turned off. This setting is how organizations enforce an Entra-only access posture.

How to reason it out
  1. Understand that AllowSharedKeyAccess = false blocks every request whose authorization derives from the account access keys.
  2. Classify each SAS type by its signing mechanism: account and service SAS use account keys; user delegation SAS uses an Entra-issued key.
  3. Conclude that only Entra-based methods keep working: direct Entra tokens with RBAC roles and user delegation SAS.
  4. Before flipping the setting in production, audit workloads for key or key-signed SAS usage to avoid outages.

Exam tip: Disabling Shared Key authorization kills account SAS and service SAS along with direct key access; only Entra ID tokens and user delegation SAS keep working.

Configure Access to Azure Storage: SAS, Keys & Firewalls (AZ-104) — the lesson that teaches this.

What AZ-104 domain 2 tests, topic by topic

The official exam guide breaks Implement and manage storage into 3 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published AZ-104 practice questions per topic in Implement and manage storage
TopicWhat it coversQuestions
Configure access to storageSkills outline section (AZ-104, as of April 17, 2026). Configuring Azure Storage firewalls and virtual networks; creating and using shared access signature (SAS) tokens; configuring stored access policies; managing access keys; configuring identity-based access for Azure Files.20
Configure and manage storage accountsSkills outline section (AZ-104, as of April 17, 2026). Creating and configuring storage accounts; configuring Azure Storage redundancy; configuring object replication; configuring storage account encryption; managing data by using Azure Storage Explorer and AzCopy.20
Configure Azure Files and Azure Blob StorageSkills outline section (AZ-104, as of April 17, 2026). Creating and configuring a file share in Azure Files and a container in Azure Blob Storage; configuring storage tiers; configuring soft delete for blobs and containers; configuring snapshots and soft delete for Azure Files; configuring blob lifecycle management and blob versioning.20
Total60

Revise Implement and manage storage before you drill it

Other AZ-104 domains

Implement and manage storage: your questions

Implement and manage storage is domain 2 of the AZ-104 exam guide and carries 19% of the scored content — the 3rd-heaviest of the 5 domains. On a 50-question paper that works out to roughly 10 questions, though Microsoft Azure does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official AZ-104 exam guide.