You plan to deploy an Azure Virtual Network NAT gateway named Gateway1 to Vnet1. The requirements are: VM1 must use its own public IP when accessing the internet, VM2 must also use its own public IP, and administrative effort should be minimized. What is the minimum number of subnets that Vnet1 must contain so Gateway1 can be deployed to satisfy these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: 4.
Why this is the answer
To meet the requirements, each VM needs its own public IP address for outbound internet access, and a NAT gateway can be associated with one or more subnets. Since a NAT gateway provides a single public IP address (or prefix) for all resources in its associated subnets, to ensure VM1 and VM2 each use their own public IP, they must reside in separate subnets, each associated with a different NAT gateway. This means VM1 needs its own subnet and its own NAT gateway, and VM2 needs its own subnet and its own NAT gateway. Therefore, you need two subnets for the VMs. Additionally, Azure requires a dedicated subnet for the NAT gateway resource itself, and another dedicated subnet for the NAT gateway's public IP address. This totals four subnets: one for VM1, one for VM2, one for the NAT gateway resource, and one for the public IP address.
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