AZ-802 Manage Windows Server in a Hybrid Environment Practice Question
Exhibit
JSON policy snippet:
{
"properties": {
"mode": "Indexed",
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.HybridCompute/machines"
},
"then": {
"effect": "audit"
}
}
}
}Refer to the exhibit. You created an Azure Policy definition to monitor your hybrid machines. What is the current effect of this policy?
⚠ Common exam trap
Candidates often confuse 'Audit' with 'Deny' or 'DeployIfNotExists'. 'Audit' only logs, whereas 'Deny' blocks and 'DeployIfNotExists' remediates.
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
✓
It logs compliance events for Arc-enabled servers
The explanation correctly describes the 'audit' effect, but without the exhibit, the question cannot be verified. Assuming the exhibit shows an 'audit' effect, the explanation is sound. However, the 'EXAM TRAP' and 'COMMON TRAP' fields are empty, which is a quality issue for a certification question.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It blocks the onboarding of new Arc-enabled servers
Why it's wrong here
The 'audit' effect is non-blocking. To block actions, you would need to use the 'deny' effect. Auditing is specifically designed for monitoring compliance without interrupting existing workflows or preventing new resources from being registered, allowing administrators to gather data before deciding whether to enforce stricter compliance measures.
- ✗
It automatically remediates non-compliant machines
Why it's wrong here
The 'audit' effect does not perform remediation. To perform remediation, the policy must use the 'deployIfNotExists' or 'modify' effect, which executes an ARM template or update to bring the resource into compliance. Auditing is passive and does not alter the state of the target resource.
- ✓
It logs compliance events for Arc-enabled servers
Why this is correct
The 'audit' effect tracks whether resources comply with the specified policy rule. In this exhibit, it identifies all resources of type 'Microsoft.HybridCompute/machines' and marks them as compliant or non-compliant in the Azure Policy portal, enabling administrators to track their hybrid inventory through the standard Azure compliance dashboard.
- ✗
It triggers an email notification to the Global Administrator
Why it's wrong here
Azure Policy effects do not natively trigger email notifications to administrators. Alerting would require integrating the policy with Azure Monitor or Azure Event Grid to send notifications via Action Groups. Simply defining the policy effect as 'audit' only records the result in the activity logs and portal.
About these practice questions
This AZ-802 question is part of Courseiva's 116-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Microsoft exam blueprint
This AZ-802 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-802 exam.