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

Question 31 — AZ-104 Case Study Set

Given that Paideffort wants a diagnostic configuration deployed when an evaluated application resource lacks the required related monitoring resource, which effect should the monitoring policy use? (Select one answer)

  1. Use deployIfNotExists to initiate a template deployment when the required related configuration is absent.

  2. Use auditIfNotExists to create the missing related configuration whenever the compliance condition is evaluated.

  3. Use modify to deploy an independent monitoring resource after evaluating the application resource.

  4. Use deny to create the missing diagnostic configuration before allowing the original application resource to continue.

Correct answers

  1. Use deployIfNotExists to initiate a template deployment when the required related configuration is absent.

Explanations

Correct Answer:

Use deployIfNotExists to initiate a template deployment when the required related configuration is absent.

Explanation:

Paideffort needs Azure Policy to evaluate a resource and trigger deployment of a related configuration when that configuration does not exist. deployIfNotExists is designed for this remediation-oriented scenario.

Wrong Answers:

Use auditIfNotExists to create the missing related configuration whenever the compliance condition is evaluated.

auditIfNotExists evaluates related resources and reports noncompliance. It does not initiate the template deployment Paideffort requires.

Use modify to deploy an independent monitoring resource after evaluating the application resource.

modify changes supported fields or tags in resource requests. It is not the effect intended for deploying a separate related resource through a template.

Use deny to create the missing diagnostic configuration before allowing the original application resource to continue.

deny prevents a noncompliant request. It does not perform the related resource deployment required by Paideffort.