2000 VMs in a private subnet need a minimum of 128 concurrent TCP connections each to a public repository. Implement Cloud NAT so all VMs can simultaneously connect. Which two methods achieve this? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Use the default Cloud NAT gateway to automatically scale the required number of NAT IP addresses, and set minimum ports per VM to 128., Configure the NAT gateway in manual allocation mode, allocate 4 NAT IP addresses, and set minimum ports per VM to 128..
Why this is the answer
The problem requires 2000 VMs, each needing 128 concurrent TCP connections. Each connection uses one port. Therefore, each VM needs 128 ports. Option 1 (Correct): Cloud NAT automatically scales IP addresses by default. Setting minimum ports per VM to 128 ensures each VM has enough ports. With 2000 VMs 128 ports/VM = 256,000 ports needed. A single NAT IP address can provide up to 64,512 ports (65536 total ports - reserved ports). Thus, 256,000 / 64,512 ≈ 4 IP addresses are needed. Automatic scaling handles this. Option 2 (Correct): In manual allocation mode, you specify the NAT IP addresses. 4 NAT IP addresses provide 4 64,512 = 258,048 available ports, which is sufficient for 256,000 required ports. Setting minimum ports per VM to 128 ensures each VM gets its required share. Incorrect options: Allocating 2 NAT IP addresses (2 64,512 = 129,024 ports) is insufficient for 256,000 required ports. A second Cloud NAT gateway isn't necessary and doesn't solve the port shortage if the first one is undersized. A single NAT IP address cannot provide enough ports for all VMs.
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