Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 9

Question 18 — AZ-104 Practice Exam 9

After assigning a new deny policy at subscription scope, your test deployment in the same session still succeeds in a disallowed configuration. You need the assignment to take effect immediately without waiting. (Select one answer)

  1. Trigger a manual compliance scan and wait for results.

  2. Sign out and sign back in to refresh the Azure Resource Manager cache so the new assignment is enforced right away.

  3. Wait up to 30 minutes for policy propagation.

  4. Change the effect to audit to verify behavior first.

Correct answers

  1. Sign out and sign back in to refresh the Azure Resource Manager cache so the new assignment is enforced right away.

Explanations

Correct:
Sign out and sign back in to refresh the Azure Resource Manager cache so the new assignment is enforced right away. New assignments can be delayed by ARM cache; re-auth forces immediate application for the session.

Wrong:
Trigger a manual compliance scan and wait for results. Manual scans surface compliance on existing resources; they don’t control gatekeeping on your current request session.
Wait up to 30 minutes for policy propagation. This eventually works but doesn’t meet the requirement for immediate enforcement.
Change the effect to audit… Audit won’t block disallowed deployments.