Question 703 of 1,170
Manage Azure Identities and GovernancehardMultiple ChoiceObjective-mapped

Quick Answer

The answer is DeployIfNotExists. This policy effect is correct because it actively remediates noncompliant storage accounts by deploying a predefined network rules configuration that restricts access to selected networks, rather than merely reporting the violation like the Audit effect. On the AZ-104 exam, this scenario tests your understanding of Azure Policy effects and their operational behavior—specifically, the distinction between audit-only and remediation-capable effects. A common trap is choosing Audit, which only flags noncompliance without fixing it, or Modify, which is used for altering existing resource properties rather than deploying a new configuration. Remember the memory tip: “DeployIfNotExists builds the fix; Audit only lists the mix.” This helps you recall that DeployIfNotExists automatically deploys a resource or configuration when a noncompliant condition is detected, making it the ideal choice for enforcing storage account network rules at scale.

AZ-104 Manage Azure Identities and Governance Practice Question

This AZ-104 practice question tests your understanding of manage azure identities and governance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Your organization requires all storage accounts to allow access only from selected networks. You need a governance solution that automatically corrects noncompliant new storage accounts when possible instead of only reporting them. What policy effect should you choose?

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

DeployIfNotExists

The DeployIfNotExists policy effect is correct because it can automatically remediate noncompliant storage accounts by deploying a network rules configuration that restricts access to selected networks. Unlike Audit, which only reports compliance status, DeployIfNotExists actively modifies the resource to meet the policy requirement when possible, aligning with the need for automatic correction.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Audit

    Why it's wrong here

    Audit identifies noncompliance but does not remediate it.

  • Disabled

    Why it's wrong here

    Disabled turns off the policy effect.

  • DeployIfNotExists

    Why this is correct

    This effect supports automatic remediation when conditions are not met.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Append

    Why it's wrong here

    Append can add properties in some creation scenarios but is not the main remediation choice here.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often choose Append thinking it can modify network rules, but Append only adds properties to the resource (like tags) and cannot change existing network access configurations, whereas DeployIfNotExists can deploy a full remediation template.

Trap categories for this question

  • Scenario analysis trap

    Append can add properties in some creation scenarios but is not the main remediation choice here.

Detailed technical explanation

How to think about this question

DeployIfNotExists works by evaluating the resource after creation and, if the required network rules are missing, it triggers a deployment of a linked ARM template or policy assignment to add the rules. This effect requires a managed identity with appropriate permissions to modify the storage account's network ACLs. In a real-world scenario, if a storage account is created without a service endpoint or firewall rule, DeployIfNotExists can automatically add the 'default_action = Deny' and allow only specified IP ranges or virtual networks, ensuring continuous compliance.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Manage Azure Identities and Governance — This question tests Manage Azure Identities and Governance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: DeployIfNotExists — The DeployIfNotExists policy effect is correct because it can automatically remediate noncompliant storage accounts by deploying a network rules configuration that restricts access to selected networks. Unlike Audit, which only reports compliance status, DeployIfNotExists actively modifies the resource to meet the policy requirement when possible, aligning with the need for automatic correction.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.