Soru

Zorluk: OrtaAzure Policy Governance

An organization is designing a governance strategy for an Azure environment consisting of a root management group and several production subscriptions. You need to implement Azure Policy definitions to enforce compliance for the following requirements:
- All newly deployed Azure storage accounts must have shared key access disabled. If a deployment template attempts to create a storage account with shared key access enabled, the deployment must be blocked.
- All virtual machines must be automatically configured with backup protection. If a virtual machine is deployed without a backup configuration, the policy must deploy the required resources and configure the backup.

Which two policy effects should you recommend to meet these requirements?

  1. The Deny effect to block the deployment of storage accounts with shared key access enabledCevap
  2. The DeployIfNotExists effect to configure backup protection for virtual machinesCevap
  3. C
    The Modify effect to block the deployment of storage accounts with shared key access enabled
  4. D
    The AuditIfNotExists effect to configure backup protection for virtual machines

Cevap

Recommend the Deny effect to block the deployment of storage accounts with shared key access enabled, and recommend the DeployIfNotExists effect to configure backup protection for virtual machines.
To block resource creation that fails to comply with the disabled shared key setting, the Deny effect must be used. To automatically deploy backup configurations (which represent related/secondary resources) when a virtual machine is created, the DeployIfNotExists effect is required since it triggers a template deployment to remediate non-compliance.

Adım Adım Çözüm

1
Determine the policy effect needed to block resource deployments that do not match the configuration rules.
The Deny effect is selected for the storage account shared key configuration.
The Deny effect prevents the deployment of resources that violate policy rules.
2
Determine the policy effect needed to deploy nested/related resources automatically for non-compliant resources.
The DeployIfNotExists effect is selected for the virtual machine backup configuration.
The DeployIfNotExists effect allows deploying additional resources (such as backup resources or extensions) when they do not exist.

Anahtar Kavram

Azure Policy effects mapping to blocking and automatic remediation scenarios
Tahmini Süre:1m 30s
Bu soruyu puanla