Google Cloud Professional Cloud Network Engineer · Domain 2 · 20% of exam

Implementing a VPC network

Drill 20 practice questions focused entirely on Implementing a VPC network for the Google Cloud PCNE exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.

Verified answer20 questions
Question 1 of 20

A development team deploys a Cloud Run service that must call a backend running on a Compute Engine VM addressed only by its internal RFC 1918 IP inside a custom-mode VPC. The team wants the lowest-latency egress path with the least infrastructure to manage and the ability to scale out without provisioning a fixed pool of connector instances. Which configuration should they choose?

Reviewed for accuracy · Report an issue
Question 2 of 20

A data engineering team runs a Cloud Run service that must reach a Cloud SQL instance and several Compute Engine VMs over private IPs in a custom-mode VPC. The service experiences bursty traffic that occasionally spikes to very high sustained egress throughput, and the team wants to minimize the operational overhead of managing throughput-limited infrastructure while keeping traffic on internal IP addresses. Which egress configuration should they choose?

Reviewed for accuracy · Report an issue
Question 3 of 20

Your company uses Network Connectivity Center with a single hub to interconnect four VPCs as VPC spokes for full-mesh transitive connectivity. You attempt to attach a fifth VPC as a spoke, but the operation fails. Investigation shows this new VPC contains a subnet with the CIDR range 10.20.0.0/24, which is identical to a subnet already present in one of the existing spoke VPCs. What is the most appropriate action to successfully attach the fifth VPC as a spoke?

Reviewed for accuracy · Report an issue
Question 4 of 20

Your security team requires that a set of Compute Engine instances in the 'restricted-vpc' custom-mode VPC have absolutely no direct path to the public internet, while still allowing them to reach Google APIs privately. Currently the VPC has the default 0.0.0.0/0 route pointing to the default internet gateway. The instances have no external IP addresses. What is the most effective way to guarantee these instances cannot egress to the internet through the default gateway while preserving private access to Google APIs?

Reviewed for accuracy · Report an issue
Question 5 of 20

Your company runs a custom-mode VPC with many Compute Engine instances in the subnet 10.20.0.0/16. Most instances must send all internet-bound traffic through a self-managed NAT/firewall appliance (a VM with IP 10.20.1.10) for inspection. However, a small group of instances tagged 'direct-egress' must instead use the default internet gateway route for maximum throughput and bypass inspection. Both route types point to 0.0.0.0/0. How should you configure routing so that only the tagged instances bypass the appliance?

Reviewed for accuracy · Report an issue
Question 6 of 20

Your company deployed a firewall virtual appliance in a VPC to inspect all egress traffic to the internet. You created a custom static route with destination 0.0.0.0/0 and next hop set to the appliance instance, with priority 1000. However, traffic from workload VMs is still bypassing the appliance and going directly to the internet via the default route. You need all workload VM egress to flow through the appliance while leaving other VMs unaffected. What should you do?

Reviewed for accuracy · Report an issue
Question 7 of 20

A network engineer manages a custom-mode VPC with a subnet named 'app-subnet' in us-central1 using primary range 10.20.0.0/24. The application team is deploying additional Compute Engine instances and has exhausted the available IP addresses. Existing VMs must keep their current IP addresses and stay online during the change. What should the engineer do to provide more usable IP addresses in this subnet?

Reviewed for accuracy · Report an issue
Question 8 of 20

Your team runs a private GKE cluster where nodes have only internal IP addresses. Developers connect from the corporate office (public egress IP 203.0.113.10/32) using kubectl, and a CI/CD pipeline runs on a Compute Engine VM in the same VPC (internal IP 10.20.0.5). Security requires that the Kubernetes API server (control plane) reject connections from any source except these two. Which configuration meets the requirement with the least operational overhead?

Reviewed for accuracy · Report an issue
Question 9 of 20

A development team runs a Cloud Run service that must call a REST API hosted on a Compute Engine VM using the VM's internal IP address (10.20.0.15). The Cloud Run service currently cannot reach the VM. The team wants the simplest supported configuration that routes only the RFC 1918 internal traffic through the VPC while keeping public internet egress unchanged. What should you configure?

Reviewed for accuracy · Report an issue
Question 10 of 20

Your team is deploying an internal HTTP(S) load balancer to expose services running in a VPC-native GKE cluster within a custom-mode VPC in region us-central1. When you attempt to create the internal Application Load Balancer's forwarding rule, the operation fails with an error indicating that no proxy-only subnet exists. The cluster subnet has a primary range and two secondary ranges already configured for Pods and Services. What must you do to allow the internal Application Load Balancer to be provisioned?

Reviewed for accuracy · Report an issue
Question 11 of 20

Your team runs a VPC-native GKE cluster with a Pod secondary range of 10.60.0.0/14. Pods must communicate with an on-premises database at 172.16.5.10 reachable over Cloud Interconnect. The on-premises firewall only permits traffic sourced from the cluster's node subnet (10.10.0.0/24). Currently, connections from Pods to the on-premises database are being dropped because the on-premises firewall sees the Pod IP addresses as the source. What is the correct way to resolve this while keeping intra-cluster and Google API traffic unmasqueraded?

Reviewed for accuracy · Report an issue
Question 12 of 20

Your company runs a multi-tenant GKE Standard cluster where several teams deploy workloads into the same cluster but in separate namespaces. Security has mandated that pods in the 'payments' namespace must only accept ingress traffic from pods in the 'frontend' namespace, and all other pod-to-pod traffic to 'payments' must be denied by default. The cluster currently has no traffic restrictions between pods. What should you do to enforce this requirement?

Reviewed for accuracy · Report an issue
Question 13 of 20

Your team deploys a private GKE cluster where nodes have only internal IP addresses. The application pods must pull container images from an external public registry (not Artifact Registry) and call a third-party payment API over the public internet. Cluster creation succeeds, but pods fail to pull the external images and cannot reach the payment API. What is the correct way to enable this outbound internet connectivity?

Reviewed for accuracy · Report an issue
Question 14 of 20

Your team deployed a private GKE cluster with a private control plane endpoint. The control plane runs in a Google-managed VPC that is connected to your cluster's VPC using VPC Network Peering. Developers connecting from an on-premises data center over an HA VPN tunnel to your VPC report they cannot reach the private control plane endpoint, even though nodes in the cluster communicate with it successfully. What is the most likely cause and how should you resolve it?

Reviewed for accuracy · Report an issue
Question 15 of 20

You are provisioning a new VPC-native GKE cluster in a subnet named 'prod-subnet' that currently has only a primary IP range of 10.0.0.0/24. The platform team requires that Pods and Services each use dedicated, non-overlapping alias IP ranges so that Pod IPs are individually routable within the VPC. What must you configure on the subnet before or during cluster creation to satisfy this requirement?

Reviewed for accuracy · Report an issue
Question 16 of 20

Your team is deploying a new GKE cluster in a custom-mode VPC. Networking requirements state that Pod IPs must be natively routable within the VPC, that Pods must integrate with container-native load balancing using Network Endpoint Groups, and that the cluster should not consume the VPC's route table quota as it scales to thousands of nodes. Which cluster networking configuration meets all of these requirements?

Reviewed for accuracy · Report an issue
Question 17 of 20

Your company operates four production VPCs (vpc-app, vpc-data, vpc-web, vpc-shared) in different projects that must all communicate with each other with full mesh connectivity. Currently they are connected using VPC Network Peering, but the team is frustrated because peering is non-transitive, requiring many individual peering connections that are hard to manage as VPCs are added. You need a managed solution that provides transitive full-mesh connectivity between all VPCs while minimizing operational overhead. What should you do?

Reviewed for accuracy · Report an issue
Question 18 of 20

Your company uses Network Connectivity Center with a single hub to connect four regional VPC spokes. Currently all spokes can communicate with each other in a full mesh. A new security requirement mandates that two of the spokes (spoke-C and spoke-D) must only be able to reach spoke-A (a shared services VPC) and must NOT be able to reach each other or spoke-B. You want to enforce this at the connectivity layer without deploying firewall appliances. What should you do?

Reviewed for accuracy · Report an issue
Question 19 of 20

Your security team manages VPC firewall rules for a large production environment. Currently, ingress rules use network tags to identify which VMs may receive traffic on port 8080. Developers with the Compute Instance Admin role can freely add and remove network tags on their own VMs, which the security team considers a compliance risk because it lets developers grant themselves access covered by firewall rules. The security team wants firewall targeting that developers cannot self-assign without a privileged IAM permission. What should you do?

Reviewed for accuracy · Report an issue
Question 20 of 20

A team runs a fleet of Compute Engine VMs in a subnet named 'batch-workers' with no external IP addresses. The VMs must upload processed files to Cloud Storage and read from BigQuery using the standard public API endpoints (storage.googleapis.com and bigquery.googleapis.com). Currently the uploads fail with connection timeouts. There is no Cloud NAT gateway, and the organization forbids assigning external IPs to these VMs. What is the minimal configuration change to allow the API calls to succeed?

Reviewed for accuracy · Report an issue

More PCNE practice

Keep going with the other Google Cloud Professional Cloud Network Engineer domains, or take a full timed mock exam.

← Back to PCNE overview