Microsoft AZ-104 Exam Dumps, Practice Test Questions

100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

Microsoft AZ-104 Premium Bundle
$79.97
$59.98

AZ-104 Premium Bundle

  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

AZ-104 Premium Bundle

Microsoft AZ-104 Premium Bundle
  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

Microsoft AZ-104 Practice Test 14

Question 130

A corporate policy definition uses a parameter `allowedSkus` so different environments can specify different VM sizes. Production should allow only two approved SKUs, while development may allow others. Where is the environment-specific list passed?

  1. Change the policy definition's default allowedSkus for every assignment, including development
  2. Put the two SKU values into an Azure Policy initiative's definition metadata while leaving the production assignment parameter unbound
  3. Supply the production SKU list in the production policy assignment's parameters
  4. Tag the production resource group allowedSkus with the permitted SKU names and assume the policy parameter reads tags automatically

Explanation

Correct Answer

C:

A parameterized definition can be reused with different values at each assignment scope. Assignment-level values let production and development enforce separate approved lists without duplicating the rule.

Incorrect Answers

A:

A definition default applies wherever the assignment omits a parameter. Editing the common default would risk changing development behavior too; the production assignment should pass the production-specific list explicitly.

B:

Definition or initiative metadata describes an artifact; it does not supply a particular assignment's allowedSkus parameter value. Production needs its own parameter binding.

D:

A resource-group tag is not automatically bound to an Azure Policy definition parameter. Without an explicit assignment parameter value or a definition that reads that tag, the intended production SKU list is not enforced.

Question 131

An Azure Policy assignment has a `deny` effect for new storage accounts without secure transfer required. An engineer submits a compliant account configuration but a template also attempts to deploy a second noncompliant account in the same request. Which deployment behavior should the team anticipate?

  1. Assume policy evaluates only the first resource in each template
  2. Assume Contributor permissions override the deny effect
  3. Add a compliant-looking resource tag to the second storage account while leaving its secure-transfer property disabled
  4. Expect the noncompliant storage account request to be rejected by policy evaluation

Explanation

Correct Answer

D:

A deny policy evaluates the relevant ARM resource changes. A compliant sibling resource does not exempt a different resource in the same deployment from its own requirement; deployment rollback depends on mode and orchestration.

Incorrect Answers

A:

Azure Policy evaluates relevant resource requests, not just the first item of a deployment. Including one compliant resource does not shield subsequent violations.

B:

Azure RBAC authorizes management actions but a deny policy is a separate guardrail. A caller may have permission to create resources yet still be prevented from deploying one that violates policy.

C:

The policy evaluates the account’s secure-transfer-required property, not an unrelated tag asserting compliance. A label cannot make an actual insecure resource request pass a deny condition. The second account must meet the property requirement or receive an authorized policy exclusion outside this proposed deployment.

Question 132

A production Cosmos DB account has a tag Environment=Prod. An Azure Policy denyAction definition with mode indexed already blocks direct DELETE operations on matching accounts. The governance team also wants a resource-group DELETE request to fail if it would cascade-delete one of these accounts, rather than silently deleting the group and its protected account. Which additional denyAction rule setting controls this resource-group deletion behavior?

  1. Set the denyAction details.cascadeBehaviors.resourceGroup property to deny for the indexed policy rule
  2. Replace the effect with audit so a compliance event prevents the resource-group delete operation
  3. Give the deleting caller Contributor at subscription scope to make all child protections inherit
  4. Use an append effect to add a tag before the group is deleted, without configuring cascade behavior

Explanation

Correct Answer

A:

An indexed denyAction rule can specify cascadeBehaviors.resourceGroup=deny so deletion of a resource group containing a matching tagged resource is blocked. The policy already protects a direct DELETE on the Cosmos DB account, but the stem explicitly asks for the separate resource-group cascade path. This setting addresses that path for supported indexed resources and scoped assignments.

Incorrect Answers

B:

The audit effect records a resource as noncompliant without rejecting a management-plane delete request. It can help the organization identify resources requiring attention, but it does not provide the denyAction protection needed for a parent resource-group cascade deletion. Reporting after deletion is not the requested prevention mechanism.

C:

Contributor grants specified Azure management operations under RBAC, but role assignments cannot override an applicable Azure Policy denyAction restriction. Assigning broader permissions to the person deleting the group increases exposure without changing the policy cascade rule. The resource group should be protected through the policy definition rather than through elevated caller identity.

D:

The append effect changes specified request fields at creation or update time when a policy condition applies. It does not control how child resources are handled when a resource group is deleted. Even adding another tag does not express the requested resource-group cascade restriction; the denyAction details must explicitly govern that operation.

Question 133

A built-in policy should prevent virtual machines from being created outside a set of regions, but a few globally scoped Azure services should remain deployable. Security wants to avoid incorrectly applying a location restriction to globally located resource types. What should be validated in the policy rule?

  1. Change the Azure region of the Policy definition resource itself
  2. Check the policy's conditions and resource-type exclusions for services using the global location
  3. Replace every approved regional location with the single value global and assume regional VM deployments will still pass the allowed-locations rule
  4. Evaluate only the resource group’s location instead of each deployed resource’s location to restrict regional VMs.

Explanation

Correct Answer

B:

Region restrictions need to evaluate applicable resource types and location semantics. A rule written for regional resources can incorrectly reject global services unless the definition explicitly handles those exceptions.

Incorrect Answers

A:

Policy definitions are governance artifacts rather than workloads whose hosting region determines which resource types get evaluated. The rule conditions must be corrected.

C:

The global location value can describe certain globally scoped resource types, but it is not a substitute for the actual permitted Azure regions for virtual machines. A VM deployed in a regional location would fail an allowed-location list containing only global. Preserve the approved regional values and explicitly account for the applicable globally scoped resource types in the policy conditions.

D:

A resource group’s metadata location can differ from the location of resources deployed inside it. Evaluating only the group can mark a VM compliant when the VM itself is in a disallowed region. The rule needs to evaluate the relevant resource location while accounting for supported globally scoped types.

Question 134

Security is introducing an Azure Policy assignment to 12 production resource groups. It wants deny enforcement only for specific groups whose owners have explicitly opted in, while the other groups remain evaluated for compliance without enforcement. Which assignment enforcement mode supports policy enrollments for this staged rollout?

  1. Default, because enforcement applies only to resource groups with enrollment records by default
  2. DoNotEnforce, because it enforces denies for enrolled scopes while reporting elsewhere
  3. Enroll, together with the appropriate policy-enrollment records for the scopes entering enforcement
  4. Disable the policy definition effect, then create individual management locks to simulate the policy enrollment mechanism

Explanation

Correct Answer

C:

Enroll is the assignment enforcement mode intended for staged enforcement using policy-enrollment resources. Enrolled groups can receive the policy effect while other groups continue evaluation without the deny effect under the standard non-enrolled behavior. Configure the enrollment scope explicitly before relying on enforcement.

Incorrect Answers

A:

Default is ordinary enforcement for all matching resources within the assignment scope. The requirement is not to deny requests in the other production groups; without an enrollment-specific mode, a compliant rollout scope still applies to every matching group.

B:

DoNotEnforce evaluates compliance but does not initiate the policy effect on resource create or update. It is appropriate for a pure observation pilot, but it does not selectively turn on enforcement for groups that have elected to participate.

D:

Disabling a policy effect removes its evaluation/enforcement behavior and is not equivalent to targeted enrollment. Management locks prevent certain resource operations for different reasons; they do not establish the policy assignment’s opt-in enforcement state.

Question 135

An Azure Policy rule identifies a resource property that can be corrected as part of an ARM create/update request. Administrators want the property adjusted automatically when it is missing, not merely reported after deployment. Which Policy effect should be evaluated?

  1. Use Audit and assume it rewrites the request before Azure accepts it
  2. Use Disabled to allow modification by the policy engine
  3. Create a resource-group Delete lock to inject the property
  4. Use a Modify policy with an operation for the supported property alias

Explanation

Correct Answer

D:

The Modify effect can add or replace supported properties using operations over applicable Azure Policy aliases during resource creation or update. With a valid definition and required assignment identity/permissions for remediation scenarios, Azure can change the incoming request to satisfy the rule rather than only flagging it afterward. Confirm that the property has a modifiable alias and that the rule conditions match this resource type.

Incorrect Answers

A:

Audit evaluates the specified resource against the policy rule and records noncompliance, which is useful when governance wants visibility without blocking work. It does not insert missing properties into the submitted ARM create/update request. The requirement here is an automatic, supported change to the property during the operation, so simply switching to Audit leaves the account configuration unchanged.

B:

The Disabled effect prevents the definition from being evaluated as an active rule, so it cannot add the required property or even enforce a correction. Disabling might be appropriate to retire a rule, but this migration specifically requires automatic normalization during create or update. The team needs an effect that supplies a supported modification operation, not a way to stop evaluating resources.

C:

A resource-group Delete lock protects against deleting governed resources or the containing group, but its control is at the ARM management-operation level. It cannot set an aliased property on a new resource request, and it does not invoke a remediation template. The operator may still create a resource missing the requested attribute, so this is unrelated to the automatic adjustment requirement.

Question 136

An Azure Policy AuditIfNotExists definition checks a VM diagnostic-setting extension shortly after deployment. The extension is normally provisioned asynchronously, so immediate compliance evaluation creates transient false negatives. Which definition setting controls when related resources are evaluated after create/update?

  1. Configure a suitable AuditIfNotExists evaluationDelay, such as AfterProvisioningSuccess or a supported interval
  2. Replace AuditIfNotExists with Deny so the diagnostic setting appears sooner
  3. Increase the AuditIfNotExists existenceScope to Subscription while leaving evaluationDelay unchanged
  4. Disable the existenceCondition property and assume Azure will wait for provisioning

Explanation

Correct Answer

A:

AuditIfNotExists evaluates related resources after the parent create/update completes, and evaluationDelay controls that timing. Allowing the dependent setting to finish provisioning reduces transient compliance failures without changing the policy to a deployment effect.

Incorrect Answers

B:

Deny blocks an invalid request but does not wait for asynchronous extension creation or configure the related diagnostic resource. It also violates the requirement to audit rather than reject deployments.

C:

The existenceScope controls the range in which Azure Policy searches for related resources, not the post-deployment time when it evaluates them. Broadening the resource search to a subscription cannot prevent a premature evaluation while the required diagnostic extension is still provisioning. Adjust evaluationDelay for the asynchronous operation.

D:

Removing existenceCondition broadens what counts as an existing related resource but does not configure a delay. It can also cause inaccurate compliance results because the intended property check disappears.

Question 137

A policy assignment should affect only resources in West Europe during a phased rollout while leaving other locations at the same subscription scope outside the trial. Which assignment feature can scope evaluation by selected resource locations without creating separate subscriptions?

  1. Add a storage firewall rule restricting West Europe storage accounts
  2. Configure an appropriate resource selector on the policy assignment for the rollout location
  3. Grant Contributor to resource creators only in West Europe
  4. Change every resource group's location metadata to West Europe

Explanation

Correct Answer

B:

Azure Policy resource selectors can be added to an assignment to limit which resources are evaluated during a staged rollout, including by resource location. The team can select the West Europe location while keeping the assignment at the subscription scope and expand the selector later. This changes policy applicability rather than moving resources, creating extra subscriptions, or changing RBAC permissions.

Incorrect Answers

A:

A storage firewall controls which clients or networks can reach a particular storage account; it does not decide which Azure resources are evaluated by a policy assigned at subscription scope. It would neither target all resources located in West Europe nor exclude resources in other regions from governance evaluation. The question concerns an assignment selector, not data-plane network reachability.

C:

Contributor role assignments authorize users or identities to manage Azure resources at a particular RBAC scope. They do not select which resource locations an Azure Policy assignment evaluates, even if the administrators happen to work in West Europe. Changing Contributor would alter management access and leave the subscription-wide policy evaluation problem unsolved; use a policy resource selector instead.

D:

Resource-group location is metadata for that group and does not relocate existing VMs, storage accounts, or networking resources into West Europe. Rewriting group metadata cannot create a reliable Azure Policy geographic rollout boundary and could introduce confusion about actual resource placement. The governed values are the resources’ locations; resource selectors at the policy assignment handle that condition directly.

Question 138

A governance team has assigned an initiative containing several policy definitions. During a temporary migration, one definition's deny effect should instead audit, without editing the shared definition itself. What assignment-level mechanism should they investigate?

  1. Disable the entire initiative so only one definition becomes Audit
  2. Rename the policy definition reference ID without defining an override
  3. Use an applicable assignment override scoped to the selected policy definition reference
  4. Create a blanket policy exemption for the initiative and assume the exempted definition will still report its violations as Audit

Explanation

Correct Answer

C:

Azure Policy assignments can support effect overrides on selected definitions when the feature and target effect are compatible. This avoids changing the shared definition for other assignments.

Incorrect Answers

A:

Disabling the initiative would remove evaluation for the other rules, not selectively change the one deny effect into auditing.

B:

Changing identifiers is not a reliable way to switch a policy effect. It can break references rather than express a controlled per-definition override.

D:

An exemption removes the selected scope from the relevant compliance evaluation; it does not change one policy definition's deny effect into Audit. An assignment override targeting the definition reference is needed to preserve the rest of the initiative.

Question 139

A policy assignment reports noncompliant storage accounts, but engineers have now updated those accounts to meet the rule. The dashboard still shows older noncompliant state immediately after the update. What operation should they consider before concluding the fix failed?

  1. Delete the storage accounts and recreate them solely to clear the compliance dashboard
  2. Create a remediation task before checking whether this policy effect supports remediation or whether a new evaluation is pending
  3. Change the noncompliance message on the policy definition and assume the compliance result immediately refreshes
  4. Allow the normal compliance evaluation cycle or trigger a supported compliance scan and inspect the new results

Explanation

Correct Answer

D:

Policy compliance state is not necessarily updated synchronously with each property change. Re-evaluation can establish whether the corrected resource now meets the rule.

Incorrect Answers

A:

Recreation is disruptive and is not a prerequisite to re-evaluating a corrected resource. It risks data loss while confusing reporting delay with persistent configuration error.

B:

Remediation tasks are relevant to supported policy effects that deploy or modify configuration. They are not a general mechanism for immediately refreshing a stale compliance evaluation after resources were already corrected; the policy effect and scan state must be considered.

C:

A noncompliance message changes how a result is described, not when the policy engine reevaluates the resources. The dashboard can still reflect the earlier assessment until the ordinary or triggered scan completes.

Question 140

A new policy with a modify effect can add an Environment tag during supported deployments. Hundreds of existing resources are flagged noncompliant, and none were changed by the initial compliance scan. What additional action should the administrator take to fix the existing population?

  1. Change the policy to an audit effect
  2. Start a remediation task using the policy assignment identity
  3. Re-run the same compliance scan until values change
  4. Create a second policy assignment with auditIfNotExists to flag every missing tag

Explanation

Correct Answer

B:

A modify policy does not automatically rewrite existing resources during a compliance scan. A remediation task applies the supported modifications to matching existing resources, using appropriate managed identity permissions.

Incorrect Answers

A:

Audit would only report the resources as noncompliant and would remove the modification intent for new requests. It provides no action to correct the existing tags.

C:

Compliance evaluation classifies existing resources but does not run the modification operation on them. Repeating it changes reports, not tags, without the required remediation workflow.

D:

AuditIfNotExists can highlight missing related configurations, but it does not execute the modify effect against existing resources. A remediation task with the proper identity is still required.

Microsoft Azure Administrator (AZ-104) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.