Google Cloud Associate Cloud Engineer — Question 249

You have two Google Cloud projects: project-a with VPC vpc-a (10.0.0.0/16) and project-b with VPC vpc-b (10.8.0.0/16). Your frontend application resides in vpc-a and the backend API services are deployed in vpc-b. You need to efficiently and cost-effectively enable communication between these Google Cloud projects. You also want to follow Google-recommended practices. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B, as VPC Network Peering allows for direct communication between the two VPCs without needing to traverse the public internet, which aligns with Google-recommended practices. Option A is incorrect because OpenVPN introduces unnecessary complexity and potential latency. Option C is not applicable as Cloud Routers are not necessary for simple VPC peering. Option D is also incorrect because Cloud Interconnect is used for connecting on-premises networks to Google Cloud and is not needed for VPC-to-VPC communication.