easymultiple choiceObjective-mapped

Exhibit

Policy compliance details

Assignment name: Deny-Public-Storage
Scope: Subscription / Contoso-Prod
Effect: Deny
Condition: Microsoft.Storage/storageAccounts/publicNetworkAccess = 'Enabled'
Compliance state:
- stapp01: Non-compliant, creation denied
- stlegacy01: Non-compliant, existing exception requested by application team
Request note:
- Keep stlegacy01 publicly reachable until migration is complete
- Do not change the policy for all other resources

Based on the exhibit, a policy assigned at the subscription denies storage accounts that allow public network access. One existing storage account in RG-Legacy must remain publicly reachable for 30 days while a migration is completed. What should the administrator use?

Question 1easymultiple choice
Full question →

Based on the exhibit, a policy assigned at the subscription denies storage accounts that allow public network access. One existing storage account in RG-Legacy must remain publicly reachable for 30 days while a migration is completed. What should the administrator use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Create a policy exemption for stlegacy01 at the resource scope.

A policy exemption is the correct tool when one known resource must temporarily be excluded from a policy assignment. It preserves the policy for everything else while documenting the exception for stlegacy01. This is ideal for a time-bound migration because it avoids weakening the policy across the subscription.

B

Distractor review

Remove the policy assignment from the subscription until the migration finishes.

Removing the assignment disables the control for all storage accounts, not just the legacy one. That creates a governance gap and allows any other storage account to become public. The requirement is to keep the policy active everywhere except one resource.

C

Distractor review

Change the policy effect from Deny to Audit.

Audit would stop blocking noncompliant storage accounts, which would violate the requirement to enforce the control for all other resources. The organization needs one exception, not a weaker baseline for the entire subscription.

D

Distractor review

Move the legacy storage account to a separate subscription and assign the policy there.

Moving the resource to another subscription is disruptive and does not directly address the governance need. It is also unnecessary when Azure Policy exemptions already support temporary, scoped exceptions. The question asks for the simplest correct governance action.

Common exam trap

Common exam trap: ACLs stop at the first match

ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.

Technical deep dive

How to think about this question

ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.

KKey Concepts to Remember

  • Standard ACLs match source addresses.
  • Extended ACLs can match source, destination, protocol and ports.
  • The first matching ACL entry is used.
  • There is usually an implicit deny at the end.

TExam Day Tips

  • Check inbound versus outbound direction.
  • Read the ACL from top to bottom.
  • Look for a broader permit or deny above the intended line.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: Create a policy exemption for stlegacy01 at the resource scope. — A policy exemption is the best fit because it lets the administrator keep the deny policy active for the subscription while temporarily excluding only stlegacy01. This preserves the organization-wide standard and provides a documented exception for the migration window. It is the intended Azure Policy mechanism for a legitimate, limited deviation from policy. Why others are wrong: Removing or weakening the policy would affect every storage account, not just the legacy one. Changing the effect to Audit would stop enforcement entirely. Moving the storage account is operationally heavy and does not solve the policy design problem. The scenario specifically calls for a temporary exception, which is what exemptions are for.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.