Exam Associate Cloud Engineer All QuestionsBrowse all questions from this exam
Question 270

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?

    Correct Answer: B

    To enable communication between two VPCs within different Google Cloud projects cost-effectively, VPC Network Peering is the best option. It allows for private and secure communication between VPCs without the need for external IPs or additional setup like a VPN. Cloud Interconnect is designed for hybrid cloud setups, which is unnecessary here, and Cloud Routers are not needed for simple VPC communication. Therefore, VPC Network Peering is the most efficient and Google-recommended approach.

Discussion
BuenaCloudDEOption: B

VPC Network Peering: This allows private and secure communication between VPCs in different Google Cloud projects without using public IP addresses or VPN connections. It is cost-effective because it only incurs network egress charges within the same region and provides high-bandwidth, low-latency connectivity.

RuchiMishraOption: B

Why other options are not as suitable: A. OpenVPN connection: OpenVPN requires setting up and managing a VPN gateway, adding complexity and potential overhead. C. Cloud Routers: While Cloud Routers are powerful tools for managing dynamic routing, they are unnecessary for simple communication between two VPCs. D. Cloud Interconnect: Cloud Interconnect is a high-speed, dedicated connection for hybrid cloud environments. It's overkill for connecting two VPCs within GCP and would be much more expensive than VPC Network Peering.