Google Cloud Professional Cloud Network Engineer · Difficulty

Hard PCNE practice questions

Challenge — multi-step scenarios, trade-offs, and subtle distinctions. 24 hard questions available — no sign-up, always free.

Question 1 of 24

A retail company runs a public web application behind a global external Application Load Balancer, protected by a Cloud Armor security policy. The security team enables the preconfigured SQL injection (sqli-v33-stable) WAF rule at its default sensitivity. Immediately, legitimate users report that they can no longer submit product reviews containing text like "O'Brien's shop is great", and logs show these requests are being blocked by the sqli rule. The team must keep strong SQLi protection but stop blocking valid review submissions. What is the most appropriate action?

Reviewed for accuracy · Report an issue
Question 2 of 24

A fleet of 200 instances in a private subnet uses a single Cloud NAT gateway to reach an external payment API. During peak traffic, application logs show many outbound connections to the same API endpoint failing intermittently. Cloud Monitoring shows the 'dropped_sent_packets' metric for the NAT gateway spiking, while CPU and bandwidth on the instances remain low. What is the most likely cause and the correct remediation?

Reviewed for accuracy · Report an issue
Question 3 of 24

A financial services company runs Compute Engine VMs with no external IP addresses in a private subnet. The security team requires two things for internet egress: (1) all outbound HTTP/HTTPS traffic must be restricted to an approved list of FQDNs (e.g., only *.partnerbank.com and api.provider.net), and (2) any non-HTTP(S) egress that is still permitted must be source-NATed through a predictable set of static IP addresses so partners can allowlist them. What should you deploy to meet BOTH requirements with the least operational overhead?

Reviewed for accuracy · Report an issue
Question 4 of 24

A workload on VM-A (subnet 10.0.1.0/24) cannot reach an internal passthrough Network Load Balancer VIP in another VPC connected via VPC peering. You run a Connectivity Test from VM-A to the VIP, and the test reports 'Reachable' for the forward path. However, actual application traffic still times out. You suspect an asymmetric routing or return-path problem. Which action within Network Intelligence Center best confirms the return-path issue?

Reviewed for accuracy · Report an issue
Question 5 of 24

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 6 of 24

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 7 of 24

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 8 of 24

Your organization runs three separate VPC networks (prod-vpc, staging-vpc, and tools-vpc) that are not peered with each other. A central 'shared-services-vpc' hosts a Cloud DNS private zone (internal.example.com) plus an inbound forwarding configuration that resolves on-premises records. You need all three isolated VPCs to resolve both the internal.example.com records and the on-premises records managed in shared-services-vpc, without creating full mesh VPC peering and without duplicating zone data in each VPC. What should you implement?

Reviewed for accuracy · Report an issue
Question 9 of 24

Your team runs a UDP-based gaming service on Compute Engine instances in us-central1. You need a regional external passthrough Network Load Balancer that supports weighted distribution across backends, connection draining during instance removal, and non-legacy health checks. You are choosing the backend architecture for the load balancer. Which configuration meets these requirements?

Reviewed for accuracy · Report an issue
Question 10 of 24

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 11 of 24

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 12 of 24

Your company is deploying a new GKE cluster to host a microservices platform. Security requires that cluster nodes have no public IP addresses. The platform team expects the number of Pods to grow significantly over the next two years, and they want to avoid re-creating the cluster to accommodate more Pod IPs. The cluster will run in an existing Shared VPC subnet that already has a primary range and one secondary range reserved for Services. How should you design the cluster's IP addressing?

Reviewed for accuracy · Report an issue
Question 13 of 24

A large enterprise organizes its Google Cloud resources with an organization node, a 'security-controls' folder, and multiple team folders beneath it. The central security team defines a hierarchical firewall policy attached at the organization level that must enforce a mandatory deny on all inbound RDP (TCP 3389) from the internet, while allowing individual application teams to define their own rules for other traffic in their project-level network firewall policies. However, for a specific range of trusted corporate egress IPs, the security team wants lower-level policies and rules to be able to make the final allow/deny decision for RDP rather than having it blocked at the org level. Which configuration correctly meets these requirements?

Reviewed for accuracy · Report an issue
Question 14 of 24

A financial services company uses a Google Cloud organization with three folders: 'prod', 'dev', and 'shared-services'. The central security team must enforce a non-overridable rule that blocks all inbound RDP (TCP 3389) traffic to every VPC in the organization, while allowing individual project teams to still define their own additional allow/deny rules for other ports. The security team also wants a separate rule in the 'dev' folder that permits SSH (TCP 22) from the corporate CIDR range, but this rule should be evaluatable by lower-level project rules if they choose to override. Which design meets these requirements?

Reviewed for accuracy · Report an issue
Question 15 of 24

A company runs an application on Compute Engine VMs in a VPC configured with an MTU of 1460. The VMs communicate with an on-premises data center over an HA VPN tunnel. Users report that small requests succeed, but large file transfers and certain database queries hang or time out intermittently. Ping with default packet sizes works fine between the VMs and on-premises hosts. What is the MOST likely cause and the correct action to resolve it?

Reviewed for accuracy · Report an issue
Question 16 of 24

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 17 of 24

A retail company runs an SD-WAN overlay connecting 40 physical stores. Each store already has an SD-WAN edge appliance. The networking team wants to bring this SD-WAN fabric into Google Cloud so that store traffic can reach workloads in a central VPC, and they want to deploy virtual SD-WAN appliances inside the VPC that peer with the on-prem edges using BGP. They need a Google-managed hub that dynamically exchanges routes between these virtual appliances and the VPC without building point-to-point VPN tunnels for every store. Which design should they use?

Reviewed for accuracy · Report an issue
Question 18 of 24

A security engineer manages a global network firewall policy in a Shared VPC host project. Application VMs in multiple service projects need a rule that allows TCP 8443 traffic only between VMs that share a common workload identity, regardless of their IP addresses, which change frequently due to autoscaling. The engineer wants the rule to remain valid even if VMs are recreated with new IPs, and to work across the VPC network. Which approach should the engineer use to define the source and target in the network firewall policy rule?

Reviewed for accuracy · Report an issue
Question 19 of 24

Your company runs on-premises data-processing servers that must call Google Cloud APIs (Cloud Storage and BigQuery) without traversing the public internet. These servers connect to your VPC through an existing HA VPN tunnel and use only internal RFC 1918 addresses. You must ensure the on-premises hosts can reach the Google APIs privately through the tunnel using the default domains (e.g., storage.googleapis.com), with minimal ongoing management. What should you design?

Reviewed for accuracy · Report an issue
Question 20 of 24

Your organization uses a Shared VPC host project managed by the central networking team. Application teams operate in service projects and repeatedly file tickets asking networking to create firewall rules for their specific workloads. The networking team wants to delegate firewall rule management for one particular subnet's workloads to an application team, while retaining control over the overall VPC, subnets, and routing. What is the most appropriate way to achieve this?

Reviewed for accuracy · Report an issue
Question 21 of 24

Your company connects an on-premises data center to a Google Cloud VPC using two HA VPN tunnels terminating on a single Cloud Router in region us-central1. Both tunnels advertise the same on-premises prefix 10.50.0.0/16 via BGP. You want tunnel-1 to be the active path and tunnel-2 to serve only as a backup, becoming active automatically if tunnel-1 fails. Which configuration achieves this?

Reviewed for accuracy · Report an issue
Question 22 of 24

Your company runs two custom-mode VPCs, prod-vpc and hybrid-vpc, connected via VPC Network Peering. hybrid-vpc has a Cloud Router and HA VPN tunnels to your on-premises data center, and Cloud Router learns on-premises prefixes via BGP as dynamic routes. Instances in prod-vpc need to reach on-premises hosts, but after establishing the peering they still cannot connect, even though instances in hybrid-vpc reach on-premises successfully. What must you do so prod-vpc can use the on-premises routes?

Reviewed for accuracy · Report an issue
Question 23 of 24

Your company has two custom-mode VPCs, prod-vpc and analytics-vpc, connected via VPC Network Peering. After the peering is established and reported as ACTIVE, engineers in analytics-vpc can reach existing instances in prod-vpc. A network admin later creates a brand-new subnet (10.30.0.0/20) in prod-vpc and launches instances there, but analytics-vpc instances cannot reach the new subnet. No firewall rules are blocking the traffic, and the peering state is still ACTIVE. What is the most likely explanation?

Reviewed for accuracy · Report an issue
Question 24 of 24

A healthcare company has two separate business units, each with its own VPC Service Controls perimeter protecting Cloud Storage and BigQuery. Unit A's data-science team runs analytics jobs that must read anonymized datasets stored in a Cloud Storage bucket owned by a project inside Unit B's perimeter. Both perimeters must otherwise remain isolated from each other and from the public internet, and no data must be allowed to leave either perimeter to unauthorized projects. What is the recommended way to enable only this specific cross-perimeter access?

Reviewed for accuracy · Report an issue