QuestionQ81

VerifiedPlanning and implementing a cloud solution

You need to deploy production and test workloads on Compute Engine. The production VMs must reside in a different subnet than the test VMs. All VMs must be able to communicate with each other over internal IP without the need to create any additional routes. You need to configure a VPC with the two required subnets. Which configuration satisfies these requirements?

Explanation

A single VPC network automatically generates system routes for every subnet it contains, enabling all VMs within that VPC to communicate over internal IP across subnets and regions without any manual route creation. Subnets in the same VPC must have distinct, non-overlapping CIDR ranges, so placing the production and test subnets in different regions with different CIDR ranges within one custom VPC satisfies both the isolation requirement (separate subnets) and the internal connectivity requirement without additional routes. Using two separate VPCs would not allow internal IP communication by default, since routes between distinct VPC networks are not automatically created — this would require VPC Peering or explicit routes, violating the stated requirement.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!