AZ-104 Practice Question 71: Policy Exemption Versus Exclusion

Microsoft Azure Administrator Associate (AZ-104) · Test 8 · question 1 of 10

Identity & Governancemedium

An Azure Policy assignment at the subscription level denies public IP addresses. One resource group must be allowed a public IP for a migration that ends in 30 days. Auditors require that the exception is visible in compliance reports and that it stops applying automatically after 30 days.

What should the administrator do?

Select one answer
Show answer and explanation

Answer:

  • A. Create a policy exemption for the resource group with an expiration date

A policy exemption is a separate object that waives a policy for a scope. It can carry an expiration date, after which the policy applies again with no further action, and exempted resources are reported as exempt in compliance data, which gives the auditors their evidence.

Option B, an exclusion through notScopes, removes the scope from evaluation but has no expiry, so someone must remember to edit the assignment after 30 days, and there is no exemption record to audit.

Option C removes the control for every resource group in the subscription while the assignment is gone, and re-creation depends on someone remembering to do it.

Option D turns off enforcement for the whole subscription, not one resource group, and it does not expire.

Reference: Azure Policy exemption structure

Practice Test 8 ›

Study guides for AZ-104