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?
A.
Use VPC Network Peering between the VPC and the on-premises network.
B.
Expose the VPC to the on-premises network using IAM and VPC Sharing.
C.
Create a global Cloud VPN Gateway with VPN tunnels from each region to the on-premises peer gateway.
D.
Deploy Cloud VPN Gateway in each region. Ensure that each region has at least one VPN tunnel to the on-premises peer gateway.
It can't be -A - VPC Network Peering only allows private RFC 1918 connectivity across two Virtual Private Cloud (VPC) networks. In this example is one VPC with on-premise network
https://cloud.google.com/vpc/docs/vpc-peering
It is not definitely - B - Can't be
It is not C - Because Cloud VPN gateways and tunnels are regional objects, not global
So, it the answer is D -
https://cloud.google.com/vpn/docs/how-to/creating-static-vpns
Why not A?
https://cloud.google.com/vpc/docs/vpc-peering#benefits_of_exchanging_custom_routes
The second use case is exactly what is in the question.
Don't get the argument about RFC 1918.
Will go with A
https://cloud.google.com/vpc/docs/vpc-peering allows internal IP address connectivity across two VPC so A is not the answer as the on premise network need to use public IP. cmiiw
Option C: Create a global VPN gateway and establish VPN tunnels from each region to the on-premises peer gateway. This suggests that a single global VPN gateway manages the tunnels from both regions.
Option D: Deploy a VPN gateway in each region and ensure that each region has at least one VPN tunnel to the on-premises peer gateway. This indicates that each region has its own VPN gateway.
>Option D ensures that there is a VPN gateway in each region, providing greater redundancy. If a gateway in one region fails, the gateway in the other region remains operational.
Global Cloud VPN Gateway: This feature allows for the creation of a single VPN gateway that can serve multiple regions within the same VPC network. By creating a global VPN gateway, you can efficiently manage VPN connections from all regions of your VPC to your on-premises network.
Simplicity and Efficiency: Using a global gateway simplifies the configuration and management of VPN connections as opposed to maintaining separate regional VPN gateways. It centralizes the VPN endpoint on the Google Cloud side, reducing the complexity of the network setup.
Reliable and Secure Communication: The global Cloud VPN Gateway allows for secure, encrypted tunnels between Google Cloud and the on-premises network, ensuring that the application’s inter-regional and on-premises communications are secure.
C is wrong. A global vpn is a single region resource.
https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-ha-vpn?hl=it
gcloud compute vpn-gateways create GW_NAME \
--network=NETWORK \
--region=REGION \
--stack-type=IP_STACK
so D is the answer
It´s option C! So, while the VPN Gateway itself is a regional resource, its scope can be effectively global as it can serve resources across different regions within the same Virtual Private Cloud (VPC). This is why it’s sometimes referred to as a ‘global’ service in the context of its functionality, even though strictly speaking, it’s a regional resource.
Each Cloud VPN gateway is a regional resource that uses one or more regional external IP addresses. A Cloud VPN gateway can connect to a peer VPN gateway.
It can't be -A - VPC Network Peering only allows private RFC 1918 connectivity across two Virtual Private Cloud (VPC) networks. In this example is one VPC with on-premise network https://cloud.google.com/vpc/docs/vpc-peering It is not definitely - B - Can't be It is not C - Because Cloud VPN gateways and tunnels are regional objects, not global So, it the answer is D - https://cloud.google.com/vpn/docs/how-to/creating-static-vpn
Why not C? services across regions can communicate to each other, VPN only connects to the closet region, and all the VPC shall be connected if firewall's set.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Googler2
Highly Voted 4 years, 7 months agoamxexam
3 years, 2 months agoochanz
2 years, 11 months agoAdityaGupta
1 year, 1 month agoAzureDP900
2 years, 1 month agoTaherShaker
Highly Voted 4 years agoM_Asep
2 years, 11 months agoSur_Nikki
1 year, 6 months agoccpmad
Most Recent 5 months agosantoshchauhan
8 months agosalvo007
10 months, 4 weeks agogcmrjbr
11 months agoAdityaGupta
1 year, 1 month agoLaxmanTiwari
1 year, 6 months agovvkds
1 year, 10 months agooms_muc
1 year, 11 months agomegumin
2 years agoMahmoud_E
2 years, 1 month agozr79
2 years, 1 month agoDrishaS4
2 years, 3 months agoelaineshi
2 years, 6 months agoharoldbenites
2 years, 11 months agovincy2202
3 years ago