professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise data engineering team is establishing a private, cross-VPC data ingestion pipeline to transfer sensitive analytical workloads into a managed database. To prevent overlapping IP space issues and strictly isolate tenant networks, the architecture requires exposing the database backend to consumer VPCs using a Private Service Connect (PSC) service attachment behind an internal forwarding rule.
Which configuration must you implement in the producer VPC network to enable secure connectivity and permit traffic from the PSC service attachment to the target backend instance?
Establish VPC Network Peering between the producer and consumer VPCs, configure custom route export, and create an ingress firewall rule with target tag 0.0.0.0/0.
Configure the service attachment to use the primary default compute subnetwork, and create an ingress firewall rule allowing traffic originating directly from the consumer VPC's source subnet CIDR block.
Provision a dedicated subnetwork with the purpose set to PRIVATE_SERVICE_CONNECT, assign it to the service attachment's NAT subnets, and configure an ingress firewall rule allowing traffic from this NAT subnetwork's CIDR range to the target backend instance.
Enable Cloud NAT on the producer VPC router, attach an external forwarding rule to the database proxy, and deploy an egress firewall rule on the database subnet.
Establish VPC Network Peering between the producer and consumer VPCs, configure custom route export, and create an ingress firewall rule with target tag 0.0.0.0/0.
Configure the service attachment to use the primary default compute subnetwork, and create an ingress firewall rule allowing traffic originating directly from the consumer VPC's source subnet CIDR block.
Provision a dedicated subnetwork with the purpose set to PRIVATE_SERVICE_CONNECT, assign it to the service attachment's NAT subnets, and configure an ingress firewall rule allowing traffic from this NAT subnetwork's CIDR range to the target backend instance.
Private Service Connect (PSC) allows service producers to expose services privately to consumers across VPC boundaries. When exposing a service via a Service Attachment, the producer VPC requires a dedicated subnetwork specifically allocated with the purpose PRIVATE_SERVICE_CONNECT. This subnetwork acts as a Source Network Address Translation (SNAT) IP pool, translating incoming consumer IP addresses into IP addresses from this designated subnet before packets reach the target instance or internal load balancer.
purpose = "PRIVATE_SERVICE_CONNECT" reserves a pool of internal IP addresses that Google Cloud uses strictly to perform source address translation on incoming consumer requests.This is the standard, architecturally required mechanism in Google Cloud networking for configuring published Private Service Connect services. It eliminates IP routing entanglements while enforcing least-privilege ingress filtering via native VPC firewall rules.
Enable Cloud NAT on the producer VPC router, attach an external forwarding rule to the database proxy, and deploy an egress firewall rule on the database subnet.