
Answer-first summary for fast verification
Answer: Configure a single VPC with two subnets. Each subnet should have a different CIDR range and can be hosted in any region, as long as the ranges do not overlap.
The correct answer is **B** because the VMs need to communicate using private IPs, which requires them to be within the same VPC. Subnets can be in any region but must have non-overlapping CIDR ranges to avoid conflicts. This setup allows for internal communication without additional routes. - **Option A** is incorrect because overlapping CIDR ranges within the same VPC are not allowed. - **Options C & D** are incorrect because VMs in different VPCs cannot communicate using private IPs without additional configuration, such as VPC peering or VPN.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is planning to set up both Production and Test environments on Google Cloud. The key requirement is that the VMs in these environments must communicate with each other using internal IPs without the need for additional routes. How should you design this solution?
A
Configure two separate VPCs, each with one subnet. Both subnets should have the same CIDR range and be hosted in the same region.
B
Configure a single VPC with two subnets. Each subnet should have a different CIDR range and can be hosted in any region, as long as the ranges do not overlap.
C
Configure a single VPC with two subnets. Both subnets should have the same CIDR range and be hosted in the same region.
D
Configure two separate VPCs, each with one subnet. Both subnets should have different CIDR ranges and be hosted in different regions.
No comments yet.