AZ-802 Practice Question: Implement and Manage On-Prem and Hybrid Networking
You are configuring a Windows Server 2022 instance to act as a router between two subnets. You have enabled IP forwarding, but traffic is not passing between the subnets. Which PowerShell cmdlet should you use to verify if the routing table is correctly identifying the local interface routes?
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
✓
Get-NetRoute
The Get-NetRoute cmdlet is essential for inspecting the IPv4 and IPv6 routing tables on Windows Server. It allows administrators to verify that the destination network is reachable via the correct interface and gateway. Misconfigured routes are a primary cause of packet loss in multi-homed server environments, and this tool provides the granular visibility needed to troubleshoot connectivity issues between internal subnets.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Get-NetIPAddress
Why it's wrong here
This cmdlet displays IP address configuration including prefixes and interface indices, but it does not show the actual routing logic or path decisions taken by the Windows networking stack. It is useful for verifying interface assignments rather than validating the destination reachability or hop-by-hop packet forwarding behavior.
- ✗
Test-NetConnection
Why it's wrong here
While this tool is excellent for testing end-to-end connectivity and port availability, it simulates a connection attempt rather than providing a diagnostic view of the local server's routing table. It cannot confirm if the internal routing logic is configured to handle traffic between two locally attached interfaces.
- ✓
Get-NetRoute
Why this is correct
This cmdlet retrieves the current routing table entries. It is the primary tool for verifying that the operating system recognizes the destination subnets and maps them to the appropriate network interfaces. If a route is missing or pointing to the wrong interface, this cmdlet will clearly highlight the discrepancy.
- ✗
Get-NetAdapter
Why it's wrong here
This cmdlet provides information about physical or virtual network adapters such as status, speed, and hardware properties. It does not provide insight into Layer 3 routing configuration or the logic the kernel uses to decide which interface should handle traffic destined for a specific remote IP address.
Visual reference
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.