Skip to main content
Brixus
  1. Courses
  2. Certification Study Guides
  3. AZ-802 Windows Server Study Guide & Exam Questions
  4. Read
AZ-802 Windows Server Study Guide & Exam Questions
  • 1.Part 1: Active Directory Domain Services: Domain Controllers, Objects, Trusts and Group Policy
    • 1. AD DS Fundamentals: Forests, Domains and Domain Controller Deployment
    • 2. AD DS Domain Controllers on Azure IaaS Virtual Machines
    • 3. FSMO Roles, Global Catalog, Schema and Domain Controller Maintenance
    • 4. AD DS Users, Groups, Computers and Organizational Units
    • 5. Hybrid Identity: Microsoft Entra Connect Sync and Seamless SSO
    • 6. Microsoft Entra Domain Services for Windows Server Workloads
    • 7. Group Policy Objects: Processing Order, Scope, Inheritance and Filtering
    • 8. Domain GPOs, SYSVOL Storage, Administrative Templates and Password Policies
    • 9. AD DS Trust Relationships, Custom Partitions and AD DS Monitoring
  • 2.Part 2: Remote and Hybrid Management: Windows Admin Center, PowerShell, Azure Arc and Automation
  • 3.Part 3: Hyper-V and Azure Virtual Machines: Configuration, Availability and Networking
  • 4.Part 4: DNS, DHCP and IPAM for On-Premises and Hybrid Networks
  • 5.Part 5: Storage and File Services: Azure Files, File Sync, Storage Spaces, SMB and BitLocker
  • 6.Part 6: Securing Windows Server and AD DS: Hardening, Defender and Credential Protection
  • 7.Part 7: Monitoring and Troubleshooting Windows Server: Performance, Logs, Azure Monitor and Recovery

Your progress is not saved. You are trying this lesson as a guest, so your answers and progress are not saved.

1.2 AD DS Domain Controllers on Azure IaaS Virtual Machines

You are Contoso’s lead system engineer. The financial services company runs most of its Windows Server workloads on-premises and is migrating servers to Windows Server 2025. Its proof of concept must determine whether Azure services can help modernize its infrastructure and meet business goals. One option is to extend Active Directory Domain Services (AD DS) by placing infrastructure as a service (IaaS) virtual machines configured as domain controllers in an Azure virtual network (VNet) subnet. Microsoft Entra ID and Microsoft Entra Domain Services are also options Contoso could consider.

Choose an identity deployment

Contoso uses AD DS to authenticate users, computers, applications, and other resources. Its planned line-of-business applications will run partly on-premises and partly in Azure. Sending authentication requests back on-premises can add latency. Hosting domain controllers in Azure can keep authentication for Azure services in Azure, provide resiliency for the on-premises directory, and extend access to worldwide sites.

  • Azure-only AD DS: Create a VNet without requiring cross-premises connectivity. Typically, start a new forest and run all domain controllers on Azure VMs. Consider static IP addresses. This fits deployments with no existing on-premises AD DS or applications that need Kerberos authentication but do not depend on on-premises directory services.

  • AD DS on-premises and in Azure: Create a VNet with cross-premises connectivity and allocate IP addresses for the Azure VMs. This is common for LDAP-aware applications that support Windows-integrated authentication. Azure workloads can use Azure domain controllers for authentication, LDAP lookups, and name server resolution. This improves sign-in performance and helps optimize cost: inbound traffic (ingress) is free, but outbound traffic (egress) is not.

Deployment option

How it works and when it fits

Additional AD DS domain controller on an Azure VM

Replicating AD DS to Azure can reduce authentication latency for applications split between environments. The networks commonly connect over a virtual private network (VPN) or ExpressRoute. Bidirectional replication keeps the directory consistent when changes are made in either location. This suits hybrid applications and services that authenticate through Active Directory.

Separate Active Directory forest or domain in Azure

A forest is the top level of the AD DS hierarchy; forests contain domains, and domains contain other objects. An Azure domain in the same forest as the on-premises domain is trusted automatically. A separate Azure forest can instead use a one-way outgoing or two-way trust with an on-premises domain so that on-premises sign-ins can be trusted for Azure resources. Typical uses include keeping cloud objects and identities separate and migrating individual domains.

Contoso’s application runs partly on-premises and partly in Azure. Its Azure component currently sends authentication requests back to the on-premises AD DS directory.

1. An application runs partly on-premises and partly in Azure. How can adding a replica AD DS domain controller in Azure reduce authentication latency for the Azure component?
  • The Azure component can authenticate against the Azure replica.
  • The Azure component must first send every authentication request on-premises.
  • A replica replaces AD DS authentication with a one-way trust.
Show answer and explanation
  • The Azure component can authenticate against the Azure replica.

The Azure component can authenticate against a domain controller in Azure instead of sending its requests back to the on-premises directory.

2. When an on-premises AD DS domain controller and an Azure replica use bidirectional replication, directory changes can be made in either location and replicated to the other.
  • True
  • False
Show answer and explanation
  • True

Bidirectional replication keeps the directories consistent whether a change starts on-premises or in Azure.

3. For a deployment with no on-premises AD DS and applications that need Kerberos but do not depend on an on-premises directory, the option that does not require cross-premises connectivity is ____.

Choose the deployment that meets the application’s needs.

  • AD DS spanning on-premises and Azure
  • An Azure replica of an on-premises domain controller
  • Azure-only AD DS
Show answer
  • For a deployment with no on-premises AD DS and applications that need Kerberos but do not depend on an on-premises directory, the option that does not require cross-premises connectivity is Azure-only AD DS.

Design networking, replication, and trusts

Warning

Place the Active Directory database on an Azure VM data disk with caching turned off. The operating system disk’s read and write cache settings can cause database corruption.

  • Network interface (NIC): Configure a static, private IP address for each AD DS server for full Domain Name System (DNS) support. Do not assign a public IP address to a domain controller NIC.

  • Subnet network security group (NSG): For a hybrid deployment, configure rules to permit incoming traffic from on-premises and outgoing traffic to on-premises.

  • Inter-site connectivity: Connect the Azure VNet to the internal network using site-to-site VPN or ExpressRoute so Azure VMs can communicate with on-premises domain controllers.

  • AD DS sites: Configure sites to control replication traffic between on-premises and Azure domain controllers. The Knowledge Consistency Checker (KCC) controls replication.

Replication scope

Topology

Timing

Intra-site

Bidirectional ring; assumes high-bandwidth, permanently available connections.

Unscheduled and optimized for speed.

Inter-site

Least-cost spanning tree.

Default interval of three hours; can be restricted to certain times of the day or week.

Domains in the same forest trust one another automatically. For domains in different forests, the domain hosting resources must trust the users’ logon domain. A forest trust is transitive across all domains in the two forests. An external trust is non-transitive and applies only to two specified domains; create it only between domains in different forests.

In a one-way trust, users on the incoming side can access resources on the outgoing side. A two-way trust lets users on either side access resources on the other.

Required access

On-premises trust

Azure trust

On-premises users need Azure resources, but not vice versa.

One-way, incoming

One-way, outgoing

Azure users need on-premises resources, but not vice versa.

One-way, outgoing

One-way, incoming

Users in both locations need resources in both locations.

Two-way, incoming and outgoing

Two-way, incoming and outgoing

4. AD DS sites control replication traffic. Match each replication design to its scope, within one site or between sites.
  • A bidirectional ring with unscheduled updates optimized for speed
  • A least-cost spanning tree with replication that can be restricted to selected times
  • Between sites
  • Within one site
Show answer and explanation
  • A bidirectional ring with unscheduled updates optimized for speed: Within one site
  • A least-cost spanning tree with replication that can be restricted to selected times: Between sites

Intra-site replication assumes high-bandwidth, permanently available connections.

Inter-site replication can be scheduled for certain times of the day or week.

5. An on-premises AD DS domain and an AD DS domain hosted on Azure VMs are in different forests. Only on-premises users need access to Azure resources. Which trust configuration meets that requirement without enabling access in the reverse direction?
  • A one-way incoming trust on-premises and a one-way outgoing trust in Azure
  • A one-way outgoing trust on-premises and a one-way incoming trust in Azure
  • A two-way trust between the on-premises and Azure domains
Show answer and explanation
  • A one-way incoming trust on-premises and a one-way outgoing trust in Azure

Users on the incoming side can access resources on the outgoing side. The on-premises trust is incoming, and the Azure trust is outgoing.

6. An external trust between two specified AD DS domains in different forests automatically extends trust to every domain in both forests.
  • True
  • False
Show answer and explanation
  • False

An external trust is non-transitive and covers only the specified domains. A forest trust is transitive across all domains in both forests.

Plan availability and ongoing operations

  • Read-only domain controllers (RODCs): They reduce egress traffic and resulting Azure charges, but do not work for applications or services that require write access to AD DS.

  • Global catalog placement: Configure all Azure-based domain controllers as global catalog servers so global catalog lookups and universal group membership evaluations do not incur egress by going on-premises.

  • Flexible single master operations (FSMO) roles: Host the operation masters for a separate Azure forest in Azure. For a separate Azure domain, configure its primary domain controller (PDC) emulator master, relative ID master, and infrastructure master on Azure VMs. Consider standby operations masters in case connectivity to a FSMO role holder fails.

  • Availability: Provision at least two domain controllers per domain for automatic replication. Place them in different availability zones, or in an availability set where the region has no zones. Requests are distributed across all controllers in a domain, so a load balancer is not needed to direct them.

  • Backup and restore: Back up system state using the same procedure as on-premises. Avoid copying or cloning the virtual hard drive: this can cause update sequence number rollback, and an inconsistent database copy might not start.

  • Monitoring: Monitor VM resources and AD DS services, and plan how to correct problems quickly. Azure Monitor can help diagnose networking issues without signing in to VMs. Application Insights can provide metrics and logs to verify infrastructure health.

Warning

Shut down and restart a domain controller from the guest OS, not the Azure portal. Portal shutdown deallocates the VM and resets the directory’s VM-GenerationID and invocationID. This discards the relative identifier (RID) pool, marks SYSVOL nonauthoritative, and might require reconfiguration.

7. A service in Azure needs to write to AD DS. Why is a read-only domain controller (RODC) unsuitable for that service, even if it reduces egress traffic?
  • The service requires directory writes, which an RODC cannot provide.
  • An RODC always sends more outbound traffic.
  • An RODC is required whenever a service writes to the directory.
Show answer and explanation
  • The service requires directory writes, which an RODC cannot provide.

An RODC can reduce egress charges, but it does not work when the service requires write access to AD DS.

8. To avoid sending global catalog lookups and universal group membership evaluations on-premises, configure all Azure-based domain controllers as ____.

Choose the role that keeps the lookups in Azure.

  • global catalog servers
  • read-only domain controllers
  • standby operations masters
Show answer
  • To avoid sending global catalog lookups and universal group membership evaluations on-premises, configure all Azure-based domain controllers as global catalog servers.
9. Copying an Azure domain controller’s virtual hard drive avoids the risk of an inconsistent AD DS database copy and is therefore preferred over a system state backup.
  • True
  • False
Show answer and explanation
  • False

A copied virtual hard drive can contain an inconsistent database and can cause update sequence number rollback. Use the on-premises system state backup procedure instead.

10. An administrator needs to shut down and restart an AD DS domain controller running on an Azure VM. Which approach avoids the directory changes caused by portal deallocation?
  • Shut down and restart from the guest operating system.
  • Shut down through the Azure portal and then restart the VM.
  • Copy the virtual hard drive instead of shutting down the VM.
Show answer and explanation
  • Shut down and restart from the guest operating system.

Shut down and restart from the guest OS. Shutting down from the Azure portal deallocates the VM and resets directory identifiers.

Deploy a replica domain controller

  1. Create an Azure VNet with cross-premises connectivity.

  2. Choose managed disk types for the operating system and data disks; Azure manages their storage, so no storage account is needed.

  3. Create a Windows Server VM with a static private IP address from the VNet range; attach one or more data disks for the database, logs, and SYSVOL.

  4. Install AD DS and DNS, and configure AD DS to promote the server to a domain controller.

Connect the replica to the on-premises network

For site-to-site VPN, name the VNet and point its DNS settings to the on-premises DNS servers. Define both the on-premises address space and the Azure VM address space; they must not overlap. Configure the on-premises VPN device with a static public IP address and rules that connect it to the VNet’s route-based VPN gateway. The gateway uses a public IP address to establish the VPN tunnel. These public addresses are for the connection, not for domain controller NICs.

Diagram: On-premises network, On-premises VPN device (static public IP), On-premises DNS servers, Azure VNet, Route-based VPN gateway (public IP), Azure replica domain controller VM (static private IP), Azure VNet DNS settings, Address spaces must not overlap

ExpressRoute is an alternative to site-to-site VPN. A connectivity provider supplies a dedicated private connection rather than a public internet connection, providing faster speeds, greater reliability, and lower latency.

  1. Install the Az PowerShell module and sign in with Connect-AzAccount.

  2. Obtain the supported providers, locations, and bandwidths.

  3. Create the ExpressRoute circuit.

  4. Send the service key to the connectivity provider for provisioning.

  5. Create the routing configuration.

  6. Link the VNet to the ExpressRoute circuit.

Connect-AzAccount
Get-AzExpressRouteServiceProvider
New-AzExpressRouteCircuit -Name $CircuitName -ResourceGroupName $ResourceGroup -Location $Location -SkuTier Premium -SkuFamily MeteredData -ServiceProviderName $ServiceProvider -PeeringLocation $PeeringLocation -BandwidthInMbps $Bandwidth

Configure storage and the VM

Domain controller VMs use managed disks, so you don't create a storage account for them. On the VM's Disks tab, choose the disk type, add a data disk for the database, logs, and SYSVOL, and set its host caching to None.

Option

What to choose for the replica scenario

Disk type

Choose Premium SSD for consistent, low-latency performance. Standard HDD costs less and suits only bulk or infrequently accessed data.

Redundancy

Managed disks are locally redundant (LRS) or zone-redundant (ZRS). For resilience, place the domain controllers in different availability zones.

In Azure CLI, create the NIC with a static private IP address, then create the VM using that NIC. Replace the sample values with values appropriate to your deployment and start the VM.

az network nic create \
  --resource-group ContosoResourceGroup \
  --name ContosoNIC4 \
  --location eastus \
  --subnet ContosoVM1Subnet \
  --private-ip-address 10.0.0.10 \
  --vnet-name ContosoVM1VNET
az vm create \
  --resource-group ContosoResourceGroup \
  --name ContosoDC01 \
  --location eastus \
  --image Win2025Datacenter \
  --admin-username adminuser \
  --nics ContosoNIC4

Use Add Roles and Features in Server Manager or Windows PowerShell to add AD DS. AD DS setup can add DNS automatically, or you can add it later. Adding the AD DS role is not enough on its own: configure AD DS to promote the server.

Add-WindowsFeature AD-Domain-Services -IncludeManagementTools
Add-WindowsFeature DNS
11. Put the main stages of deploying an Azure replica of an on-premises AD DS domain controller in order, from network preparation to server promotion.
  • Choose the managed disk types for the VM disks.
  • Create the VM and assign its static private IP address.
  • Create the VNet with cross-premises connectivity.
  • Install AD DS and DNS and configure AD DS to promote the server.
Show answer
  1. Create the VNet with cross-premises connectivity.
  2. Choose the managed disk types for the VM disks.
  3. Create the VM and assign its static private IP address.
  4. Install AD DS and DNS and configure AD DS to promote the server.
12. In a site-to-site VPN deployment for an Azure replica domain controller, the route-based VPN gateway can use a public IP address while the domain controller NIC uses a static private IP address.
  • True
  • False
Show answer and explanation
  • True

The gateway’s public address is for establishing the VPN tunnel. The domain controller NIC uses a static private address and should not have a public IP address.

13. An engineer is preparing a site-to-site VPN so an Azure replica domain controller can communicate with the on-premises directory. Which VNet configuration meets the DNS and addressing requirements?
  • Use on-premises DNS server addresses and non-overlapping network address ranges.
  • Use on-premises DNS server addresses and overlapping network address ranges.
  • Use the address of the new standalone forest’s domain controller and overlapping network address ranges.
Show answer and explanation
  • Use on-premises DNS server addresses and non-overlapping network address ranges.

For the replica deployment, the VNet points to the on-premises DNS servers, and the Azure address range must not overlap the on-premises range.

Build a new forest in Azure

A new Azure-only forest shares the replica deployment’s VM, disk, and role requirements, but does not require cross-premises connectivity. It will most likely use a single AD DS site; in that case, all domain controllers should be global catalogs.

  1. Create and name the VNet. Specify the address range for Azure VMs and set the VNet’s DNS server addresses to point to the new domain controller’s IP address.

  2. Create the VMs that will run the domain controller and DNS server roles.

  3. Install the AD DS and DNS roles using the same procedure as for a replica.

After either deployment, you can increase security by using NSGs to limit access to domain controllers and Azure Bastion for administrative access instead of public IP addresses.

14. Match each Azure AD DS deployment to the VNet DNS target it specifies when creating the network.
  • An Azure replica of an on-premises domain controller using a site-to-site VPN
  • A new Azure-only AD DS forest
  • IP address of the new Azure domain controller
  • On-premises DNS server addresses
Show answer and explanation
  • An Azure replica of an on-premises domain controller using a site-to-site VPN: On-premises DNS server addresses
  • A new Azure-only AD DS forest: IP address of the new Azure domain controller

The replica VNet initially points to the existing on-premises DNS servers.

The new forest’s VNet DNS settings point to its new domain controller.

15. A new Azure-only AD DS forest requires cross-premises connectivity in the same way that an Azure replica of an on-premises domain controller does.
  • True
  • False
Show answer and explanation
  • False

Both deployments require a VNet, but only the replica of an on-premises domain controller requires cross-premises connectivity.

That's the end of the free part

Up next: FSMO Roles, Global Catalog, Schema and Domain Controller Maintenance

71 more pages and 1366 questions in the full study guide.

See what is in AZ-802 Windows Server Study Guide & Exam Questions
AD DS Fundamentals: Forests, Domains and Domain Controller DeploymentPage 2 of 73