Microsoft AZ-104 Practice Test 13
Question 120
A subscription recently moved under a management group now fails formerly permitted deployments. What should be inspected?
- Review role assignments inherited from the management-group tree after reparenting.
- Inspect and correct its management-group parent relationship after assessing inherited policies.
- Review inherited policy assignments at the subscription's new management-group ancestry.
- Assign Azure Policy restricting permitted virtual machine SKUs across the desired scopes.
Explanation
Correct Answer
C:A management hierarchy move changes effective ancestor governance. A child's local settings cannot simply override an inherited deny effect.
Incorrect Answers
A:Changing the management-group ancestry changes ancestor role inheritance. The permission may originate above the subscription. This matters here because a subscription recently moved under a management group now fails formerly permitted deployments.
B:A subscription's parent management group controls inherited assignments. Moving it changes policy and RBAC conditions and needs impact review.
D:Policies can evaluate requested SKU properties and deny nonapproved sizes. A budget alert detects cost but cannot reliably block an invalid SKU.
Question 121
A business wants new resources to carry the costCenter tag even if deployment authors omit it. Which Azure Policy effect is appropriate?
- Start with Azure Policy audit effect and inspect compliance impact before enabling deny.
- Apply a modify policy effect with the necessary managed identity permissions for tag changes.
- Compare the newly drafted V2 question count and validation status against 800 before approving Final.
- Use an Azure Policy audit effect on the relevant resource properties.
Explanation
Correct Answer
B:Modify can add or change supported resource tags as requests are processed; it is different from an audit-only compliance report.
Incorrect Answers
A:Audit can reveal existing violations without blocking new work. The organization can fix affected resources before switching to enforcement.
C:A historical release cannot prove a new owner target is complete. Verified quantities and QA are independent release conditions.
D:Audit records noncompliance while allowing operations to proceed. Deny would prevent resources that violate the configured rule.
Question 122
A modify policy marks older resources noncompliant but does not fix existing tags automatically. What is the needed operation?
- Inspect the policy effect for audit or auditIfNotExists instead of deny.
- Run a scoped Azure Policy remediation task with an authorized managed identity.
- Use Azure Policy tag inheritance or modification because resource tags do not automatically inherit.
- Place a CanNotDelete lock on noncompliant resources and expect Azure Policy modify to correct old tags.
Explanation
Correct Answer
B:Policy enforcement on new or updated resources does not necessarily backfill older states. Supported remediation updates existing eligible resources after evaluation.
Incorrect Answers
A:Audit-style effects report violating resources while allowing creation. Compliance status is not always a record of a failed deployment.
C:Resource group tags do not automatically copy to child resources. An appropriate policy is required to apply or enforce matching metadata.
D:A delete lock does not execute the policy's modify operation against existing resources. Review the managed identity's rights and run an authorized remediation task for the noncompliant scope.
Question 123
A compliance team wants to identify noncompliant storage resources without blocking new deployment operations. Which policy effect fits?
- Use an Azure Policy audit effect on the relevant resource properties.
- Create an Azure Policy initiative containing the required policy definitions.
- Use Azure Policy compliance state and assignment evaluation details for the reporting scope.
- Start with Azure Policy audit effect and inspect compliance impact before enabling deny.
Explanation
Correct Answer
A:Audit records noncompliance while allowing operations to proceed. Deny would prevent resources that violate the configured rule. This matters here because a compliance team wants to identify noncompliant storage resources without blocking new deployment operations. Which….
Incorrect Answers
B:Initiatives group definitions for assignment and aggregate compliance reporting. Resource locks do not combine definitions into policy packages.
C:Compliance records identify evaluated resources and policies with noncompliant states. A tag listing alone does not indicate whether a complex initiative passes.
D:Audit can reveal existing violations without blocking new work. The organization can fix affected resources before switching to enforcement. This matters here because a compliance team wants to identify noncompliant storage resources without blocking new deployment operations. Which….
Question 124
A deployment succeeds but appears noncompliant in Azure Policy. Which effect likely explains it?
- Inspect the applicable Azure Policy tag-value allowlist and deny evaluation result.
- Inspect the policy effect for audit or auditIfNotExists instead of deny.
- Start with Azure Policy audit effect and inspect compliance impact before enabling deny.
- Create a resource group for resources with a shared lifecycle.
Explanation
Correct Answer
B:Audit-style effects report violating resources while allowing creation. Compliance status is not always a record of a failed deployment. This matters here because a deployment succeeds but appears noncompliant in Azure Policy. Which effect likely explains it.
Incorrect Answers
A:The failed tag value violates an enforced resource governance condition. The creator's Azure Contributor permission cannot override it.
C:Audit can reveal existing violations without blocking new work. The organization can fix affected resources before switching to enforcement. This matters here because a deployment succeeds but appears noncompliant in Azure Policy. Which effect likely explains it.
D:Resource groups collect related assets for administration and deletion as a unit. They are not an availability or replication boundary.
Question 125
An external uploader needs write permission for one Azure blob for 20 minutes without receiving an account key. Which credential can provide this delegation?
- Issue a narrowly scoped short-lived SAS with write or create permissions for the target blob.
- Use data-plane Microsoft Entra authentication without requiring account key listing permissions.
- Inspect VNet routing, DNS resolution, private endpoint state and network rules.
- Generate a storage account SAS granting every container read, write and delete for an entire month.
Explanation
Correct Answer
A:A shared access signature can constrain the resource, operations, and expiry. Distributing an account key would grant broader authority than the upload requires.
Incorrect Answers
B:Managed identity can request storage data access under its Blob Data role. Reading shared keys is a separate broad ARM management operation.
C:Connectivity failures are not repaired by adding unrelated RBAC permissions. Verify the private IP path before investigating authorization.
D:The uploader needs only a 20-minute blob write/create delegation; an account-wide long-lived SAS violates scope and lifetime requirements. Use narrowly scoped permissions and avoid distributing account keys.
Question 126
An uploader's SAS works for blob creation but cannot list all containers. Why is this acceptable?
- Set the signed resource, read permission and start/expiry times to the minimum necessary scope.
- Inspect the signed permissions and resource scope; list is intentionally omitted.
- Check permissions for generating a user delegation key in addition to blob data access.
- Enable Secure transfer required on the Azure storage account.
Explanation
Correct Answer
B:A SAS grants only the operations and resource types it signs. Upload permission does not implicitly confer container enumeration.
Incorrect Answers
A:SAS capabilities are limited by signed resource and permission fields, as well as validity and optional network conditions.
C:The delegation-key operation and blob data operation can require distinct role permissions. Management Reader alone is not sufficient.
D:The secure-transfer flag requires HTTPS for supported storage requests. Encryption at rest protects a different data state.
Question 127
A user must sign a blob SAS using Entra credentials rather than the storage account's shared key. Which SAS type fits?
- Configure Azure Files SMB directory permissions instead of generating a user-delegation SAS for Blob Storage.
- Disable shared key authorization where supported and migrate clients to Entra or user delegation SAS.
- Inspect effective Blob Data role grants and the access token's resource audience.
- Create a user delegation SAS using an authorized user delegation key.
Explanation
Correct Answer
D:A user delegation SAS for Blob Storage is signed using a user delegation key obtained by an authorized Microsoft Entra principal, rather than a storage account shared key. Ensure the principal can request the key and the SAS itself grants only required resource permissions.
Incorrect Answers
A:Azure Files share ACLs govern SMB file access, not issuing a Blob SAS signed with Microsoft Entra delegated authorization. Use a valid user-delegation SAS workflow.
B:Disabling shared-key authorization limits account-key-based access paths and encourages identity-based authorization. Compatibility must be tested.
C:ARM resource management and blob content access are separate authorization paths. Correct scope and the storage data audience matter.
Question 128
An operator can read blobs but cannot obtain a user delegation key to create a SAS. What should be verified?
- Check file and directory NTFS permissions in addition to the share-level role.
- Use data-plane Microsoft Entra authentication without requiring account key listing permissions.
- Check permissions for generating a user delegation key in addition to blob data access.
- Add another data-reader role and assume it includes permission to generate a user delegation key.
Explanation
Correct Answer
C:The delegation-key operation and blob data operation can require distinct role permissions. Management Reader alone is not sufficient. This matters here because an operator can read blobs but cannot obtain a user delegation key to create a SAS.
Incorrect Answers
A:SMB identity-based authorization can involve both share-level RBAC and filesystem ACLs. One passing layer does not override another.
B:Managed identity can request storage data access under its Blob Data role. Reading shared keys is a separate broad ARM management operation. This matters here because an operator can read blobs but cannot obtain a user delegation key to create a SAS.
D:Reading blobs and requesting a user delegation key are distinct permissions. Verify the relevant storage account or resource-group authorization for the delegation-key action before generating the SAS.
Question 129
A service SAS for one container must be revoked before its stated expiration. Which arrangement permits policy-based early revocation?
- Compare the VPN's public egress address to the SAS signed IP range.
- Disable the storage account's public endpoint and assume the signed service SAS is revoked automatically.
- Issue a standalone user delegation SAS and assume a container stored access policy can revoke it.
- Associate the service SAS with a stored access policy on the relevant container.
Explanation
Correct Answer
D:Stored access policies can control supported service SAS permissions and timing and can be modified or removed to revoke linked SAS authorization.
Incorrect Answers
A:SAS source IP conditions are evaluated against the observed network source. Switching paths can invalidate an otherwise correctly signed token.
B:Disabling public ingress changes the network route but does not cancel a service SAS before expiration. A service SAS linked to an appropriate stored access policy can be revoked by changing or deleting that policy; endpoint controls solve a different problem.
C:Stored access policies provide revocation for eligible service SAS arrangements, not arbitrary user delegation SAS tokens. Associate a service SAS with the container's stored access policy so the policy can be changed to revoke access.
Question 130
An existing ad hoc service SAS cannot be revoked by removing a stored policy that never signed it. Why?
- Check permissions for generating a user delegation key in addition to blob data access.
- Check whether the SAS actually references the stored access policy identifier.
- Inspect the signed permissions and resource scope; list is intentionally omitted.
- Inspect VNet routing, DNS resolution, private endpoint state and network rules.
Explanation
Correct Answer
B:Only tokens associated with the policy use its revocation behavior. An ad hoc SAS signed independently is not governed by an unrelated stored policy.
Incorrect Answers
A:The delegation-key operation and blob data operation can require distinct role permissions. Management Reader alone is not sufficient. This matters here because an existing ad hoc service SAS cannot be revoked by removing a stored policy that never signed it. Why.
C:A SAS grants only the operations and resource types it signs. Upload permission does not implicitly confer container enumeration. This matters here because an existing ad hoc service SAS cannot be revoked by removing a stored policy that never signed it. Why.
D:Connectivity failures are not repaired by adding unrelated RBAC permissions. Verify the private IP path before investigating authorization. This matters here because an existing ad hoc service SAS cannot be revoked by removing a stored policy that never signed it. Why.