Google Cloud Associate Cloud Engineer — Question 23

You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the
VMs must be able to reach each other over Internal IP without creating additional routes. You need to set up VPC and the 2 subnets. Which configuration meets these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A, as it allows you to create a single custom VPC with two subnets in different regions, ensuring they can communicate over Internal IP while being separated for production and test workloads. Options B and D fail because they either place the subnets in the same region or use the same CIDR range, which would prevent the desired separation. Option C does not meet the requirement of using a single VPC, which is necessary for internal communication without extra routes.