An organization is deploying an internal analytics service in a Producer VPC behind an Internal HTTP(S) Load Balancer. Multiple independent consumer projects with overlapping IP address spaces require secure, private access to this analytics API without enabling full IP routing or VPC Network Peering between the consumer VPCs. Which TWO network topology configurations must you implement to establish this connectivity?
- Create a Service Attachment in the Producer VPC that references the Internal HTTP(S) Load Balancer's forwarding rule.Cevap
- BConfigure VPC Network Peering between each consumer VPC and the Producer VPC, enabling custom route exports to allow transitive communication across all consumer networks.
- Provision a Private Service Connect (PSC) endpoint in each Consumer VPC that targets the published Service Attachment URI.Cevap
- DEstablish Cloud HA VPN tunnels between each Consumer VPC and the Producer VPC to translate overlapping IP subnets using NAT gateways.
- EGrant the primitive IAM Owner role to consumer service accounts on the Producer project to automatically expose load balancer endpoints across project perimeters.
Cevap
To allow consumer VPCs with overlapping IP address ranges to securely access an internal service in a producer VPC without establishing VPC Network Peering or IP routing, you must create a Service Attachment pointing to the Producer VPC's Internal HTTP(S) Load Balancer forwarding rule, and deploy a Private Service Connect (PSC) endpoint in each Consumer VPC targeting the URI of that Service Attachment.
Private Service Connect allows private consumption of services across GCP projects even when VPCs have overlapping IP address spaces. Creating a Service Attachment in the producer VPC exposes the internal load balancer's forwarding rule via a NAT subnet. Provisioning a Private Service Connect endpoint in the consumer VPC allocates an internal IP address within the consumer's local subnet, establishing one-way private connectivity to the producer service.
Adım Adım Çözüm
Anahtar Kavram
Private Service Connect (PSC) for Published Services