AZ-802 Windows Server Study Guide & Exam Questions

Free practice exam

AZ-802 Practice Exam: 21 Free Exam Questions

Test yourself on 21 exam questions picked from every domain of the study guide. You get your score per domain at the end, with every answer explained.

  • 21 exam questions
  • 7 domains
  • About 25 minutes
  • No account needed

One question at a time, like the real exam: results and explanations come after the last question. Nothing you answer is saved.

What the exam covers

Exam domainExam questions
1. Part 1: Active Directory Domain Services: Domain Controllers, Objects, Trusts and Group Policy2
2. Part 2: Remote and Hybrid Management: Windows Admin Center, PowerShell, Azure Arc and Automation3
3. Part 3: Hyper-V and Azure Virtual Machines: Configuration, Availability and Networking3
4. Part 4: DNS, DHCP and IPAM for On-Premises and Hybrid Networks2
5. Part 5: Storage and File Services: Azure Files, File Sync, Storage Spaces, SMB and BitLocker5
6. Part 6: Securing Windows Server and AD DS: Hardening, Defender and Credential Protection3
7. Part 7: Monitoring and Troubleshooting Windows Server: Performance, Logs, Azure Monitor and Recovery3

The 21 exam questions

Read them through, or start the exam to answer them and see how you score.

The adatum.com forest holds two domains with three domain controllers placed as follows.

NameDomainOperations master roles
DC1adatum.comSchema master
DC2adatum.comNone
DC3east.adatum.comPDC emulator, RID master
  • If DC1 stops working, DC2 has to take over as the schema master.
1. DC1 has failed. You open ntdsutil.exe to satisfy the schema master requirement. In which order should you run the five commands?
  • connect to server dc2.adatum.com
  • connections
  • quit
  • roles
  • seize schema master

The network uses a contoso.com parent domain, a west.contoso.com child domain, and a sub.west.contoso.com child of west.contoso.com. Separately, fabrikam.com stands alone as the root of another forest. Two new relationships are planned while keeping the existing parent-child links: Trust1 directly joins sub.west.contoso.com to contoso.com, and Trust2 joins contoso.com to fabrikam.com.

2. Which trust type fits each planned relationship? Trust1: ____ Trust2: ____

Pick the permitted trust type for each planned link.

  • External trust only
  • External trust or shortcut trust only
  • Forest trust only
  • Forest trust or external trust only
  • Forest trust or shortcut trust only
  • Forest trust, shortcut trust, or external trust
  • Shortcut trust only
3. A virtual network holds two Windows Server machines named VM1 and VM2. While signed in to the portal from VM2, you must be able to handle the operating system of VM1 at the lowest cost. Which two VM1 portal settings form part of the fix?
  • Connect
  • Bastion
  • Windows Admin Center
  • Access control (IAM)
  • Network settings
  • Extensions + applications
  • Configuration
  • Disks

The on-premises domain holds a user named User1 plus the servers listed below. User1 belongs to the Protected Users group.

NameOperating system
Server1Windows Server 2016
Server2Windows Server 2022
Backup1Windows Server 2019
  • From Server1, User1 opens a remote PowerShell session to Server2.
  • From that session on Server2, User1 tries to reach a resource on Backup1.
  • The attempt toward Backup1 is rejected.

User1 must be able to reach Backup1 through the session on Server2, following least privilege and keeping extra work low.

4. What should be set up to allow the access?
  • Kerberos delegation (unconstrained)
  • CredSSP
  • PSSessionConfiguration by using RunAs
  • resource-based Kerberos constrained delegation

An Azure subscription holds a resource group named RG1 with several virtual machines running Windows Server. A policy that sets the time zone on Windows machines is assigned with the configuration below.

SectionSettingValue
BasicsScopeVisual Studio Enterprise Subscription/RG1
BasicsExclusions--
BasicsPolicy definitionConfigure time zone on Windows machines.
BasicsAssignment nameConfigure time zone on Windows machines.
BasicsVersion (preview)2.*.*
BasicsDescription--
BasicsPolicy enforcementEnabled
BasicsAssigned by--
AdvancedResource selectorsNo selectors associated with this assignment.
AdvancedOverridesNo overrides associated with this assignment.
ParametersTime zone(UTC-12:00) International Date Line West
RemediationCreate a Managed IdentityYes
RemediationType of Managed IdentityUser assigned managed identity
RemediationManaged IdentityManaged1
RemediationCreate a remediation taskYes
Non-compliance messagesDefault non-compliance messageNot compliant
5. The policy will enforce the UTC-12:00 time zone on ____ that run Windows Server. Remediation will act only on virtual machines that possess a ____.

Complete the statements about policy scope and remediation prerequisites.

  • all existing and newly created virtual machines in RG1
  • all existing and newly created virtual machines in the subscription
  • only newly created virtual machines in RG1
  • only newly created virtual machines in the subscription
  • system-assigned managed identity
  • user assigned the Owner role
  • user assigned the Virtual Machine Contributor role
  • user-assigned managed identity

Three Windows Server Hyper-V hosts are named Server1, Server2, and Server3. Server1 currently runs a virtual machine named VM1. Replication of VM1 to Server2 is active with a 30-second interval. You now want to lengthen the chain so a second copy of VM1 is kept on Server3.

6. The Hyper-V host on which to set up extended replication of VM1: ____. The shortest replication interval permitted for that extended copy: ____.

Select the host and interval for extended replication.

  • 15 minutes
  • 30 seconds
  • 5 minutes
  • Server1 only
  • Server1 or Server2 only
  • Server1, Server2, or Server3
  • Server2 only
  • Server3 only

Two identically configured Windows Servers named Host1 and Host2 run Hyper-V and sit in a Contoso workgroup, one per site, joined by a fast WAN. Host1 currently holds three virtual machines. You want disaster-recovery copies of those machines on Host2.

7. Which three actions should you perform to replicate the machines from Host1 to Host2?
  • Activate live migration on Host1 and Host2.
  • Use Kerberos authentication and open TCP exceptions.
  • Turn on Hyper-V replication for each virtual machine.
  • Enable Host1 as a Replica server.
  • Use certificate-based authentication and open TCP exceptions.
  • Enable Host2 as a Replica server.

VM1 is a Windows Server Azure virtual machine whose size provides a local temporary disk. Volume C is the managed operating-system disk and volume D is the temporary disk. You carry out the following work on VM1:

  • Make a directory called Folder1 on volume C.
  • Make a directory called Folder2 on volume D.
  • Attach a new data disk, format a new volume as drive E, and install an application called App1 on volume E.
  • Resize VM1, which restarts the virtual machine and can move it to a different host.
8. Which items are certain to still be present once the resize finishes?
  • Folder1, volume E, and App1 only
  • Folder1 only
  • Folder1 and Folder2 only
  • Folder1, Folder2, App1, and volume E

Your on-premises Active Directory forest named contoso.com holds three domain controllers. Each one runs the DNS Server role and hosts an Active Directory-integrated zone for contoso.com. The DNS servers forward unresolved internet names to the current forwarders. A partner organization owns the fabrikam.com namespace and makes DNS servers at 172.16.10.10 and 172.16.10.11 reachable over a Site-to-Site VPN. You must adjust DNS in the contoso.com forest as follows.

  • Direct lookups for fabrikam.com toward the partner DNS servers at 172.16.10.10 and 172.16.10.11.
  • Keep sending all other external lookups to the present forwarders.
  • Make the setting replicate to every present and later DNS server on domain controllers in contoso.com.
9. Which DNS change should you implement?
  • Configure forwarders that point to 172.16.10.10 and 172.16.10.11.
  • Add an Active Directory-integrated conditional forwarder for fabrikam.com that uses 172.16.10.10 and 172.16.10.11.
  • Add a locally stored conditional forwarder for fabrikam.com that uses 172.16.10.10 and 172.16.10.11.
  • Configure root hints that point to 172.16.10.10 and 172.16.10.11.

The contoso.com domain has a DNS server called Server1 that is authoritative for a DNSSEC-signed zone called fabrikam.com. Every member server must demand DNSSEC validation for that namespace.

10. What should you do to force DNSSEC validation for fabrikam.com on all member servers?
  • On Server1, run the Add-DnsServerTrustAnchor cmdlet.
  • On each member server, run the Add-DnsServerTrustAnchor cmdlet.
  • From a Group Policy Object (GPO), add a rule to the Name Resolution Policy Table (NRPT).
  • From a Group Policy Object (GPO), modify the Network List Manager policies.

VM1 is joined to adatum.com and hosts a file share called Data1. The Azure subscription contains a storage account named storage1 with a file share named share1. Data1 must be synchronized to share1.

11. The Azure File Sync agent will be installed on VM1 and registered separately. In which sequence should you perform the remaining steps to implement the Data1 synchronization?
  • Add a server endpoint.
  • Create a sync group.
  • Deploy the Azure Storage Sync service.

A subscription holds the storage accounts below. A Storage Sync Service named Sync1 has been placed in the East US region, and a sync group will be added to it.

NameLocationKindContainerFile share
storage1East USStorageV2cont1share1
storage2East USBlockBlobStoragecont2Not applicable
storage3East USFileStorageNot applicableshare3
storage4Central USStorageV2cont4share4
12. Usable storage accounts: ____ Items that can act as cloud endpoints: ____

Pick accounts and endpoints.

  • cont1 and cont2 only
  • cont1, cont2, and cont4 only
  • cont1, cont2, cont4, share1, share3, and share4
  • cont1, cont2, share1, and share3 only
  • share1 and share3 only
  • share1, share3, and share4 only
  • storage1 and storage3 only
  • storage1 and storage4 only
  • storage1 only
  • storage1, storage2, and storage3 only
  • storage1, storage2, storage3, and storage4

Server1 runs Windows Server and has three volumes called C, D and E. Files are placed as listed below.

NameOn volumeSize
File1C500 KB
File2D10 KB
File3D1 MB

Data Deduplication is turned on for volume D alone, using the General purpose file server usage type.

  • Shift File1 onto volume D.
  • Duplicate File2 onto volume D under the name File4.
  • Shift File3 onto volume E.
  • Four days later the optimization job processes volume D.
13. File1 is deduplicated once the job has run.
  • True
  • False
14. File3 is deduplicated once the job has run.
  • True
  • False
15. File4 is deduplicated once the job has run.
  • True
  • False

Your domain holds two Windows Server machines called Server1 and Server2. You plan to govern traffic between them with connection security rules that satisfy these conditions.

  • Confine IPsec protection to Server1 and Server2 alone.
  • Make exchanges between Server1 and Server2 both authenticated and encrypted.
  • Have Server2 admit traffic from Server1 only when that traffic was authenticated with IPsec.
16. IPsec rule type: ____ Firewall rule on Server2: ____

Pick the rule types that meet the IPsec needs

  • Authentication exemption rule
  • Inbound port rule: Allow the connection
  • Inbound port rule: Allow the connection if it is secure
  • Isolation rule
  • Outbound port rule: Allow the connection if it is secure
  • Predefined rule: Allow the connection
  • Server-to-server rule
  • Tunnel rule

Your environment includes an AD DS domain. You must set a ticket-granting ticket lifetime for only certain user and computer accounts.

  • Limit the effect on the remaining user and computer accounts in the domain.
  • Keep administrative effort as low as possible.
17. What should you configure to control the TGT lifetime for those accounts?
  • a dynamic access control policy
  • a password policy
  • an authentication policy and an authentication policy silo
  • a fine-grained password policy

The network includes an Active Directory Domain Services domain with two Windows Server 2022 members named Server1 and Server2. A program called App1 will run on both servers behind load balancing. An identity for App1 must rotate its password on a schedule while creating as little ongoing work as possible.

  • The credential for the identity has to change on a regular basis.
  • Ongoing administrative work has to stay as low as possible.
18. Running App1 on both hosts with an automatically managed password needs these actions in order. First action: ____ Second action: ____ Third action: ____

Build the identity in order.

  • Create a group managed service account (gMSA).
  • Create a Key Distribution Services (KDS) root key.
  • Create a service principal name (SPN).
  • Create a standalone managed service account (sMSA).
  • Enable constrained delegation for Server1 and Server2.
  • Install the service account on Server1 and Server2.

One hundred Azure virtual machines run Windows Server. Azure Monitor agents will watch the Application log on each one for event ID 1035. Those events must land in Log Analytics for review while keeping the total amount stored as small as possible.

19. To make the events available with minimal stored volume, create: ____ Filter the logs by using a: ____

Choose collection and filtering.

  • A Data Collection Rule (DCR)
  • A Log Analytics custom log
  • A Log Analytics scope configuration
  • KQL query
  • VM insights
  • WQL query
  • XPath query

An Azure virtual machine named VM1 running Windows Server no longer boots because of a disk fault. You will fix it with the offline repair workflow executed from Azure Cloud Shell.

20. First command to run: ____. Second command to run: ____. Third command to run: ____. Fourth command to run: ____.

Order the four repair commands.

  • az extension add
  • az vm disk
  • az vm repair create
  • az vm repair restore
  • az vm repair run
21. An Azure VM called VM1 runs Windows Server, and setup of the Azure Performance Diagnostics extension keeps failing. Which two methods can expose the reason? Each correct choice is a full solution.
  • Log on to VM1 and inspect the MonitoringAgent.log file.
  • Log on to VM1 and inspect the WaAppAgent.log file.
  • In the Azure portal, review the alerts scoped to VM1.
  • In the Azure portal, review the activity log scoped to VM1.