An organization has a VPC with custom mode subnets in us-central1 and europe-west1. They create a VM instance in us-central1 with an internal IP 10.0.1.2 and a VM in europe-west1 with internal IP 10.0.2.2. They want to enable communication between these instances using internal IPs. What must be configured?
Trap 1: Set up VPC peering between the two regions.
VPC peering is used between separate VPCs, not within the same VPC.
Trap 2: No additional configuration is needed because internal IPs are…
While internal IPs are routable, firewall rules must permit the traffic. Default rules allow it, but if custom rules are applied, they may block it.
Trap 3: Enable Cloud NAT for the VPC.
Cloud NAT is for internet access, not internal communication.
- A
Ensure the VPC firewall rules allow ingress from the source subnet or instance.
Firewall rules control traffic within a VPC; by default, all internal traffic is allowed, but custom rules could block it.
- B
Set up VPC peering between the two regions.
Why wrong: VPC peering is used between separate VPCs, not within the same VPC.
- C
No additional configuration is needed because internal IPs are routable within the VPC.
Why wrong: While internal IPs are routable, firewall rules must permit the traffic. Default rules allow it, but if custom rules are applied, they may block it.
- D
Enable Cloud NAT for the VPC.
Why wrong: Cloud NAT is for internet access, not internal communication.