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 15

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.

Question 141

An organization wants to assign and track several related rules—allowed locations, required environment tags, and mandatory encryption—as a single compliance package at subscription scope. Which Azure Policy construct is appropriate?

  1. Create an initiative definition containing the policies, and assign the initiative to the subscription
  2. Replace all rules with a single management lock
  3. Create three independent policy assignments but treat each separate compliance view as one reusable bundled assignment
  4. Create a single policy definition that checks locations only and assume it also evaluates encryption and tags

Explanation

Correct Answer

A:

A policy initiative groups multiple policy definitions into one assignable unit. It preserves each rule’s evaluation while simplifying deployment and compliance reporting as a package.

Incorrect Answers

B:

A resource lock prevents management-plane updates or deletions at its scope, but cannot express separate allowed-location, tag, and encryption compliance rules.

C:

Individual assignments can enforce separate policies but do not create the requested single managed compliance package. An initiative groups definitions and parameters under one assignable unit.

D:

An allowed-location rule alone cannot evaluate the unrelated tag and encryption requirements. The governance requirement calls for multiple coordinated definitions combined in an initiative.

Question 142

A legacy resource cannot meet a new subscription policy until a supported migration next month. Governance has approved a documented temporary exception with an expiry date, while other resources must stay covered. How should this exception be represented?

  1. Temporarily set the subscription-wide policy assignment enforcement mode to DoNotEnforce for every resource until the migration finishes
  2. Create a scoped Azure Policy exemption for the legacy resource with an expiration date
  3. Delete the policy definition for the whole subscription
  4. Add a subscription-wide notScopes exclusion to the policy assignment instead of an expiring exemption on the legacy resource

Explanation

Correct Answer

B:

Create an Azure Policy exemption associated with the existing assignment at the specific legacy resource scope, and set an expiresOn date corresponding to the approved migration window. A Waiver category represents temporarily accepted noncompliance rather than a fully mitigating alternative control. Other subscription resources remain evaluated; when the expiry passes, the exemption record can remain for audit but the exempting effect is no longer honored.

Incorrect Answers

A:

Changing enforcement for the entire subscription affects compliant and noncompliant resources beyond the one approved legacy workload. The requirement is a narrowly scoped, time-limited and auditable exception for a single resource while policy remains in effect elsewhere, which a resource-scoped expiring exemption provides.

C:

Deleting the shared policy definition removes its protective evaluation for every resource that depends on it, which exceeds the one legacy exception authorized by governance. It also destroys the intended migration deadline rather than recording a temporary waiver with an expiry. The subscription should keep the original rule, with a separate, narrowly scoped exemption that can be reviewed and audited.

D:

An assignment notScopes exclusion removes the entire subscription from evaluation and does not model the approved one-resource, time-bounded exemption. A scoped exemption with expiresOn maintains the intended documented exception.

Question 143

An assigned DeployIfNotExists policy detects missing VM diagnostic resources but remediation tasks fail with permission errors. The policy assignment has a managed identity. What authorization should be reviewed?

  1. Grant the monitored VM system-assigned identity Storage Blob Data Reader
  2. Use an AuditIfNotExists effect and still expect it to create diagnostic resources
  3. Assign Reader only to the policy managed identity
  4. Grant the assignment identity the role permissions needed to deploy the related resource

Explanation

Correct Answer

D:

DeployIfNotExists performs its related-resource deployment using the managed identity on the Azure Policy assignment, so that identity must have suitable ARM roles at the deployment target scope. Check the definition’s roleDefinitionIds and ensure the identity received those role assignments, particularly for assignments created outside the portal or deployments outside the assignment scope. After correcting rights, rerun the remediation task and inspect its result.

Incorrect Answers

A:

The monitored VM’s system-assigned identity is an application principal used by the workload; it is not necessarily the managed identity attached to the Azure Policy assignment performing remediation. Giving that VM identity Blob Data Reader would only permit specified blob reads and cannot create VM diagnostic settings through ARM. Inspect the policy assignment identity and its deployment-related role permissions instead.

B:

AuditIfNotExists inspects related resource state and records a compliance finding when the expected diagnostic resource is absent. It does not execute the DeployIfNotExists template that would create the missing setting. Switching to audit would make the problem observable but would not satisfy the requirement for successful remediation; retain the deployment-capable effect and fix the identity authorization error.

C:

Reader grants Azure Resource Manager visibility but not the write Actions necessary to deploy the missing diagnostic setting. Even if the managed identity can see the VM and workspace, a remediation deployment will fail when it tries to create or modify resources without the relevant rights. The assignment identity needs least-privileged deployment permissions, not another read-only role.

Question 144

An Azure Policy initiative has three definitions: tag enforcement, approved regions, and diagnostic logging. One testing resource has a temporary exception ONLY for the tag rule; the other two controls must remain applicable. Which exemption detail is needed?

  1. Change the initiative effect to Disabled for all three definitions
  2. Specify the relevant policyDefinitionReferenceId in the exemption for that initiative
  3. Remove the initiative assignment from the subscription
  4. Exempt the whole resource group from all controls with no referenced definition

Explanation

Correct Answer

B:

An exemption targeting the initiative can include policy definition reference IDs to exempt only selected definitions. Scoping the waiver to the tag definition keeps the other initiative assessments in place.

Incorrect Answers

A:

Disabling every definition would suppress location and diagnostics controls the organization expressly needs to retain on the testing resource.

C:

Unassigning the initiative would eliminate governance coverage beyond the one permitted exception. It also affects resources not involved in the test.

D:

A broad group exemption without a reference selection would waive additional controls, including the required region and diagnostic logging checks.

Question 145

A policy assignment at a management group is intended to govern all child subscriptions except one isolated lab subscription. The lab must be omitted entirely from assignment applicability rather than counted as exempt in the compliance report. Which mechanism matches?

  1. Use an Azure Policy exemption for the entire lab subscription
  2. Give the lab subscription an Owner role assignment
  3. Change the shared policy definition to Disabled for all subscriptions
  4. Place the lab subscription scope in the policy assignment notScopes exclusion list

Explanation

Correct Answer

D:

A notScopes exclusion on the management-group policy assignment omits the selected child scope from applicability. This differs from a policy exemption record, which is used to document waived compliance for applicable resources.

Incorrect Answers

A:

A policy exemption documents a waiver or mitigation for applicable rules and can be counted as exempt in compliance. The request is to exclude the lab from policy assignment applicability altogether.

B:

Owner grants management privileges but does not exclude the subscription from inherited policy assignment evaluation.

C:

Disabling the definition alters governance for every scope using it, whereas the lab is the only desired exception. The definition should remain active elsewhere.

Question 146

A governance office groups several Azure Policy definitions into one initiative and wants a single approved-location parameter supplied at assignment time to influence multiple member definitions. What should the initiative author configure?

  1. Define an initiative-level parameter and map it into the included policy-definition parameters
  2. Assign all included policies separately and assume an initiative-level parameter passed to an unassigned initiative changes those independent assignments
  3. Give each included policy the same parameter name without mapping it from the initiative parameter
  4. Use policy definition display names as implicit initiative parameter references

Explanation

Correct Answer

A:

An initiative can expose a common assignment parameter and pass its value to member policy definitions. This keeps the allowed-location list consistent without editing each definition separately for every assignment.

Incorrect Answers

B:

Standalone assignments do not inherit input values from an initiative that is not the policy assignment being evaluated. The reusable initiative must declare an allowed-location parameter and explicitly map it to member definitions.

C:

Matching names do not automatically wire the initiative assignment value to each member definition. The initiative definition must explicitly pass the common parameter into its components.

D:

A display name identifies the policy but does not establish a parameter expression. The requested assignment-time value will not be forwarded into each child definition.

Question 147

A legacy VM fails a particular Azure Policy configuration check, but the compliance team has confirmed that an alternative independently verified control fully meets the policy intent. The team needs an exemption with the correct recorded justification rather than a temporary acceptance of risk. Which category fits?

  1. Create a policy exemption categorized as Mitigated, with the compensating-control evidence
  2. Create a Waiver describing a period of accepted noncompliance instead
  3. Set the policy assignment enforcement mode to DoNotEnforce for every resource
  4. Assign an exemption category Waiver, but attach a description of the compensating control rather than using Mitigated

Explanation

Correct Answer

A:

Mitigated records that an alternative method satisfies the underlying intent, matching the verified compensating control. The exemption is tied to the relevant policy assignment and scope.

Incorrect Answers

B:

Waiver signals that the organization accepts a noncompliant state, generally as an exception; it does not express that the original security intent is already met elsewhere.

C:

DoNotEnforce changes enforcement for an assignment scope and is too broad; it is not a specific exemption explaining how this VM meets the requirement.

D:

The exemption category communicates the reason for accepting noncompliance. Waiver records an accepted exception, while Mitigated is the appropriate category when an alternative control already meets the requirement; narrative text alone does not change the category.

Question 148

An Azure Policy exemption was created with an expiresOn date for a temporary exception. The date passes, but a compliance analyst still sees the exemption resource in the portal. Which interpretation is technically correct?

  1. Expiration converts the exemption into a global policy assignment exclusion
  2. The record can remain for audit history, while its exemption effect is no longer honored after expiration
  3. Expiration deletes the underlying Azure Policy definition
  4. The exempt resource stays permanently exempt until the exemption object is manually deleted

Explanation

Correct Answer

B:

An expired policy exemption is retained for record-keeping but ceases to exempt the resource after its time limit. The analyst should distinguish artifact existence from an active policy exception.

Incorrect Answers

A:

An exemption does not become a notScopes exclusion when it expires. The policy assignment structure and scope remain unchanged.

C:

Expiration is a property of the exemption, not a destructive operation on the governing policy definition. Other resources continue to be assessed.

D:

The object remaining visible does not mean it remains effective. A time-bound approval is not an indefinite waiver simply because its audit record persists.

Question 149

An assigned Azure Policy DeployIfNotExists rule checks whether each new virtual machine has a diagnostic setting that sends logs to an approved Log Analytics workspace. Some VMs already have a diagnostic setting pointing to the wrong workspace, but the policy treats them as compliant because it checks only that a related diagnosticSettings resource exists. What change makes the condition test the required destination?

  1. Add an existenceCondition to the DeployIfNotExists details that verifies the related diagnostic setting's workspaceId matches the approved workspace
  2. Change existenceScope from ResourceGroup to Subscription and assume every diagnostic setting in the subscription must use the approved workspace
  3. Give the policy assignment managed identity Azure Reader at the subscription without changing the related resource predicate
  4. Set the effect to Disabled so the wrong workspace is no longer reported by the policy

Explanation

Correct Answer

A:

For DeployIfNotExists, locating a related resource isn't enough if its configuration matters. An existenceCondition evaluates fields of each matching related resource, such as the diagnostic setting's workspaceId. Requiring the intended workspace makes a misrouted setting fail the existence test, allowing the deployment template or subsequent remediation to address the missing compliant setting under the policy's authorization conditions.

Incorrect Answers

B:

existenceScope changes where related resources are searched, not the properties that qualify them as correct. Expanding the search to an entire subscription could even find another unrelated diagnostic setting while leaving this VM's incorrect workspace destination unchallenged. The case requires value-based evaluation on the related diagnostic setting, not just a wider search location.

C:

Reader can be useful when evaluating resources, but the stem says the policy successfully finds existing settings and incorrectly accepts their wrong destination. Adding read permissions alone doesn't change the predicate from 'resource exists' into 'resource targets approved workspace'. The rule needs an existenceCondition on the actual destination property.

D:

Disabling the effect bypasses the policy enforcement and compliance result rather than ensuring logs arrive at the approved workspace. The VM's wrong diagnostic destination would persist and governance would lose its promised guarantee. A more precise related-resource existence condition is required before deciding whether the deployment should run.

Question 150

A central governance team updates a policy initiative to include another definition checking resource encryption. Existing assignments point to that initiative. What should the team do to validate the new coverage?

  1. Grant subscription Owner to all resources represented in the initiative
  2. Review the initiative assignment parameters and trigger or await compliance re-evaluation under the updated definition
  3. Assume the new encryption check is automatically remediated without a deploy or modify effect
  4. Delete the policy assignments permanently to prevent failures

Explanation

Correct Answer

B:

Adding a definition changes the checks applied by the initiative. The team must confirm parameters and refresh compliance evidence; merely updating the definition is not proof every affected resource now passes.

Incorrect Answers

A:

Azure resources do not need subscription Owner to be evaluated against initiative definitions. Such grants are unrelated and excessive.

C:

A policy assessment can identify gaps without writing resources. Remediation requires an applicable effect and authorized task.

D:

Deleting assignments eliminates enforcement and would undermine the intention of extending governance coverage.

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.