Microsoft AZ-104 Practice Test 23
Question 220
The security organization allows a temporary deviation from one Azure Policy for a single workload. How can it avoid weakening all subscriptions?
- Disable the restrictive policy assignment at the entire management-group root for the duration of this single resource exception.
- Use Azure Policy compliance state and assignment evaluation details for the reporting scope.
- Assign the location-deny Azure Policy at a suitable management-group ancestor.
- Create a narrowly scoped, justified Azure Policy exemption with expiration.
Explanation
Correct Answer
D:An exemption can document approved exceptions without globally removing the governing policy assignment. Scope and expiry control exposure. This matters here because the security organization allows a temporary deviation from one Azure Policy for a single workload. How can it avoid….
Incorrect Answers
A:Removing the parent assignment would weaken every inherited subscription rather than just the exceptional workload. An approved time-limited resource-scoped policy exemption is the narrowly targeted alternative.
B:Compliance records identify evaluated resources and policies with noncompliant states. A tag listing alone does not indicate whether a complex initiative passes. This matters here because the security organization allows a temporary deviation from one Azure Policy for a single workload. How can it avoid….
C:Management-group assignments apply to descendant subscriptions. A subscription-local policy would need repeated assignments for every child subscription. This matters here because the security organization allows a temporary deviation from one Azure Policy for a single workload. How can it avoid….
Question 221
An audit finds an expired policy exception still documented for a protected VM. What should the owner verify?
- Scope and time-limit an approved Azure Policy exemption for only the exceptional resource.
- Apply a modify policy effect with the necessary managed identity permissions for tag changes.
- Check the exemption's expiration, policy reference scope and compliance processing.
- Inspect the relevant Policy exemption and its category, scope and expiry.
Explanation
Correct Answer
C:A policy exemption should match the approved resource and duration. An expired exception should not continue to authorize noncompliance indefinitely.
Incorrect Answers
A:Governance deviations should be precise, justified and auditable. Removing the parent policy assignment for a single emergency would weaken all children.
B:Modify can add or change supported resource tags as requests are processed; it is different from an audit-only compliance report. This matters here because an audit finds an expired policy exception still documented for a protected VM.
D:Exempt resources may be excluded from ordinary compliance processing under an approved exception. An exemption is not proof the resource's underlying configuration satisfies the rule.
Question 222
A production resource group must not be deleted while administrators still update its VMs. Which management lock is suitable?
- Inspect and correct its management-group parent relationship after assessing inherited policies.
- Apply a CanNotDelete resource lock at the resource-group scope.
- Attach the CanNotDelete lock at the database resource scope.
- Assign an allowed-locations Azure Policy and assume it prevents deletion of the resource group while allowing VM updates.
Explanation
Correct Answer
B:A CanNotDelete lock at the resource-group scope protects the group and inherited applicable resources against deletion while generally allowing ordinary management writes. Some operations that implicitly replace or delete a resource can still fail, so test service-specific workflows.
Incorrect Answers
A:A subscription's parent management group controls inherited assignments. Moving it changes policy and RBAC conditions and needs impact review. This matters here because a production resource group must not be deleted while administrators still update its VMs. Which management lock is….
C:A resource-particular lock protects only the selected asset rather than every descendant in the resource group. Parent locks could have a wider blast radius.
D:An allowed-locations policy governs deployment locations and does not protect the resource group from deletion. A CanNotDelete management lock is the appropriate deletion-only protection.
Question 223
A developer can resize a VM but cannot delete it despite Contributor. What should be checked?
- Inspect inherited CanNotDelete locks on the VM or parent scopes.
- Inspect and correct its management-group parent relationship after assessing inherited policies.
- Review ReadOnly locks inherited from resource group or subscription scopes.
- Check the resource provider's move support, dependencies, locks and target scope.
Explanation
Correct Answer
A:Management locks are enforced independently of positive RBAC permissions. A delete lock may block Owner and Contributor deletion attempts.
Incorrect Answers
B:A subscription's parent management group controls inherited assignments. Moving it changes policy and RBAC conditions and needs impact review. This matters here because a developer can resize a VM but cannot delete it despite Contributor.
C:An Azure lock can block management operations even when the user holds Owner. The authorized lock owner must remove or adjust it before the write.
D:Some Azure resources or configurations cannot be moved between groups without prerequisites. Validation reduces broken dependencies.
Question 224
A freeze window must prohibit both modification and deletion of a protected network resource. Which lock should be set?
- Apply a ReadOnly management lock to the relevant resource.
- Correlate the current lock with Activity Log lock-management events at its scope.
- Apply only CanNotDelete when the freeze explicitly prohibits configuration changes as well as deletion.
- Use Azure Cost Management Cost analysis grouped by subscription.
Explanation
Correct Answer
A:ReadOnly locks disallow management-plane updates and deletes. Their effects differ from ordinary read permissions.
Incorrect Answers
B:The lock's visible current properties do not by themselves identify historical actors. Operation records supply change provenance where retained. This matters here because a freeze window must prohibit both modification and deletion of a protected network resource. Which lock should be set.
C:CanNotDelete generally permits write operations that do not delete a resource, so it is insufficient for a full change freeze. ReadOnly blocks management-plane writes and deletes at the protected scope, subject to operational implications.
D:Cost analysis supports date filters and subscription groupings. The Activity Log records management operations rather than authoritative cost totals.
Question 225
A storage workload must be reachable from only approved corporate public IPv4 ranges. Which storage network configuration enforces this?
- Configure the storage account firewall's selected public IP address rules.
- Create a private endpoint and assume corporate offices using only public Internet addresses are now allowlisted.
- Review the specific trusted-services exception and its supported service eligibility.
- Enable the Microsoft.Storage service endpoint on the subnet and add that subnet to the storage VNet firewall rules.
Explanation
Correct Answer
A:Storage network ACLs restrict accepted source networks. A correct SAS does not override a rejected source IP.
Incorrect Answers
B:A private endpoint serves private-address routes and DNS. If the requirement is public endpoint access limited to approved corporate IPv4 egress ranges, configure storage firewall selected-networks IP rules for those observed public addresses.
C:Trusted-service bypass is a defined network exception for supported workloads. It is not a blanket pass for every Azure-hosted VM.
D:Service endpoints identify approved VNet subnets to the service, but the storage account must also permit the selected subnet.
Question 226
A valid SAS consistently returns network authorization errors from an unlisted office address. What must be checked?
- Compare the caller's observed public IPv4 egress address with the storage firewall allowlist.
- Compare the VPN's public egress address to the SAS signed IP range.
- Reissue the same SAS token and assume a fresh signature bypasses storage network restrictions.
- Grant SMB share permissions and assume they bypass the Blob service's storage firewall for an unlisted office IP.
Explanation
Correct Answer
A:NAT and corporate proxy egress addresses may differ from the client's private address. A matching token cannot bypass an excluded network.
Incorrect Answers
B:SAS source IP conditions are evaluated against the observed network source. Switching paths can invalidate an otherwise correctly signed token. This matters here because a valid SAS consistently returns network authorization errors from an unlisted office address.
C:SAS authorization and storage network authorization are separate checks. A newly signed SAS still fails from an office IP that the storage firewall excludes; inspect allowed public IP ranges, selected networks, or the approved private route instead.
D:File-share authorization doesn't change the Blob endpoint's network allowlist. A valid SAS still needs a permitted public address, selected network or private endpoint route.
Question 227
A VNet subnet needs to reach storage through service-endpoint-based routing while remaining on an allowlisted subnet. Which configuration pair is required?
- Inspect VNet routing, DNS resolution, private endpoint state and network rules.
- Inspect diagnostic settings, selected log categories, destination and retention configuration.
- Enable the Microsoft.Storage service endpoint on the subnet and add that subnet to the storage VNet firewall rules.
- Configure the storage account firewall's selected public IP address rules.
Explanation
Correct Answer
C:Service endpoints identify approved VNet subnets to the service, but the storage account must also permit the selected subnet. This matters here because a VNet subnet needs to reach storage through service-endpoint-based routing while remaining on an allowlisted….
Incorrect Answers
A:Connectivity failures are not repaired by adding unrelated RBAC permissions. Verify the private IP path before investigating authorization. This matters here because a VNet subnet needs to reach storage through service-endpoint-based routing while remaining on an allowlisted….
B:Platform metrics do not imply that resource logs were exported. Diagnostic routing and log categories must be explicitly supported and enabled.
D:Storage network ACLs restrict accepted source networks. A correct SAS does not override a rejected source IP. This matters here because a VNet subnet needs to reach storage through service-endpoint-based routing while remaining on an allowlisted….
Question 228
A second subnet in the same VNet cannot reach storage after the first was allowlisted. What should be verified?
- Check the second subnet's service endpoint configuration and individual storage firewall rule.
- Rotate storage account keys instead of checking the second subnet's storage network rule.
- Check TCP port 445 reachability and intervening firewall or ISP rules.
- Identify whether the client relies on account-key-signed SAS rather than Entra-backed authorization.
Explanation
Correct Answer
A:Allowing one subnet does not automatically allow every sibling subnet. Service endpoint and storage ACL changes are subnet-specific.
Incorrect Answers
B:Key rotation changes credentials but cannot make an unlisted VNet subnet satisfy a storage firewall rule. Confirm that the second subnet's service endpoint or private connectivity and associated network rules actually permit its traffic.
C:Correct DNS and private endpoint state do not guarantee SMB connectivity. Network filtering of TCP 445 can block mounting.
D:Account SAS depends on shared-key authorization. User delegation SAS and supported Entra authorization use different mechanisms.
Question 229
A storage service requires exclusively private VNet ingress without public endpoint access. Which architecture supports this?
- Create a private endpoint targeting the storage file service.
- Configure the relevant storage private endpoint and disable public network access.
- Link and populate the appropriate privatelink.blob.core.windows.net private DNS zone for the VNet.
- Set the signed SAS protocol field to HTTPS only.
Explanation
Correct Answer
B:A private endpoint gives the chosen storage subresource a private IP path. The public endpoint can be disabled for stronger private-only exposure.
Incorrect Answers
A:Azure Files SMB uses the file subresource. A blob private endpoint secures a different host name and protocol endpoint.
C:Private endpoint routing requires client DNS to resolve the public service hostname through its private-link record to the private IP.
D:A bearer SAS token can be exposed over insecure transport. Protocol restriction prevents use over unencrypted HTTP.
Question 230
A blob private endpoint works but Azure Files SMB traffic still resolves a public file endpoint. What is missing?
- Check TCP port 445 reachability and intervening firewall or ISP rules.
- Create and approve a separate file-subresource private endpoint and its DNS mapping.
- Identify whether the client relies on account-key-signed SAS rather than Entra-backed authorization.
- Inspect the browser preflight request and storage CORS response headers.
Explanation
Correct Answer
B:Private endpoints target storage subresources such as blob or file independently. A blob endpoint does not privately expose the file service.
Incorrect Answers
A:Correct DNS and private endpoint state do not guarantee SMB connectivity. Network filtering of TCP 445 can block mounting. This matters here because a blob private endpoint works but Azure Files SMB traffic still resolves a public file endpoint. What is missing.
C:Account SAS depends on shared-key authorization. User delegation SAS and supported Entra authorization use different mechanisms. This matters here because a blob private endpoint works but Azure Files SMB traffic still resolves a public file endpoint. What is missing.
D:Browsers enforce cross-origin policy while command-line clients normally do not. The difference can arise even when the underlying authentication succeeds.