Google Cloud Professional Cloud Network Engineer — Question 100

Your company has provisioned 2000 virtual machines (VMs) in the private subnet of your Virtual Private Cloud (VPC) in the us-east1 region. You need to configure each VM to have a minimum of 128 TCP connections to a public repository so that users can download software updates and packages over the internet. You need to implement a Cloud NAT gateway so that the VMs are able to perform outbound NAT to the internet. You must ensure that all VMs can simultaneously connect to the public repository and download software updates and packages. Which two methods can you use to accomplish this? (Choose two.)

Answer options

Correct answer: D, E

Explanation

Option D is correct because it allows the default Cloud NAT gateway to scale automatically to meet the demand for NAT IP addresses while ensuring each VM has the required minimum of 128 ports. Option E is also valid as it provides sufficient NAT IP addresses and meets the port requirement, but it uses manual allocation which is less flexible than the automatic scaling in option D. The other options either under-provision the required ports or do not effectively utilize the NAT gateway's capabilities.