Microsoft AZ-104 Exam Dumps, Practice Test Questions

100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

Microsoft AZ-104 Premium Bundle
$79.97
$59.98

AZ-104 Premium Bundle

  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

AZ-104 Premium Bundle

Microsoft AZ-104 Premium Bundle
  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

Microsoft AZ-104 Practice Test 25

Question 240

An administrator issues an Azure Storage account SAS for Blob Storage with signed services ss=b, resource types srt=sc, and Read permission sp=r. The token can authorize applicable service-level and container-level reads, but a client receives an authorization failure when it calls Get Blob for a particular object. Time, signature and network restrictions have been confirmed valid. Which SAS field should change?

  1. Change ss=b to ss=f because blob objects are represented as Azure Files
  2. Keep srt=sc and add List permission to sp so the object-level Get Blob operation is allowed
  3. Include object-level resource type o in signedResourceTypes while retaining the Blob service and Read permission
  4. Replace the SAS expiry with an indefinite timestamp because object reads require nonexpiring account SAS tokens

Explanation

Correct Answer

C:

For an account SAS, srt lists signed resource types: s for service APIs, c for container APIs and o for object APIs. The Get Blob operation requires signed Blob service b, object type o and Read permission r. The original srt=sc lacks o, so adding it (such as srt=sco) enables the needed object-level authorization subject to all other SAS constraints.

Incorrect Answers

A:

The signed services field b correctly identifies the Blob service for Get Blob. Changing it to f would scope the SAS to Azure Files instead, causing further authorization failures for Blob endpoints. The resource type, not the service code, is the missing dimension for this particular object request.

B:

List is used for supported listing operations at service or container level; it does not convert a service/container scoped account SAS into an object scoped token. Get Blob is an object-level read operation, so a missing object resource type cannot be compensated by adding an unrelated signed permission.

D:

A valid expiry is already established and does not distinguish service-level from object-level operations. Infinite SAS validity is not a supported solution to resource-type scoping, and unnecessarily long expiry creates additional credential exposure. The decisive field is the signed resource types.

Question 241

A blob storage incident responder discovers that several user delegation SAS tokens signed with the same delegation key may have leaked. Waiting for each SAS expiry is unacceptable. Which account-side response directly invalidates the related delegation-key authorization?

  1. Revoke the active user delegation keys on the storage account
  2. Delete only a stored access policy from a blob container
  3. Move the storage account to a different resource group
  4. Regenerate one storage account shared access key and assume it selectively revokes user delegation SAS tokens

Explanation

Correct Answer

A:

A user delegation SAS is signed by a user delegation key associated with Entra authorization. Revoking those keys invalidates issued SAS tokens based on them, although it can disrupt other clients using the same key.

Incorrect Answers

B:

User delegation SAS tokens cannot use stored access policies. Removing one would not invalidate these delegation-key-signed tokens.

C:

An ARM resource-group move does not revoke the cryptographic delegation key that signs outstanding SAS tokens. Their authorization would remain.

D:

A user delegation SAS is signed with a user delegation key obtained through Microsoft Entra authorization, not with an Azure Storage account shared key. Rotating an account key affects Shared Key-authenticated SAS credentials, but it does not selectively invalidate the leaked user delegation SAS family. Revoke user delegation keys for this account instead.

Question 242

A security engineer issues Microsoft Entra-authorized user delegation SAS tokens for Blob Storage. A requester asks for a token valid for 12 days, arguing that the storage account SAS expiration policy permits 30 days. What is the correct response for a user delegation SAS?

  1. Issue the 12-day token because any account-level upper limit overrides user delegation key expiry
  2. Use a stored access policy on the blob container to extend the user delegation token beyond seven days
  3. Limit the user delegation SAS to at most seven days and use a new authorization flow for longer access
  4. Disable storage account key authentication so user delegation SAS can have unlimited validity

Explanation

Correct Answer

C:

Microsoft limits user delegation SAS validity to seven days regardless of a more permissive account SAS policy. For a 12-day workflow, issue a fresh short-lived credential through an appropriate authenticated service rather than claiming a single token lasts longer.

Incorrect Answers

A:

A storage-account SAS policy can specify an upper recommended or enforced interval, but it does not remove the independent maximum on a user delegation SAS. An expiry longer than the delegation key can authorize is not made valid by a permissive account setting.

B:

Stored access policies are associated with service SAS rather than changing a user delegation SAS key’s validity cap. Adding a container policy does not turn a 12-day user delegation token into a supported credential.

D:

Disabling shared-key authorization can be a security hardening measure, but it does not remove token expiry or expand the maximum lifetime of user delegation SAS credentials. The lifetime constraint remains in force.

Question 243

A legacy integration already maintains five named stored access policies on one Azure Blob container. A sixth team asks for another separately revocable service SAS policy on that same container. What limitation must the administrator plan around?

  1. A blob container supports a maximum of five stored access policies at once
  2. A container supports unlimited policies as long as each SAS has a distinct IP restriction
  3. The limit applies only to Azure Files shares, never Blob containers
  4. Use a longer signed identifier and assume the five-policy limit increases

Explanation

Correct Answer

A:

Stored access policies are limited per resource; an additional identifier cannot simply be added as policy six. The team should redesign policy sharing or use another appropriately scoped approach without assuming unlimited server-side groups.

Incorrect Answers

B:

IP restrictions do not increase the maximum stored access policies supported by the service. An additional identifier still exceeds the container limit.

C:

Stored access policies exist on several storage service resource types, including blob containers. The container itself is subject to the five-policy limit.

D:

Signed identifiers distinguish policies but their length does not change the maximum count. A sixth identifier still exceeds the per-resource stored access policy limit.

Question 244

A team has just added a valid named stored access policy to an Azure Blob container and generated a service SAS linked to that identifier. Some test requests receive 403 for the first few seconds, although the service accepts the exact same unchanged SAS shortly afterward. The firewall, signature fields and clock are correct. What operational behavior explains the brief failure?

  1. A new or modified container stored access policy can take up to about 30 seconds to become effective, during which a linked service SAS can temporarily fail
  2. Every new service SAS is unusable until the storage account access keys are regenerated, even if the token signature is correct
  3. A Blob container stored access policy is validated only after a complete 24-hour expiry-cycle refresh, so access must remain unavailable for a day
  4. The SAS requires anonymous container public-read to be enabled before the stored policy can be recognized

Explanation

Correct Answer

A:

A Blob container's stored access policy has a documented activation delay of up to roughly 30 seconds after Set Container ACL creates or changes it. Until the policy identifier is active, the service SAS that references it may return 403 even with correct permissions, signature and endpoint routing. The unchanged token working shortly afterward fits propagation delay; initial short retries should not be mistaken for a permanent key failure.

Incorrect Answers

B:

Rotating the account access key would invalidate existing tokens signed with that key rather than activate the newly created stored policy. The valid SAS already begins working once server-side policy changes propagate. Regeneration is a response to a compromised signing credential, not a prerequisite for every legitimate service SAS associated with a new policy identifier.

C:

Azure Storage documents an approximately 30-second, not 24-hour, activation interval for stored access-policy updates. Waiting a whole day would neither diagnose a real authorization problem nor be required for a correctly configured signed identifier. If the problem persisted beyond propagation, inspect the policy, token fields and timestamps rather than assume an arbitrary daily refresh cycle.

D:

Service SAS authorization can be used regardless of whether anonymous blob read is enabled; the signed token and any referenced access policy govern access. Turning on public anonymous access would weaken the container's security boundary without activating the stored policy. The brief 403 response following creation is compatible with policy propagation, not a public-access prerequisite.

Question 245

An engineer creates a service SAS where `sp` permissions and `se` expiry are specified in its URI, then associates it with a stored access policy that also defines the same fields. The combination is rejected by the storage service. What restriction was violated?

  1. Shorten the SAS expiry in its `se` field while retaining the stored access policy's separate expiry value
  2. Specify each applicable constraint either in the signed SAS fields or in the stored access policy, not redundantly in both
  3. Give the stored access policy the same `sp` permissions as the SAS URL so the duplicate values agree exactly
  4. Regenerate the SAS signature with a new account key but keep overlapping `sp` and `se` fields in both the URI and policy

Explanation

Correct Answer

B:

Stored policy semantics require a consistent source of signed permissions and validity bounds. Duplicating the same constraint in both locations creates an invalid combination rather than two independent restrictions.

Incorrect Answers

A:

Changing the numeric expiry does not resolve the conflict when the same signed constraint is supplied in both the SAS and stored access policy. Choose one source for that constraint.

C:

Even matching permissions cannot be defined redundantly in both places for the bound service SAS. The constraint must be specified in one place, not both.

D:

Changing the signing key does not remove a signed-field versus stored-policy constraint conflict. The SAS and stored access policy still define the same permission and expiry independently.

Question 246

A security team issued multiple service SAS URLs without associating them with stored access policies. After discovering that one URL was exposed, they ask to retroactively add it to a policy so that only that token can be revoked. What is the relevant design limitation?

  1. Delete only the blob's metadata tags to invalidate the URL
  2. Enable a storage resource management lock to revoke the SAS
  3. An already issued ad hoc SAS cannot simply be edited into a stored-policy-linked signature
  4. Create a new policy and expect all existing service SAS URLs to inherit it automatically

Explanation

Correct Answer

C:

SAS query fields and signed identifiers are covered by the signature. Future service SAS URLs can be issued with a policy link, but previously distributed ad hoc URLs need an available key-rotation or expiry response.

Incorrect Answers

A:

Blob tags do not define the signature's cryptographic validity. The leaked token can remain usable until its signed constraints or signing credential are invalidated.

B:

ARM locks do not update the signature or add a policy reference to an issued bearer token. They are not SAS revocation controls.

D:

Unlinked tokens carry no stored policy identifier. A policy created later cannot be applied to those previously signed URLs by name alone.

Question 247

An account with hierarchical namespace enabled contains a Blob container/filesystem named projects and a nested directory exports/2026. An application generates a key-signed service SAS using authorization version 2020-02-10 or later. It must allow permitted reads only inside exports/2026 and its descendants, not the rest of projects. Which directory-specific SAS fields are required in addition to the correctly signed canonical path and permissions?

  1. Set sr=c and omit sdd because container scope is automatically restricted to the path in a user interface
  2. Set sr=d and sdd=2 for the two directory segments exports/2026
  3. Set sr=b and sdd=0 because the filesystem directory should be treated as one blob at the container root
  4. Set srt=o with sr=c, because account SAS object resource types can replace directory-scoped service SAS fields

Explanation

Correct Answer

B:

For a directory-scoped service SAS on a supported hierarchical namespace account, sr=d selects the directory resource and sdd records the number of nested directory components beneath the container root. The path exports/2026 has depth two, so sdd=2 accompanies sr=d and the canonical directory path. This scopes delegated operations to that directory subtree, subject to valid permissions and signature.

Incorrect Answers

A:

The sr=c value permits container-level operations on the named container and does not itself constrain the token to exports/2026. Omitting signed-directory depth also fails the specific directory-scope field requirement. A correctly constructed directory SAS needs the directory resource type with its depth and canonicalized directory resource, not an assumed UI folder limitation.

C:

The sr=b resource type scopes a signature to an individual blob, not an ADLS Gen2 directory subtree. Depth zero refers to the container root, not the two nested segments in the question. Neither the requested descendant access nor the directory-depth requirement is satisfied by pretending a directory is an ordinary root blob.

D:

The srt resource-type list is a parameter of account SAS, whereas this scenario explicitly generates a service SAS. It does not substitute for the service SAS signedResource=directory field or the mandatory sdd depth. Mixing token-model fields fails the intended directory-bound authorization design, even if the overall account also supports account SAS.

Question 248

A storage account has a SAS expiration policy with a one-hour upper interval and the Block action. A service SAS is linked to a Blob container stored access policy that grants a three-hour window. The security reviewer expects the account-level SAS expiration Block action to reject this policy-linked service SAS for exceeding one hour. Which documented exception changes that expectation?

  1. The SAS expiration Block action is not supported for a service SAS governed by a stored access policy; enforce its effective time window using the stored policy itself
  2. The storage firewall ignores all service SAS requests whenever a container has any access policy
  3. The SAS expiration Block action automatically extends the stored policy to the upper interval rather than denying requests
  4. Every service SAS becomes a user delegation SAS whenever a stored access policy supplies its expiry

Explanation

Correct Answer

A:

Microsoft documents an important exception to the SAS Expiration Action: the Block mechanism is not supported for service-level SAS tokens linked to stored access policies. Such a token still has time and permission constraints from its referenced container policy, but the storage account's one-hour Block rule is not the mechanism enforcing those constraints. Security must configure the stored policy appropriately or redesign issuance for centrally enforced limits.

Incorrect Answers

B:

A container stored access policy is a legitimate mechanism for governing service SAS, not a blanket firewall deny rule. The account's network rules determine permitted origins separately, while the signed token is assessed against the referenced policy identifier. Simply having any policy does not cause all service SAS requests to be dropped by the storage network firewall.

C:

The account SAS expiration policy does not edit stored access policies or extend their allowed intervals to match a global setting. The Block action, where supported, denies out-of-policy requests rather than modifying their credentials. For this service-SAS/stored-policy exception, the stored access policy controls the token's actual start, expiry and permissions, and administrators should not assume automatic one-hour rewriting.

D:

A stored policy applies to service SAS tokens signed with the storage account key. User delegation SAS instead relies on a Microsoft Entra-issued delegation key and cannot be bound to a stored access policy. Supplying expiry from a container policy does not convert the token's cryptographic authorization type or give it Entra-based user delegation semantics.

Question 249

A legacy service still authenticates to Azure Storage using an account key. The platform team plans regular rotation while avoiding a cutover that invalidates all clients at once. What rotation sequence uses the storage account’s two keys safely?

  1. Regenerate both account keys in a single step before updating clients
  2. Regenerate the currently used storage key and then update applications during the same maintenance window
  3. Update clients to the alternate valid key, regenerate the unused key, then repeat for the other key
  4. Rotate the SAS expiration policy while leaving the storage account signing keys unchanged

Explanation

Correct Answer

C:

With two active keys, clients can migrate to the still-valid alternate key before the unused key is regenerated. Repeating the procedure safely rotates both while avoiding all-client invalidation.

Incorrect Answers

A:

Regenerating both keys without updating clients invalidates every existing connection string that uses them. The service could lose access immediately.

B:

Regenerating an in-use key first immediately invalidates clients presenting that key. They must switch to an alternate valid key before regeneration to avoid service interruption.

D:

SAS expiries can limit token lifetime, but they do not rotate the underlying account keys used by existing legacy connection strings. The key rotation obligation remains unmet.

Question 250

A security policy mandates Entra-based authorization for Blob Storage rather than SAS or API requests signed directly with the storage account key. The team has migrated clients to Entra access. Which storage account setting should it consider enforcing?

  1. Publish both access keys as read-only metadata in a shared document
  2. Remove Azure RBAC Blob Data Contributor from all migrated applications
  3. Enable anonymous access for all blob containers
  4. Disallow Shared Key authorization for the storage account after validating workload compatibility

Explanation

Correct Answer

D:

Disabling Shared Key access rejects supported requests authorized with the account key, strengthening the intended Entra-based access boundary. Compatibility must be checked for applications that still rely on the key.

Incorrect Answers

A:

Account keys grant powerful data authorization; publishing them increases exposure and contradicts the prohibition on key-based access.

B:

The applications need Entra data-plane authorization. Removing their roles would break authorized access without controlling legacy Shared Key calls.

C:

Anonymous blob access bypasses the identity boundary that the policy is trying to establish. It does not disable requests signed with a storage key.

Microsoft Azure Administrator (AZ-104) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.