Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Evaluate effective security rules by using Azure Network Watcher diagnostics

A worked example

Yes or no

Contoso has two running Azure virtual machines in VNet1:

  • WebVM has the private IP address 10.1.1.4 in Subnet-Web.
  • DBVM has the private IP address 10.1.2.4 in Subnet-DB and runs SQL Server on TCP port 1433.

Network Watcher is enabled in the region. The Network Watcher agent VM extension is not installed on either VM, and company policy prohibits installing VM extensions this week. A security engineer must confirm whether traffic from WebVM to SQL Server on DBVM is allowed or denied, and which rule makes the decision. The engineer plans to use IP flow verify.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
When the engineer runs IP flow verify against DBVM's network interface, the direction must be set to Outbound to test this traffic.

On the destination VM, the WebVM-to-DBVM flow arrives as inbound traffic. Testing it on DBVM's NIC uses the Inbound direction, with local port 1433 and remote IP 10.1.1.4. Outbound is the direction to use when the test is run from the source VM.

Correct
The engineer must install the Network Watcher agent VM extension on DBVM before IP flow verify can return a result.

IP flow verify evaluates the configured NSG rules and security admin configurations and does not require the agent extension. The extension is needed for features such as packet capture and Connection Monitor. The policy that blocks extensions therefore does not prevent this test.

Correct
The engineer can also check the source side of the flow by running IP flow verify against WebVM's network interface, with the direction set to Outbound and the remote IP address set to 10.1.2.4.

The guidance is to run IP flow verify from both directions: inbound to the destination and outbound from the source. An Outbound test on WebVM's NIC toward 10.1.2.4 shows whether outbound rules on the source side allow the flow, and names the rule that decides.

Correct
Why

IP flow verify checks one direction on one selected network interface and returns Allow or Deny with the name of the deciding rule. For WebVM-to-DBVM traffic, the test is Inbound on DBVM's NIC or Outbound on WebVM's NIC. Running both shows rules that block traffic in only one direction. Because the tool evaluates rule configuration, it works without the Network Watcher agent VM extension, unlike packet capture or Connection Monitor.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free