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

Question 16 — AZ-104 Practice Exam 6

You must roll out new policies across several subscriptions already running production workloads. You need to (1) preview compliance results without blocking deployments or spamming the Activity log, (2) avoid waiting for the next 24-hour scan to see results, and (3) minimize risk by expanding scope gradually. (Select three answers)

  1. Assign the policies with enforcementMode set to DoNotEnforce to evaluate without enforcing effects or logging.

  2. Use resource selectors to implement deployment rings and gradually widen the assignment scope.

  3. Run az policy state trigger-scan to start a manual compliance scan on existing resources.

  4. Set the policy effect to disabled so evaluation still occurs but effects aren’t enforced.

  5. Wait for the automatic 24-hour full scan to process results before making any changes.

Correct answers

  1. Assign the policies with enforcementMode set to DoNotEnforce to evaluate without enforcing effects or logging.

  2. Use resource selectors to implement deployment rings and gradually widen the assignment scope.

  3. Run az policy state trigger-scan to start a manual compliance scan on existing resources.

Explanations

Correct:
Assign the policies with enforcementMode set to DoNotEnforce to evaluate without enforcing effects or logging. This enables “what-if” evaluation on existing resources without deny/modify taking effect and without Activity log entries.
Use resource selectors to implement deployment rings and gradually widen the assignment scope. Ring-based rollout limits blast radius and follows safe-deployment best practices.
Run az policy state trigger-scan to start a manual compliance scan on existing resources. This avoids waiting for the next 24-hour automatic cycle and surfaces results sooner.

Wrong:
Set the policy effect to disabled so evaluation still occurs but effects aren’t enforced. The disabled effect prevents evaluation for that assignment; you wouldn’t get compliance insight.
Wait for the automatic 24-hour full scan… This contradicts the requirement to avoid waiting; a manual scan is appropriate.