Minimum Number of Network Interfaces and Network Security Groups for Azure Virtual Machines - Exam AZ-300 | Microsoft

Minimum Number of Network Interfaces and Network Security Groups

Question

HOTSPOT -

You plan to deploy five virtual machines to a virtual network subnet.

Each virtual machine will have a public IP address and a private IP address.

Each virtual machine requires the same inbound and outbound security rules.

What is the minimum number of network interfaces and network security groups that you require? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Explanations

Explanation

To deploy five virtual machines with both public and private IP addresses, and the same inbound and outbound security rules, we can use the Azure Network Interface (NIC) and Network Security Group (NSG) resources.

A NIC is a virtual network interface card that provides connectivity to a virtual machine in an Azure Virtual Network. It can have one or more IP configurations, each with a private IP address from the subnet, and a public IP address if required.

An NSG is a security group that filters network traffic to and from Azure resources in a virtual network. It contains inbound and outbound security rules that allow or deny traffic based on protocol, source, destination, and port.

To determine the minimum number of NICs and NSGs required for this scenario, we need to consider the following:

  • Each virtual machine requires a public IP address and a private IP address, which means we need at least one NIC per VM with two IP configurations.
  • All virtual machines require the same inbound and outbound security rules, which means we can use a single NSG to apply those rules to all VMs in the subnet.

Therefore, the minimum number of network interfaces and network security groups required are:

  • Network Interfaces: 5 VMs x 1 NIC with 2 IP configurations = 10 NICs
  • Network Security Groups: 1 NSG for all VMs in the subnet

So the correct selections in the answer area would be:

  • Network Interfaces: 10
  • Network Security Groups: 1