100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 220
An Azure Storage account has a restrictive firewall. A first-party Azure resource outside the approved subnets needs access using its managed identity, and this resource type supports storage resource-instance network rules. The team wants a narrow exception rather than allowing all trusted Microsoft services. Which control should be evaluated?
- Add a supported resource-instance network rule for the precise Azure resource, with appropriate data authorization
- Enable the entire trusted Microsoft services bypass for every Microsoft-operated service
- Turn the default storage firewall action to Allow for all public networks
- Grant the managed identity subscription Owner and leave the firewall unchanged
Explanation
Correct Answer
A:Resource-instance rules can allow certain selected Azure service resources through an account's network firewall. They are narrower than globally trusting a service category, and do not eliminate the need for identity permissions.
Incorrect Answers
B:That exception may authorize a broader set of eligible services than the one named resource instance. It does not meet the request for a narrow, resource-specific network allowance.
C:A permissive default would remove the account's intended network isolation. The design explicitly requires a narrow exception under an otherwise restrictive firewall.
D:Owner can authorize management operations but cannot replace a network rule permitting packets to the storage endpoint. Both layers must be satisfied.
Question 221
A storage account permits blob traffic through an approved private endpoint. A workload VM in the linked VNet resolves the blob service name to the endpoint's private IP and has valid Blob Data Reader authorization. The account's public endpoint firewall defaults to Deny, and the VM subnet is not on the public firewall allowlist. Which assessment of the access path is accurate?
- The private endpoint path can work; storage public-endpoint firewall rules don't evaluate traffic through an approved private endpoint
- The private endpoint is blocked unless the VM's private RFC1918 subnet is added as a public IP firewall allow rule
- All private endpoint requests must still leave the VNet through an Internet public IPv4 address to reach Blob Storage
- Storage firewall rules confer Blob Data Reader permissions, so the identity role can be removed without affecting authorization
Explanation
Correct Answer
A:Azure Storage firewall network rules restrict traffic arriving through the account's public endpoint; they don't govern packets delivered through an approved private endpoint. Here the workload resolves to the private IP and already has data-plane authorization, so public firewall allowlisting isn't needed for this connection. Other private-endpoint network policies may still apply.
Incorrect Answers
B:A public IP firewall rule expects an allowed public source; it is not a way to allow private RFC1918 addresses on an approved Private Link path. The scenario explicitly uses a private endpoint. Adding an unrelated address would not be the necessary control and could enlarge the public exposure surface.
C:A private endpoint gives the service a private IP inside the consumer VNet, and clients can reach it over private routing when DNS is correct. The public IPv4 route is precisely what private endpoint connectivity is intended to avoid. The public firewall's default Deny applies to the public path, not this already approved private endpoint.
D:A network rule and a data-plane role solve different problems. The private endpoint supplies a network route, while the storage service still checks the client's credential and Blob data permissions. Removing Blob Data Reader from this read-only workload could produce authorization errors even with a functioning private endpoint.
Question 222
An operations team allows a VM subnet through a storage firewall and confirms network connectivity. The application still receives a 403 when attempting to upload a blob using its Entra managed identity. What additional boundary must be validated?
- Assign the managed identity Reader at subscription scope and assume inherited management read rights permit Blob uploads
- Grant Storage Blob Data Reader to the managed identity and assume that permits Put Blob write requests
- Verify the managed identity has a suitable Storage Blob Data role for the target container
- Remove the VNet rule because reachable clients automatically have write privileges
Explanation
Correct Answer
C:Passing a storage account firewall only permits network traffic to reach the service. A blob upload still requires data-plane authorization, and an identity with Reader or no data role will be denied.
Incorrect Answers
A:Subscription Reader permits viewing resource metadata, not creating blob objects. Storage Blob Data Contributor or another supported data-plane permission must be effective at the destination container scope.
B:Storage Blob Data Reader grants read operations but not the create or write DataActions required for uploading. Firewall access and an appropriate data role are independent requirements.
D:Removing the rule can make connectivity worse and does not add DataActions. Network and identity permissions are cumulative security boundaries, not replacements.
Question 223
An internal analytics process needs read-only access to selected blobs for the next two hours. The organization forbids storage account keys in application deployments and prefers Entra-based delegated authorization. Which temporary access mechanism should the administrator issue?
- A shared-key account SAS with full service permissions
- An anonymous public container
- A user delegation SAS with read permission and a short expiry
- An unrestricted storage account connection string
Explanation
Correct Answer
C:A user delegation SAS derives signing authority from Microsoft Entra credentials instead of a storage account key. Restricting its resource, read permission, and expiry directly fits the temporary analytics need.
Incorrect Answers
A:An account SAS is signed using an account key, contradicting the restriction on account-key material. Broad service permissions would also grant more than the read-only analytics task requires.
B:A public container bypasses the authenticated, time-limited access requirement and may expose data to anyone who knows the objects. It provides no two-hour authorization boundary.
D:A connection string containing a storage account key conveys long-lived broad authority unless separately controlled. It would defeat the credential policy and the required minimum permissions.
Question 224
An automated data-import partner needs a temporary read SAS for a container but will access it only from a documented static public IP. The organization wants to reduce use of the token if it leaks elsewhere. What optional SAS restriction is most relevant?
- Constrain the SAS permitted IP range to the partner’s static egress address
- Increase the SAS expiry to several years so tokens are not renewed often
- Give the partner a shared storage account key instead of a scoped SAS
- Rename the storage account after distributing its SAS
Explanation
Correct Answer
A:A SAS IP constraint restricts requests presenting the token to specified source addresses, reducing where the bearer token can be used. It supplements rather than replaces expiry and least privilege.
Incorrect Answers
B:Long expirations enlarge a leaked token’s exposure window and do not restrict access by source address. This worsens the specified threat.
C:A storage key is broader than the single read task and can be used to sign other requests. It does not implement the desired token IP scope.
D:Renaming a storage account is not a supported routine SAS access-control technique. It would disrupt endpoints rather than safely constrain source IPs.
Question 225
A reporting vendor only needs to download existing CSV blobs for two hours and must not be able to modify or remove any blobs. The team is constructing a short-lived SAS for the relevant container. Which SAS permission set best fits?
- Grant read and any strictly required listing permissions, omitting write and delete
- Include read, write and delete because the token expires in two hours
- Grant account-service administration instead of blob read
- Give the vendor the storage account root access key
Explanation
Correct Answer
A:SAS operation flags restrict data actions. Read enables downloads, and list is needed only if the client must enumerate contents; excluding write/delete prevents those operations via the token.
Incorrect Answers
B:Expiry limits lifetime but does not prevent destructive operations during that period. Unneeded write/delete permissions violate the stated requirement.
C:Account-service operations are broader and do not match the vendor’s single data download task. A scoped container permission is more appropriate.
D:A shared account key can authorize far more than reading the requested blobs and lacks the fine-grained operation scope of the SAS.
Question 226
A batch service must read from Azure Blob Storage and write to Azure Queue Storage using one time-limited SAS policy authorized by the storage account key. The service uses supported classic storage APIs. Which SAS type can cover both services?
- Two independent Blob container SAS tokens with different expiry times
- A blob-scoped service SAS with Read and Add permissions
- An account SAS configured for the Blob and Queue services and appropriate permissions
- A user delegation SAS with the Blob List permission
Explanation
Correct Answer
C:An account SAS can specify multiple supported storage services, resource types, operations, and validity bounds. It fits the required cross-service delegation when appropriately constrained.
Incorrect Answers
A:Both tokens remain Blob-specific; an additional Blob SAS is not a queue authorization path or one cross-service token.
B:A Blob service SAS cannot grant write operations in Azure Queue Storage; it is constrained to the service for which it is signed.
D:Current Microsoft documentation supports user-delegation SAS authorization for multiple Azure Storage services. But the proposed token explicitly grants Blob List, not the Queue write operation, and uses an Entra-derived signing key rather than the account-key authorization required by this scenario. An appropriately scoped Shared-Key account SAS meets the combined requirement.
Question 227
A vendor receives an otherwise valid SAS URL for a single report blob and successfully downloads it. They then attempt to enumerate every blob in the container with the same URL and receive an authorization error. What is the intended boundary?
- Assign Storage Blob Data Reader to the container without changing the SAS
- Set the container anonymous access level to Blob
- A blob-scoped SAS does not automatically grant list permission at container scope
- Add the Read permission to the existing single-blob SAS
Explanation
Correct Answer
C:A SAS grants only its specified resource and permissions. A token intended for one blob cannot be assumed to authorize container listing, which requires a suitable resource scope and list permission.
Incorrect Answers
A:An RBAC role can authorize an Entra-authenticated client, but it does not retroactively widen the permissions or resource scope encoded in a separately signed SAS URL.
B:Blob-level anonymous access, where permitted, grants direct blob reads, not container listing; it also changes public exposure against the least-privilege design.
D:The token already permits the individual blob download; Read does not grant container enumeration, which needs suitable container scope and List permission.
Question 228
A developer wants to grant a partner time-limited access to an Azure Files SMB share and proposes generating a Blob user delegation SAS using the employee’s Microsoft Entra identity. Why does this approach not meet the protocol requirement?
- Rotate the Azure Files account key while leaving the partner without share identity access
- A Blob user delegation SAS is not the identity-based SMB access mechanism for an Azure Files share
- Issue a service SAS for the file endpoint and assume Windows SMB will accept it as a Kerberos ticket
- Grant Storage Blob Data Contributor and expect it to permit SMB file writes
Explanation
Correct Answer
B:This option is correct for the requested SMB protocol: a Blob-scoped SAS token is not a Kerberos ticket and cannot authorize identity-based SMB mounts. Azure Files can use user delegation SAS for supported FileREST requests, but that is separate from SMB authentication and its share-level plus NTFS authorization requirements.
Incorrect Answers
A:Key rotation does not create an SMB-authenticated partner principal with appropriate share-level and file-level rights.
C:Even where SAS can authorize supported Azure Files REST actions, SMB identity authentication uses a separate mechanism and cannot accept a SAS as a Kerberos ticket.
D:Blob Data Contributor covers Blob Storage data actions rather than Azure Files SMB share and NTFS file permissions.
Question 229
An application authenticates using Microsoft Entra ID and has object-read access to a blob container. It now attempts to create user delegation SAS URLs but receives authorization failure while requesting the user delegation key. Which permission category is missing?
- Storage Blob Data Reader scoped to the container only
- Permission to generate a user delegation key at the storage account/blob service scope, in addition to the required data permissions
- Storage Blob Data Contributor scoped only to the blob container
- A public access flag on the blob container
Explanation
Correct Answer
B:Generating a user delegation SAS first requires authorization for the generateUserDelegationKey action at an appropriate scope. Container data read permissions alone do not necessarily confer this management action.
Incorrect Answers
A:Blob Data Reader can authorize object read, but a container-level data role does not necessarily include the storage account-level generateUserDelegationKey action requested by the signing operation.
C:This grants container data-plane operations but does not replace the separate delegation key generation permission at the required storage scope.
D:Public anonymous access is neither required nor appropriate for generating time-limited Entra-secured SAS credentials.
Question 230
A service generates a blob SAS on an application server whose clock is five minutes fast. Newly issued tokens fail immediately but succeed later. The permissions and expiry are valid. What change addresses the observed timing problem?
- Use UTC time accurately and avoid a future start time, allowing for clock skew when issuing SAS
- Increase the SAS expiry time by one hour but keep its future start time
- Regenerate the storage account key while retaining the invalid start time in the new SAS
- Enable a stored access policy with the same future start time
Explanation
Correct Answer
A:A SAS is time-bound, and a start time in the future relative to Azure Storage makes it not yet valid. Correct time synchronization or omitting a restrictive start when appropriate avoids this delay.
Incorrect Answers
B:The token remains not yet valid until its signed start time is reached, regardless of how long the expiry is extended. The clock skew remains unaddressed.
C:Key rotation changes which signatures are valid, but a newly signed token still fails when its start time lies ahead of Azure Storage time. It is not the timing correction.
D:A stored access policy can constrain a service SAS, but the future start still prevents immediate use. The server-side policy does not fix the issuer clock.
Microsoft Azure Administrator (AZ-104) Practice Tests