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
- A. Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.
- B. Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
- C. Create 2 custom VPCs, each with a single subnet. Create each subnet in a different region and with a different CIDR range.
- D. Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.
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.