
Answer-first summary for fast verification
Answer: Configure a single VPC with 2 subnets having the different CIDR range hosted in the same region
The correct answer is **C** because the VMs need to communicate using private IPs, which requires them to be hosted in the same VPC. The subnets can be in any region but must have non-overlapping CIDR ranges to avoid conflicts. - **Option A** is incorrect because overlapping CIDR ranges are not allowed within the same VPC. - **Options B & D** are incorrect because VMs in subnets across different VPCs cannot communicate with each other using private IPs without additional configuration like VPC peering or VPN. Refer to the GCP documentation on VPC requirements for more details on intra-VPC communication and firewall rules necessary for instance communication within the same network.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is planning to set up both Production and Test environments with the key requirement that the VMs must communicate with each other using internal IPs without any additional routes configured. How should this solution be designed?
A
Configure a single VPC with 2 subnets having the same CIDR range hosted in the same region
B
Configure 2 VPCs with 1 subnet each having the different CIDR range hosted in the different region
C
Configure a single VPC with 2 subnets having the different CIDR range hosted in the same region
D
Configure 2 VPCs with 1 subnet each having the same CIDR range hosted in the same region
No comments yet.