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

Question 29 — AZ-104 Case Study Set

Based on the scenario, Paideffort wants one regional policy definition to support different approved Azure regions across subscriptions without creating separate copies of the definition. Which design best satisfies this requirement? (Select one answer)

  1. Define the approved locations as an Array parameter and supply subscription-specific values through each policy assignment.

  2. Hardcode all approved production locations directly inside the policy rule and create another definition whenever regional requirements change.

  3. Store approved locations in the metadata object and let each policy assignment override the metadata values during evaluation.

  4. Place approved locations in the description property and let Azure Policy interpret the listed regions during resource evaluation.

Correct answers

  1. Define the approved locations as an Array parameter and supply subscription-specific values through each policy assignment.

Explanations

Correct Answer:

Define the approved locations as an Array parameter and supply subscription-specific values through each policy assignment.

Explanation:

Paideffort wants reusable policy definitions with different configuration values across subscriptions. An Array parameter such as listOfAllowedLocations allows the same definition to be assigned repeatedly while each assignment supplies the appropriate regional values.

Wrong Answers:

Hardcode all approved production locations directly inside the policy rule and create another definition whenever regional requirements change.

This would cause definition duplication and would conflict with Paideffort's requirement to reuse one policy definition across subscriptions.

Store approved locations in the metadata object and let each policy assignment override the metadata values during evaluation.

Metadata provides descriptive information about a policy definition. It does not provide the parameter mechanism required for assignment-specific regional values.

Place approved locations in the description property and let Azure Policy interpret the listed regions during resource evaluation.

The description provides human-readable context. It does not supply executable values to the policy rule.