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
- A. Create an OpenVPN connection between vpc-a and vpc-b.
- B. Create VPC Network Peering between vpc-a and vpc-b.
- C. Configure a Cloud Router in vpc-a and another Cloud Router in vpc-b.
- D. Configure a Cloud Interconnect connection between vpc-a and vpc-b.
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.