Two virtual networks in East US are peered. Each virtual network contains four subnets. You will deploy a single virtual machine VM1 that must inspect and route traffic between every subnet across both virtual networks. What is the minimum number of IP addresses you must assign to VM1?
Choose an answer
Tap an option to check your answer.
Correct answer: 1.
Why this is the answer
A single virtual machine (VM) can have multiple network interfaces (NICs), and each NIC can have multiple IP configurations (private and public IP addresses). For VM1 to inspect and route traffic between all subnets across two peered virtual networks, it only requires one network interface with a single IP address. Azure networking allows a VM with a single NIC and IP to route traffic between peered virtual networks and their subnets, provided appropriate routing (e.g., UDRs) is configured. Additional IP addresses or NICs are not inherently required for the VM itself to perform this routing function; the routing logic is handled by the network configuration. Two IP addresses might be considered if the VM acted as a traditional router with separate interfaces for each network, but in Azure, a single NIC can be sufficient with proper routing. Four or eight IP addresses are excessive and unnecessary for this scenario.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed