AZ-802 Practice Question: Monitor and Troubleshoot Windows Server Environments
Users report that they cannot access a shared folder on a Windows Server 2022 instance located in a different subnet. You suspect a firewall or routing issue. Which PowerShell cmdlet should you use to test both ICMP connectivity and the specific TCP port 445 availability simultaneously?
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
✓
Test-NetConnection
Test-NetConnection is a versatile 'Swiss Army knife' for network troubleshooting in Windows. It replaces older tools like ping and telnet by allowing administrators to check basic connectivity and verify if specific service ports are open and responding, providing detailed information about the network path and success of the connection.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Ping -t
Why it's wrong here
The ping command only tests ICMP connectivity, which many firewalls block by default while still allowing service traffic. Ping cannot verify if a specific TCP port like 445 (SMB) is open, making it insufficient for determining if the file sharing service is actually reachable across the network.
- ✗
Resolve-DnsName
Why it's wrong here
Resolve-DnsName is used to troubleshoot DNS resolution issues by querying name servers for records. While DNS is necessary for connecting to a server by name, this cmdlet does not test network connectivity or port availability, which are the primary concerns when a server's IP is already known.
- ✗
Get-NetFirewallRule
Why it's wrong here
Get-NetFirewallRule is used to inspect the local firewall configuration on the server where the command is run. It does not test connectivity to a remote server or verify if intermediate network devices, such as hardware firewalls or routers, are blocking traffic between the client and the destination.
- ✓
Test-NetConnection
Why this is correct
Test-NetConnection allows you to specify a destination and a port (e.g., -Port 445). It performs a TCP handshake to verify the service is listening and also provides ICMP statistics and route tracing, making it the most effective tool for diagnosing cross-subnet connectivity issues for specific services.
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.