Soru

Zorluk: OrtaAzure Policy Governance

An organization is designing a governance strategy for its Azure subscriptions. The strategy must satisfy the following compliance requirements:
- Automatically deploy a diagnostic setting to any newly created Azure Key Vault if it is missing, without blocking the creation of the Key Vault itself.
- Block the creation of virtual networks that do not comply with corporate IP address space allocations.

Which of the following Azure Policy effects should you include in the design? (Select TWO.)

  1. DeployIfNotExists for the Key Vault diagnostic settings requirementCevap
  2. Deny for the non-compliant virtual networks requirementCevap
  3. C
    Deny for the Key Vault diagnostic settings requirement
  4. D
    Audit for the non-compliant virtual networks requirement

Cevap

DeployIfNotExists for the Key Vault diagnostic settings requirement, and Deny for the non-compliant virtual networks requirement
The correct options are DeployIfNotExists for the Key Vault diagnostic settings requirement, and Deny for the non-compliant virtual networks requirement. DeployIfNotExists allows the parent resource (Key Vault) to be created, and then automatically deploys the missing child resource (diagnostic setting) to satisfy compliance. Deny enforces compliance actively by blocking the creation of virtual networks that violate the IP allocation rules.

Adım Adım Çözüm

1
Analyze the governance requirement for Key Vault diagnostic settings.
The requirement specifies that the setting must be automatically deployed if missing, but Key Vault creation must not be blocked.
This points to a remediation effect rather than a preventative effect. DeployIfNotExists is the correct choice here because it triggers a template deployment of a sub-resource when the main resource is created.
2
Analyze the governance requirement for virtual network configurations.
The requirement specifies that the creation of non-compliant virtual networks must be blocked.
This requires preventative action. Deny is the correct choice because it immediately blocks resource creation that does not comply with policy rules.

Anahtar Kavram

Azure Policy Effects Selection
Bu soruyu puanla