nerdexam
MicrosoftMicrosoft

AZ-305 · Question #359

AZ-305 Question #359: Real Exam Question with Answer & Explanation

The correct answer is D: deploylfNotExists. deployIfNotExists runs after a configurable delay when a Resource Provider handles a create or update subscription or resource request and returned a success status code. A template deployment occurs if there are no related resources or if the resources defined by existenceCondit

Submitted by the_admin· Mar 6, 2026Design identity, governance, and monitoring solutions

Question

You have an Azure subscription. You need to implement a policy to ensure that all new resource groups include a value for a tag named Department. The solution must ensure that if a value is NOT entered for the Department tag, a resource group is created. Which effect should you use?

Options

  • Adeny
  • Bmodify
  • Cmanual
  • DdeploylfNotExists

Explanation

deployIfNotExists runs after a configurable delay when a Resource Provider handles a create or update subscription or resource request and returned a success status code. A template deployment occurs if there are no related resources or if the resources defined by existenceCondition don't evaluate to true. The duration of the deployment depends on the complexity of resources included in the template. During an evaluation cycle, policy definitions with a DeployIfNotExists effect that match resources are marked as non-compliant, but no action is taken on that resource. https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deploy-if-not-exists

Community Discussion

No community discussion yet for this question.

Full AZ-305 PracticeBrowse All AZ-305 Questions