Courseiva
Manage Azure Identities and GovernancemediumMultiple ChoiceObjective-mapped

AZ-104 Manage Azure Identities and Governance Practice Question

A policy assigned at the management group denies creation of storage accounts with public network access enabled. One legacy storage account in RG-Pilot must stay publicly reachable for 45 days while an application is migrated. What should the administrator configure?

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

Create a policy exemption for the specific storage account with an expiration date.

A policy exemption is the correct tool when a specific resource must temporarily diverge from an enforced policy. The deny policy stays in place for the management group, but the exempted storage account is allowed to remain publicly reachable during the migration window. This keeps governance intact while documenting the exception and its expiration, which is much safer than removing the policy or trying to solve a compliance issue with RBAC. Why others are wrong: Removing the policy assignment would disable governance for all resources under the management group, not just the one legacy storage account. A CanNotDelete lock protects against deletion only; it does not affect policy evaluation or network access settings. Granting Contributor does not help because Azure Policy is evaluated separately from RBAC, so more permission does not override a deny policy.

Answer analysis

Option-by-option breakdown

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

  • Remove the policy assignment from the management group until the migration is finished.

    Why it's wrong here

    Removing the policy assignment at the management group would disable the deny effect for every subscription and resource within that group, not just the storage account in question. This creates a governance gap: while the migration proceeds, any new resource in any subscription could be created without the intended compliance controls, and the temporary removal also invites drift and requires manual re-assignment later. A far more targeted approach is to create an exemption for the single storage account with an expiration date, which preserves the policy for all other resources and ensures the exception is automatically retired after the migration.

    When this WOULD be correct

    If the question stated that the policy was incorrectly assigned and should be removed entirely, or if the requirement was to temporarily allow all resources under the management group to bypass the policy without exceptions, then removing the assignment would be correct.

  • Create a policy exemption for the specific storage account with an expiration date.

    Why this is correct

    A policy exemption allows one approved resource to temporarily bypass the deny effect while preserving the policy for everything else. Adding an expiration date ensures the exception is temporary and supports compliance tracking during the migration period.

  • Apply a CanNotDelete lock to the storage account.

    Why it's wrong here

    A CanNotDelete lock protects a resource from deletion, but it does not prevent Azure Policy from evaluating a deny effect during create or update operations. The deny effect is enforced by the resource provider when the storage account is deployed or configured, and a lock simply adds an Azure Resource Manager-level protection that blocks DELETE calls; it does not exempt the resource from compliance checks. In this scenario, the lock cannot be applied before the resource exists, and even if applied to an existing resource, it would not allow a denied network configuration to be created or changed.

  • Assign a Contributor role to the migration team on the storage account.

    Why it's wrong here

    The Contributor role grants the migration team full management rights over the storage account's resources, including the ability to change its network settings. However, Azure Policy is a governance layer that is evaluated independently of role-based access control: a policy with a deny effect will block an operation even if the caller has Contributor, Owner, or any other high-privilege role. Assigning Contributor therefore does nothing to bypass the policy's denial; the only way to allow the specific configuration is to create a policy exemption for that resource, which explicitly excludes it from the policy evaluation.

    When this WOULD be correct

    This option would be correct if the question asked: 'The migration team needs to manage resources in the storage account (e.g., read/write blobs) but currently has no access. What should the administrator configure?' In that case, assigning the Contributor role would grant the necessary permissions.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

Create a policy exemption for the specific storage account with an expiration date.Correct answer

Why this is correct

A policy exemption allows one approved resource to temporarily bypass the deny effect while preserving the policy for everything else. Adding an expiration date ensures the exception is temporary and supports compliance tracking during the migration period.

Remove the policy assignment from the management group until the migration is finished.Wrong answer — click to see why

Why this is wrong here

Removing the policy assignment from the management group would disable the policy for all subscriptions and resource groups under it, not just the legacy storage account, violating the requirement to deny public network access for other storage accounts.

★ When this WOULD be the correct answer

If the question stated that the policy was incorrectly assigned and should be removed entirely, or if the requirement was to temporarily allow all resources under the management group to bypass the policy without exceptions, then removing the assignment would be correct.

Why candidates choose this

Candidates may think removing the policy is a quick fix to allow the legacy account, overlooking that it affects all resources under the management group and contradicts the original security intent.

Assign a Contributor role to the migration team on the storage account.Wrong answer — click to see why

Why this is wrong here

Assigning a Contributor role grants permissions to manage resources but does not override a policy that denies public network access. The policy will still block any creation or update that enables public access, and the existing legacy account's public access is not affected by role assignments.

★ When this WOULD be the correct answer

This option would be correct if the question asked: 'The migration team needs to manage resources in the storage account (e.g., read/write blobs) but currently has no access. What should the administrator configure?' In that case, assigning the Contributor role would grant the necessary permissions.

Why candidates choose this

Candidates may think that granting a role can bypass policy restrictions, confusing role-based access control (RBAC) with Azure Policy. They might also believe that adding permissions can override deny effects, which is incorrect.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall rules, network ACLs

About these practice questions

Courseiva writes every AZ-104 question from scratch — 1,049 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.