Google Cloud - Deploying VPN for Compute Engine Applications in a Single VPC across Two Regions

Deploying VPN for Compute Engine Applications in a Single VPC across Two Regions

Question

You want to establish a Compute Engine application in a single VPC across two regions.

The application must communicate over VPN to an on-premises network.

How should you deploy the VPN?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

To establish a Compute Engine application in a single VPC across two regions and communicate over VPN to an on-premises network, there are different deployment options available. The best approach depends on your specific requirements and constraints.

Option A: Use VPC Network Peering between the VPC and the on-premises network. VPC Network Peering is a way to connect two VPC networks from the same or different projects in the same region. It is not designed to connect a VPC network to an on-premises network. Therefore, this option is not applicable.

Option B: Expose the VPC to the on-premises network using IAM and VPC Sharing. VPC Sharing allows you to share one or more subnets of a VPC network with other projects or organizations. IAM policies control access to the shared VPC resources. This option does not provide VPN connectivity to an on-premises network. It could be an alternative if you need to share a VPC network with another project or organization.

Option C: Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway. Cloud VPN is a fully-managed service that allows you to securely connect your on-premises network to your VPC network using IPsec VPN tunnels. With this option, you would deploy a Cloud VPN Gateway in each region where your Compute Engine instances are running. The VPN tunnels would be configured to connect to the same on-premises peer gateway. The Cloud VPN Gateway would be a global resource, meaning it would not be tied to a specific region. This option provides high availability and load balancing across regions.

Option D: Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the on-premises peer gateway. This option is similar to Option C, except that you would deploy a separate Cloud VPN Gateway in each region where your Compute Engine instances are running. Each VPN Gateway would have at least one VPN tunnel to the same on-premises peer gateway. This option provides redundancy and isolation across regions, but it requires more configuration and management overhead than Option C.

In summary, the best deployment option for establishing a Compute Engine application in a single VPC across two regions and communicating over VPN to an on-premises network is Option C: Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway. This option provides high availability and load balancing across regions while minimizing configuration and management overhead.