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

Question 13 — AZ-104 Practice Exam 11

A compliance policy restricts deployments to a parameterized list of regions. You discover that Microsoft.AzureActiveDirectory/b2cDirectories resources show noncompliance because their location isn’t a standard Azure region (for example, “United States”). You must keep strict regional enforcement for all other resources while avoiding false positives for b2cDirectories. (Select two answers)

  1. Add an exclusion in the if block so the condition doesn’t apply when field: "type" equals Microsoft.AzureActiveDirectory/b2cDirectories.

  2. Add “United States” to the allowed locations parameter so b2cDirectories pass compliance.

  3. Create and assign a dedicated policy to evaluate b2cDirectories with logic appropriate to their non-regional location values.

  4. Change the effect from deny to audit for the existing policy to reduce false positives.

  5. Remove the location != "global" check to simplify the rule.

Correct answers

  1. Add an exclusion in the if block so the condition doesn’t apply when field: "type" equals Microsoft.AzureActiveDirectory/b2cDirectories.

  2. Create and assign a dedicated policy to evaluate b2cDirectories with logic appropriate to their non-regional location values.

Explanations

Correct:
Add an exclusion in the if block so the condition doesn’t apply when field: "type" equals Microsoft.AzureActiveDirectory/b2cDirectories. Excluding this type preserves regional checks for all other resources while preventing false positives on non-regional services.
Create and assign a dedicated policy to evaluate b2cDirectories with logic appropriate to their non-regional location values. Separating logic lets you enforce appropriate checks for that service without weakening the regional policy.

Wrong:
Add “United States” to the allowed locations parameter so b2cDirectories pass compliance. This dilutes the regional constraint and may let unrelated resources deploy with non-regional values.
Change the effect from deny to audit. Switching to audit weakens enforcement for all resources, not just b2cDirectories.
Remove the location != "global" check. This check addresses special “global” resources and is unrelated to b2cDirectories’ non-regional values.