
Answer-first summary for fast verification
Answer: Set up a network peering between vpc-a and vpc-b.
The correct answer is A. Setting up a network peering between vpc-a and vpc-b allows internal IP address connectivity across the two VPC networks, regardless of whether they belong to the same project or the same organization. This solution is optimal because the subnets do not overlap, and VPC Network Peering ensures low latency and high throughput for internal communication. Other options involve unnecessary complexity or do not offer the same performance benefits as VPC peering.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company and one of its partners each have a Google Cloud project in separate organizations, and you need to establish internal IP communication between these projects. Your company's project (prj-a) runs in Virtual Private Cloud (VPC) vpc-a, while the partner's project (prj-b) runs in VPC vpc-b. There are two instances running in vpc-a and one instance running in vpc-b. The subnets defined in both VPCs do not overlap. Considering the requirements of minimizing latency and maximizing throughput for internal communication between instances, what should you do?
A
Set up a network peering between vpc-a and vpc-b.
B
Set up a VPN between vpc-a and vpc-b using Cloud VPN.
C
Configure IAP TCP forwarding on the instance in vpc-b, and then launch the following gcloud command from one of the instances in vpc-a: gcloud compute start-iap-tunnel INSTANCE_NAME_IN_VPC_B 22 --local-host-port=localhost:22
D
No comments yet.