QuestionQ36

VerifiedPlanning and implementing a cloud solution

You have a project that contains a single Virtual Private Cloud (VPC) with a single subnetwork located in the us-central1 region. A Compute Engine instance running an application resides in this subnetwork. You need to deploy a new instance within the same project, but in the europe-west1 region, and this new instance must be able to access the application. Following Google-recommended practices, what should you do?

Explanation

A VPC network spans all Google Cloud regions and can contain multiple regional subnetworks; instances in different subnetworks of the same VPC can communicate over their internal (private) IP addresses by default, provided firewall rules allow it. This makes creating a new subnetwork in europe-west1 within the existing VPC—and having the new instance reference the application instance's private IP—the simplest, most efficient, and Google-recommended solution, avoiding the added complexity of VPC Peering, Cloud VPN, or a load balancer, none of which are required for two subnets already in the same VPC.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!