Google Cloud Professional Cloud Architect — Question 247

Your company and one of its partners each have a Google Cloud project in separate organizations. Your company's project (prj-a) runs in Virtual Private Cloud
(vpc-a). The partner's project (prj-b) runs in vpc-b. There are two instances running on vpc-a and one instance running on vpc-b. Subnets defined in both VPCs are not overlapping. You need to ensure that all instances communicate with each other via internal IPs, minimizing latency and maximizing throughput. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because setting up network peering allows instances in different VPCs to communicate directly over internal IPs, which optimizes latency and throughput. Option B introduces a VPN, which may add unnecessary overhead compared to peering. Option C uses IAP TCP forwarding, which is not as efficient for direct communication. Option D involves creating additional instances and configuring OpenVPN, which is more complex and not needed when simpler solutions like peering exist.