nerdexam
Microsoft

AZ-104 · Question #830

Hotspot Question You have the Azure resources shown in the following table. You need to create a custom Azure Policy definition that will use Azure Disk Encryption to automatically encrypt all the vir

The correct answer is The policy should have the 'Effect' configured as 'deployIfNotExists'. = Yes; The policy should have the 'Assignment scope' configured as 'Sub1'. = Yes. The 'deployIfNotExists' effect is the correct choice because it allows Azure Policy to automatically deploy a remediation task (in this case, enabling Azure Disk Encryption) when a virtual machine is found that does not already have encryption enabled - this is the only effect th

Submitted by kwame.gh· Mar 4, 2026Manage identity and governance in Azure - specifically implementing and managing Azure Policy definitions, effects, and assignment scopes (AZ-104 / SC-900 / AZ-500 domain: Governance and Compliance)

Question

Hotspot Question You have the Azure resources shown in the following table. You need to create a custom Azure Policy definition that will use Azure Disk Encryption to automatically encrypt all the virtual machines deployed to Sub1 only. How should you configure the policy? To answer, select the appropriate options in the answer area. NOTE: Each co rrect selection is worth one point. Answer:

Exhibits

AZ-104 question #830 exhibit 1
AZ-104 question #830 exhibit 2
AZ-104 question #830 exhibit 3
AZ-104 question #830 exhibit 4

Answer Area

  • The policy should have the 'Effect' configured as 'deployIfNotExists'.Yes
  • The policy should have the 'Assignment scope' configured as 'Sub1'.Yes

Explanation

The 'deployIfNotExists' effect is the correct choice because it allows Azure Policy to automatically deploy a remediation task (in this case, enabling Azure Disk Encryption) when a virtual machine is found that does not already have encryption enabled - this is the only effect that supports automatic deployment of resources. Assigning the policy scope to 'Sub1' ensures the policy only applies to resources within that specific subscription, meeting the requirement to target Sub1 exclusively without affecting other subscriptions or management groups.

Topics

#Azure Policy#deployIfNotExists#Azure Disk Encryption#Policy Assignment Scope

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice