An enterprise organization operates a Google Cloud Shared VPC infrastructure with a Host Project for core network management and multiple Service Projects housing distinct microservice applications. The architecture team needs to enable microservices in Service Project A to privately consume an API hosted in an external software vendor's Google Cloud VPC. The solution must strictly prevent transitive network access to other Service Projects attached to the Host VPC, eliminate any risk of IP address space overlap, and avoid routing traffic across the public internet. Which network topology configuration should you implement?
- AEstablish a VPC Network Peering connection between the Shared VPC host network and the external vendor's VPC network to enable subnet route propagation.
- Configure Private Service Connect endpoints in Service Project A targeting the external vendor's published Service Attachment.Answer
- CDeploy a Cloud NAT gateway in the Host Project VPC and route outbound traffic from Service Project A to the vendor's public service endpoint.
- DProvision a Dedicated Interconnect connection between the Shared VPC host network and the external vendor's environment.
Answer
Configuring Private Service Connect endpoints in Service Project A targeting the external vendor's published Service Attachment provides isolated, private, and non-transitive access.
Private Service Connect (PSC) enables private, unidirectional consumption of services across GCP VPCs and organizations. By creating a PSC endpoint inside Service Project A, microservices communicate with the vendor's service using an internal IP address provisioned in Service Project A's subnet. This traffic traverses Google's internal network without requiring VPC Network Peering, avoiding transitivity constraints, eliminating CIDR range overlap issues, and isolating the connection strictly to the initiating service project.
Step-by-Step Solution
Key Concept
Private Service Connect vs VPC Peering Transitivity in Shared VPC Architectures
Estimated Time:2m 0s