AZ-802 Practice Question: Implement and Manage On-Prem and Hybrid Networking
You are managing a Windows Server 2022 server that needs to access a storage array on a different subnet. You notice the server is not reaching the storage controller. Which PowerShell command should you use to add a permanent persistent route to the storage network?
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
✓
New-NetRoute
The New-NetRoute cmdlet is the standard PowerShell method to add routes to the Windows routing table. By specifying the -DestinationPrefix and the -NextHop, you instruct the OS on how to route traffic to the storage network. Using the -PolicyStore command ensures that the route is persistent across system reboots, which is critical for storage connectivity stability.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add-NetNeighbor
Why it's wrong here
The Add-NetNeighbor cmdlet is used to manually add an ARP or neighbor discovery entry for a specific IP address. It is intended for Layer 2 address resolution, not for adding Layer 3 routing table entries required to reach a remote network destination across a gateway device.
- ✓
New-NetRoute
Why this is correct
New-NetRoute is the correct cmdlet for creating new entries in the routing table. It allows administrators to define the destination subnet and the gateway (next hop) for the traffic. Using the appropriate flags, it ensures the route remains active even after the server is restarted or the network stack resets.
- ✗
Set-NetIPInterface
Why it's wrong here
Set-NetIPInterface is used to configure properties of an IP interface, such as enabling DHCP or setting the interface metric. It does not provide the functionality to define static routes to external networks. Modifying interface settings will not solve a routing problem where the destination network is unknown.
- ✗
New-NetIPAddress
Why it's wrong here
New-NetIPAddress is used to assign an IP address to a network interface. It creates the local interface configuration, but it does not define the path to remote networks. Adding an IP address is a prerequisite, but it does not replace the requirement for a specific route to the destination.
Visual reference
About these practice questions
Courseiva writes every AZ-802 question from scratch — 116 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.