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

Question 41 — AZ-104 Case Study Set

Review Paideffort's production assignment command.

- name: Assign regional policy
  run: |
    az policy assignment create \
      --name paideffort-prod-location \
      --policy $POLICY_ID \
      --params '{"listOfAllowedLocations":{"value":["westeurope","northeurope"]}}' \
      --enforcement-mode Default

Paideffort wants to evaluate a newly introduced deny policy in production before allowing it to block resource operations. Which change best supports that requirement during the validation period? (Select one answer)

  1. Create the assignment with enforcement disabled during validation while continuing to evaluate the policy against production resources.

  2. Keep --enforcement-mode Default and change all disallowed regional values to allowed values during the validation period.

  3. Remove the policy assignment completely and rely on Policy Insights to predict what the unassigned definition would evaluate.

  4. Keep normal enforcement and replace the policy condition with a permanently false expression until validation is complete.

Correct answers

  1. Create the assignment with enforcement disabled during validation while continuing to evaluate the policy against production resources.

Explanations

Correct Answer:

Create the assignment with enforcement disabled during validation while continuing to evaluate the policy against production resources.

Explanation:

Paideffort needs compliance evaluation of the actual production rule without immediately enforcing its deny effect. Disabling enforcement at assignment level supports this controlled rollout while preserving the rule that administrators intend to enforce later.

Wrong Answers:

Keep --enforcement-mode Default and change all disallowed regional values to allowed values during the validation period.

This would alter the compliance criteria rather than test Paideffort's intended production policy logic.

Remove the policy assignment completely and rely on Policy Insights to predict what the unassigned definition would evaluate.

Without the applicable assignment, Paideffort would not obtain the intended compliance evaluation against the targeted production scope.

Keep normal enforcement and replace the policy condition with a permanently false expression until validation is complete.

This would prevent meaningful testing of the real production conditions and would require unnecessary policy-definition changes before enforcement begins.