Skip to main content

AZ-104 practice question · Monitor and maintain Azure resources

An application on an Azure VM has intermittent connection failures. To diagnose them, an engineer needs to record the…

An application on an Azure VM has intermittent connection failures. To diagnose them, an engineer needs to record the full contents of the VM's network traffic, including protocol headers and payloads, for about 10 minutes. The recording must be saved to a storage account for offline analysis in a tool such as Wireshark. Which Azure Network Watcher tool should the engineer use?

  • APacket capture
  • BVirtual network flow logs
  • CConnection troubleshoot
  • DIP flow verify
Show the answer and explanation

Correct answer: A) Packet capture

Network Watcher packet capture records full traffic to and from a VM for a set duration and saves it locally or to Blob storage. It needs the Network Watcher agent VM extension. Flow logs, Connection troubleshoot, and IP flow verify diagnose network problems, but none of them record packet contents.

Why each option is right or wrong

  • A) Correct. Network Watcher packet capture starts a remote capture session on a VM or scale set and records traffic to and from it. You can set filters and a session time limit, and save the capture file to the VM's local disk or to a storage blob. It requires the Network Watcher agent VM extension (AzureNetworkWatcherExtension).
  • B) Incorrect. Flow logs record information about IP traffic flows, such as addresses, ports, and allow/deny decisions, and store it in Azure Storage. They don't record full packet headers and payloads.
  • C) Incorrect. Connection troubleshoot runs a one-time test of a connection from a VM to a destination and reports reachability details. It doesn't record the VM's actual traffic over a period of time.
  • D) Incorrect. IP flow verify checks whether a specific packet would be allowed or denied to or from a VM and names the security rule responsible. It finds filtering problems but doesn't record traffic.
Exam domain
Monitor and maintain Azure resources · 15% of AZ-104
Question type
Multiple choice (one answer)

Practise the full AZ-104 exam

This question is one of a small free sample from the CertRidge AZ-104 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.

Worth reading: AZ-104 passing score (700/1000), what 700 means on Microsoft's scaled score, and why it isn't 70%.