nerdexam
Microsoft

AZ-104 · Question #377

Hotspot Question You have an Azure virtual network named VNet1 that connects to your on-premises network by using a site-to-site VPN. VMet1 contains one subnet named Subnet1. Subnet1 is associated to

This question tests knowledge of Azure network monitoring tools, specifically how to collect network flow data from NSGs and query that data interactively from the Azure portal.

Submitted by yuriko_h· Mar 4, 2026Monitor and back up Azure resources

Question

Hotspot Question You have an Azure virtual network named VNet1 that connects to your on-premises network by using a site-to-site VPN. VMet1 contains one subnet named Subnet1. Subnet1 is associated to a network security group (NSG) named NSG1. Subnet1 contains a basic internal load balancer named ILB1. ILB1 has three Azure virtual machines in the backend pool. You need to collect data about the IP addresses that connects to ILB1. You must be able to run interactive queries from the Azure portal against the collected data. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-104 question #377 exhibit 1
AZ-104 question #377 exhibit 2

Answer Area

  • Resource to create:
    An Azure Event GridAn Azure Log Analytics workspaceAn Azure Storage account
  • Resource on which to enable diagnostics:
    ILB1NSG1The Azure virtual machines

Explanation

This question tests knowledge of Azure network monitoring tools, specifically how to collect network flow data from NSGs and query that data interactively from the Azure portal.

Approach. To collect data about IP addresses connecting to ILB1, you should enable NSG Flow Logs on NSG1, which captures information about IP traffic flowing through the NSG including source/destination IP addresses, ports, and protocols. The flow log data should be sent to a Log Analytics Workspace, which allows you to run interactive Kusto Query Language (KQL) queries directly from the Azure portal using Log Analytics. Specifically, you would enable NSG Flow Logs (version 2 for richer data) on NSG1 and configure traffic analytics or direct Log Analytics integration to store the data, then use the Log Analytics workspace in the Azure portal to run interactive queries against the collected IP connection data.

Concept tested. The concept tested is Azure Network Watcher NSG Flow Logs combined with Log Analytics (Azure Monitor Logs). NSG Flow Logs record network traffic information at the NSG level, capturing source and destination IPs, ports, protocol, and whether traffic was allowed or denied. Log Analytics provides the interactive query capability via the Azure portal using KQL. Alternative tools like Azure Storage Account alone would store the raw JSON logs but would not support interactive queries from the portal. Network Performance Monitor or Connection Monitor would not capture the same IP-level flow data. Traffic Analytics built on top of NSG Flow Logs and Log Analytics provides visual dashboards and interactive queries, making it the complete solution for this scenario.

Reference. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-overview

Topics

#Azure Load Balancer#Diagnostic Settings#Log Analytics#Network monitoring

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice