Home / Google Cloud Professional Cloud Network Engineer / Mock exam
Google Cloud Professional Cloud Network Engineer Exam-style mock test

Google Cloud Professional Cloud Network Engineer Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Designing and Planning a Network
A global retail bank is designing a single VPC that will span three regions (us-east1, europe-west1, asia-southeast1) across one GCP project. Each region needs three subnets (web, app, data) and must support non-overlapping address space that can later peer with an on-premises 10.0.0.0/8 network without conflict. Which IP addressing approach best supports this plan?
・Reuse the same 192.168.0.0/24 subnet range in every region so the configuration stays uniform and simple across all three regions
Incorrect. Reusing identical ranges in different regions creates overlapping subnets inside one VPC, which is not permitted and breaks east-west routing.
✓Carve each region a distinct /16 block from the 172.16.0.0/12 private range, then allocate /20 subnets per tier
Correct. Allocating a distinct /16 per region from 172.16.0.0/12 avoids overlap with on-premises 10.0.0.0/8 and leaves room for per-tier /20 subnets.
・Assign every subnet a public IP range so the ranges can never overlap the 10.0.0.0/8 space
Incorrect. Using public ranges inside the VPC risks conflicts with real internet routes and does not follow RFC 1918 private addressing guidance.
・Use a single /24 for the whole VPC and share it across all three regions and tiers
Incorrect. A single /24 cannot be reused across regions and provides too few addresses for three tiers in three regions.
Explanation
A single VPC requires globally unique, non-overlapping subnet ranges, and private space should avoid the on-premises 10.0.0.0/8 to keep hybrid routing conflict-free. Reserving a /16 per region from 172.16.0.0/12 cleanly supports future growth and per-tier subnetting.
Example2 · Implementing VPC Networks
A global retail bank runs a GKE cluster in a VPC subnet with primary range 10.8.0.0/22. The platform team must add Pods and Services ranges so the cluster can scale to thousands of workloads without re-creating the subnet or overlapping the node range. Which action lets them attach these additional ranges to the existing subnet?
・Create a second subnet in the same region and peer it to the first so the cluster borrows its addresses
Incorrect. Subnets in a VPC are not peered to one another, and a cluster cannot borrow addresses from a separate subnet this way.
・Expand the subnet primary range to a /20 so that Pods and Services can allocate from the larger block
Incorrect. Enlarging the primary range only grows the node address space and does not create the separate Pod and Service ranges a VPC-native cluster needs.
✓Create two secondary IP ranges on the subnet and reference them as the Pod and Service ranges
Correct. Secondary IP ranges on a subnet provide the distinct Pod and Service CIDRs that VPC-native GKE clusters require, and they can be added to an existing subnet.
・Add two static routes forwarding the Pod and Service CIDRs to the nodes
Incorrect. Static routes forward traffic but do not allocate the IP ranges that GKE draws Pod and Service addresses from.
Explanation
VPC-native GKE clusters consume one primary range for nodes and two secondary ranges for Pods and Services. Secondary ranges can be added to an existing subnet without re-creation.
Example3 · Configuring Network Services
A global retailer runs its storefront on managed instance groups in us-east1, europe-west1, and asia-southeast1. Customers must reach the nearest healthy backend over a single anycast IPv4 address, and the design must terminate TLS at Google's edge and route by URL path. Which load balancer should the network engineer configure?
・Deploy a separate regional external Application Load Balancer in each of the three regions, each behind its own independent regional frontend IP
Incorrect. Regional Application Load Balancers use separate regional IPs, so a single anycast address serving the nearest backend is not provided.
・External passthrough Network Load Balancer forwarding raw TCP 443 straight to the instances without edge TLS
Incorrect. A passthrough Network Load Balancer operates at L4 and cannot terminate TLS at the edge or route by URL path.
✓Global external Application Load Balancer with a single anycast frontend IP and a URL map for path routing
Correct. The global external Application Load Balancer offers one anycast IP, terminates TLS at the edge, and uses a URL map for path-based routing across multiregion backends.
・Internal passthrough Network Load Balancer scoped to a single VPC subnet in one region for private backends
Incorrect. An internal passthrough Network Load Balancer serves only private clients inside a VPC, not global internet customers.
Explanation
Global anycast IP, edge TLS termination, and URL path routing are all exclusive to the global external Application Load Balancer. Passthrough and regional products each fail one stated requirement.
Example4 · Implementing Hybrid Connectivity
A national hospital network connects its on-premises data center to a Google Cloud VPC using a single HA VPN gateway with one tunnel. During a planned ISP maintenance window, clinical imaging traffic drops entirely. The networking team must redesign the HA VPN deployment so Google Cloud will provide a 99.99% availability SLA. What should the team do?
・Add a second Classic VPN gateway in the region sharing one external IP so imaging traffic can fail over
Incorrect. Classic VPN only offers a 99.9% SLA and cannot share an external IP address with another gateway for the required redundancy.
✓Use both HA VPN gateway interfaces, with each tunnel reaching its own separate peer interface, and run BGP dynamically on both of the two tunnels
Correct. The 99.99% SLA requires an HA VPN gateway with both interfaces active, each tunnel reaching a distinct peer interface, with BGP providing dynamic failover.
・Increase the single tunnel's IKE rekey interval and enable dead peer detection so the tunnel reconnects faster after an outage
Incorrect. Tuning rekey and dead peer detection on one tunnel does not add a redundant path, so the single point of failure remains.
・Attach a second VPC network to the existing single-tunnel HA VPN gateway so imaging traffic can fail over to the other VPC
Incorrect. Adding a second VPC does not create a redundant tunnel path; the SLA depends on two active tunnels on the HA VPN gateway interfaces.
Explanation
The 99.99% HA VPN SLA requires using both gateway interfaces, with each tunnel terminating on a separate peer gateway interface and BGP running on every tunnel. Classic VPN and single-tunnel designs cannot meet this target.
Example5 · Managing, Monitoring and Optimizing
A hospital's PACS imaging service runs on Compute Engine VMs behind an internal passthrough load balancer. Radiologists report that image retrieval sometimes fails from a new subnet in a peered VPC, while other clients succeed. The network engineer wants to confirm, without generating real traffic, whether packets from a source VM in the peered subnet can actually reach the load balancer's forwarding rule and identify the exact hop where delivery stops. Which Network Intelligence Center capability should be used?
・Open the Performance Dashboard and inspect the packet loss and latency graphs between the two involved Google Cloud regions
Incorrect. The Performance Dashboard shows aggregate latency and packet loss, not a per-configuration reachability verdict for one specific source-to-load-balancer path.
・Enable VPC Flow Logs on the destination subnet and wait for sampled flow records so the drop can eventually be observed
Incorrect. Flow Logs only record traffic that is actually sent and sampled, so they cannot confirm reachability without generating real traffic and may miss the dropped packets.
✓Run a Connectivity Test from the source endpoint to the load balancer's internal IP, then read the hop-by-hop reachability trace to find exactly where delivery stops for this path
Correct. Connectivity Tests performs configuration-based reachability analysis between a source and destination without sending live traffic, returning a hop-by-hop trace that names the exact point (route, firewall, or peering) where delivery is dropped.
・Use the Network Topology view to visualize traffic volume lines between the client project and the imaging service project
Incorrect. Network Topology visualizes observed traffic relationships but does not evaluate whether a specific packet would be delivered or where it would be blocked.
Explanation
Connectivity Tests analyzes the live configuration (routes, firewall rules, VPC peering, and load balancer forwarding rules) to produce a deterministic reachability trace without sending packets. It is the correct tool to find the exact hop where delivery fails for a specific source and destination.
Example6 · Designing and Planning a Network
A hospital group runs a central VPC in project 'hc-core' hosting its electronic health record (EHR) database subnets. Three separate application teams in projects 'hc-radiology', 'hc-labs', and 'hc-billing' must deploy Compute Engine VMs directly onto the EHR subnets, while a dedicated networking team must retain sole control of all firewall rules, routes, and subnet CIDR ranges. Which design meets these requirements with the least administrative overhead?
✓Configure the core VPC as a Shared VPC host project and attach the three application projects as service projects with subnet-level IAM for each team.
Correct. Shared VPC lets service project VMs be provisioned directly on the host project's subnets while the networking team keeps exclusive control of firewall rules, routes, and CIDRs.
・Configure VPC Network Peering between the core VPC and a VPC in each of the three application projects so the VMs can reach the EHR subnets.
Incorrect. Peering connects VPCs but does not let VMs in the application projects be created directly on the core VPC's subnets, and firewall control stays split across each project.
・Deploy the EHR database into each application project's own VPC and synchronize firewall rules across projects using a shared configuration repository.
Incorrect. Duplicating the EHR database into every project fragments the data and still forces firewall rules to be maintained independently in each VPC.
・Grant each application team the Compute Network Admin role on the core project so they can create their VMs on the EHR subnets directly.
Incorrect. Granting Network Admin on the core project hands each team the power to alter firewall rules and routes, violating the requirement for exclusive networking-team control.
Explanation
Shared VPC is the canonical pattern for centralizing network administration while allowing multiple service projects to attach workloads to shared subnets. Service project admins can only use the subnets delegated to them, and the host project's networking team retains sole authority over firewall rules, routes, and IP ranges.
Example7 · Designing and Planning a Network
A manufacturing company runs a single VPC with the primary subnet 10.20.0.0/16 for factory-floor controllers. A new IoT ingestion fleet must be deployed in the same region and must never overlap the controller address space, yet the team needs at least 500 usable instance IP addresses in the new subnet. Which subnet CIDR should the engineer assign to the IoT fleet?
✓Assign the non-overlapping 10.21.0.0/23 block, which supplies 512 usable addresses to cover the fleet
Correct. 10.21.0.0/23 falls outside the 10.20.0.0/16 controller block and provides 512 addresses, covering the 500-instance requirement.
・Reuse 10.20.128.0/24, a subset inside the existing controller address block
Incorrect. 10.20.128.0/24 is inside the 10.20.0.0/16 controller space, so it overlaps the existing subnet and is rejected.
・Assign the much smaller 10.21.0.0/27 block to the ingestion fleet
Incorrect. 10.21.0.0/27 avoids overlap but only yields about 30 usable addresses, far below the 500 required.
・Assign a very large 10.21.0.0/16 block to the ingestion fleet
Incorrect. 10.21.0.0/16 avoids overlap and is large enough, but allocating a full /16 wastes 65,000 addresses the fleet does not need.
Explanation
Subnet CIDRs in a VPC must not overlap other subnets in the same network, and they must be sized to the workload. 10.21.0.0/23 is non-overlapping and provides 512 addresses, satisfying the 500-instance need without gross over-allocation.
Example8 · Designing and Planning a Network
A logistics enterprise has separate GCP projects for warehouse, fleet-tracking, and billing teams, all under one organization. Central network admins must own and control all subnets, routes, and firewall rules, while each team deploys its own instances into the shared network. The teams must not be able to modify network configuration. Which design meets these requirements?
・Create a VPC in each separate team project and connect all of them to one another using VPC Network Peering connections
Incorrect. VPC Peering connects independent VPCs but leaves each team owning its own network config, so central admins cannot exclusively control subnets and firewall rules.
・Deploy every team workload together in one monolithic project with a single VPC and broadly shared IAM roles for all teams
Incorrect. A single monolithic project collapses the project boundaries the teams need for billing and IAM isolation, defeating the multi-project requirement.
✓Configure a Shared VPC with the network project as host and the team projects as service projects
Correct. Shared VPC lets the host project centralize subnets, routes, and firewall rules while service projects attach and deploy instances without network-admin rights.
・Use Cloud VPN tunnels between a central network VPC and a separately managed VPC inside every single team project
Incorrect. Cloud VPN between separate VPCs keeps network configuration decentralized in each project and adds tunnel overhead that is unnecessary within one organization.
Explanation
Shared VPC centralizes network administration in a host project while allowing service projects to consume subnets, which is exactly the centralized-control-with-team-deployment model required. Peering and per-project VPNs leave control distributed across teams.
Example9 · Designing and Planning a Network
Two independent companies that recently merged each run a production VPC in different organizations. They must exchange private RFC 1918 traffic between a small set of services, but each company must retain full and independent control of its own firewall rules, routes, and IAM. Which connectivity design fits this requirement?
・Migrate both production VPCs into a single Shared VPC host project owned by one company
Incorrect. A single Shared VPC host would give one company administrative control over the other's network, violating the independent-control requirement.
・Merge both companies into one organization and consolidate every workload into one VPC
Incorrect. Consolidating into one organization and one VPC eliminates the independent ownership both merged companies must keep.
✓Establish VPC Network Peering between the two production VPCs for private RFC 1918 reachability
Correct. VPC Peering gives private RFC 1918 connectivity while each VPC keeps its own firewall rules, routes, and IAM under separate administration.
・Route all inter-company traffic over the public internet using external IP addresses
Incorrect. Sending traffic over the public internet with external IPs abandons the private-connectivity requirement and increases exposure.
Explanation
VPC Network Peering connects two separately administered VPCs with private IP reachability while preserving each side's autonomous control of firewall rules, routes, and IAM. Shared VPC and consolidation both centralize control under one party.
Example10 · Designing and Planning a Network
A B2B SaaS company runs 40 tenant projects that each need private access to a central payments service. The platform team wants to administer firewall rules, subnets, and routes centrally in one place while each tenant team keeps its own project for billing and IAM isolation. Which Google Cloud networking design meets these requirements?
・Establish VPC Network Peering from each of the 40 tenant VPC networks to the central payments VPC network.
Incorrect. Peering is non-transitive and each peered network still administers its own firewall rules and subnets, so this does not provide the central administration the platform team requires.
✓Use a Shared VPC with the platform project as host and the tenant projects as service projects.
Correct. A Shared VPC host project lets the platform team own subnets, firewall rules, and routes centrally while service projects retain separate billing and IAM for each tenant team.
・Deploy one VPC network per tenant and interconnect them through a central Cloud VPN hub with custom advertised routes.
Incorrect. A VPN hub between per-tenant VPCs adds tunnel bandwidth limits and operational overhead and still leaves firewall and subnet control decentralized in each tenant project.
・Place all tenants and the payments service in a single project and single VPC, separating teams only with network tags and labels.
Incorrect. A single project and VPC collapses the per-tenant billing and IAM isolation that the requirement explicitly demands.
Explanation
Shared VPC is the standard GCP pattern when one team must centrally control networking resources while other teams keep project-level billing and IAM boundaries. Peering and VPN leave control decentralized, and a single project loses isolation.
Example11 · Designing and Planning a Network
A gaming studio is planning CIDR allocation for a new region that will host a GKE cluster. The node subnet needs about 200 nodes, and the design must leave room to grow pods and Services without re-IP later. Which primary and secondary range plan should the network engineer choose?
・Primary 10.10.0.0/16 for nodes and reuse the same 10.10.0.0/16 for both pods and Services.
Incorrect. Reusing the identical 10.10.0.0/16 block for the primary and both secondary ranges causes overlapping ranges, which GKE alias IP addressing does not allow.
・Primary 10.10.0.0/23 for nodes, secondary 10.10.0.0/23 for pods, secondary 10.10.0.0/23 for Services.
Incorrect. Assigning the same 10.10.0.0/23 to all three ranges overlaps them and also caps nodes far below the growth headroom the design requires.
✓Primary 10.10.0.0/24 for nodes, secondary 10.11.0.0/16 for pods, and secondary 10.12.0.0/20 for Services.
Correct. A /24 node range covers ~250 nodes, and non-overlapping secondary ranges (/16 pods, /20 Services) leave ample headroom to grow without re-IP.
・Primary 10.10.0.0/30 for nodes, secondary 10.11.0.0/30 for pods, secondary 10.12.0.0/30 for Services.
Incorrect. /30 ranges yield only two usable addresses each, nowhere near the ~200 nodes and pod capacity needed.
Explanation
VPC-native GKE clusters require distinct, non-overlapping primary and secondary ranges sized for nodes, pods, and Services. Only non-overlapping ranges with adequate bits support the stated node count plus growth.
Example12 · Designing and Planning a Network
A state department of education runs a single Google Cloud organization. A central platform team owns VPC networks, firewall policies, and Cloud Interconnect, while 40 separate school-district application teams each need to deploy Compute Engine and GKE workloads into that network without being able to modify routing or firewall rules. Which network topology design best satisfies these ownership and governance requirements?
・Give each of the 40 districts its own VPC and connect all of them in a full mesh of VPC Network Peering sessions managed jointly by the teams.
Incorrect. A 40-node peering mesh gives every district control of its own VPC routing and firewalls, which violates the requirement that only the platform team manage those resources, and peering is non-transitive so it scales poorly.
・Put all workloads in one VPC and grant every district team Compute Network Admin to self-service subnets.
Incorrect. Granting Compute Network Admin to every team lets districts edit routes and firewall rules, directly contradicting the centralized governance requirement.
✓Create a Shared VPC with the platform team's host project and the 40 districts as service projects, delegating only subnet-level IAM.
Correct. Shared VPC lets the host project centralize network, firewall, and Interconnect administration while service projects consume subnets, and subnet-level IAM delegation grants districts deploy rights without network-admin privileges.
・Deploy a separate VPC per district behind a central Cloud VPN hub that terminates 40 HA VPN tunnels to interconnect them internally.
Incorrect. A VPN hub still leaves each district owning a separate VPC with its own firewall and routing, and internal traffic does not need encrypted tunnels within a single organization.
Explanation
Shared VPC is Google Cloud's recommended pattern for centralized network governance across many teams, placing network administration in the host project while service projects deploy workloads into shared subnets. Subnet-level IAM delegation grants exactly the deploy rights needed without exposing routing or firewall controls.
Example13 · Designing and Planning a Network
A public university is planning the primary IP range for a new subnet in region us-central1 that must host at most 500 virtual machines and must not waste address space beyond what is reasonably needed for future growth to roughly 700 hosts. The addressing team wants the smallest RFC 1918 CIDR block that still fits that host count after accounting for Google Cloud's reserved addresses in every subnet. Which prefix length should they assign?
・/23
Incorrect. A /23 provides 512 total addresses, about 508 usable after the four reserved per subnet, which covers today's 500 VMs but cannot reach the 700-host growth target the team is sizing to.
・/21
Incorrect. A /21 offers roughly 2042 usable addresses, enormously oversized for a 700-host requirement and wasteful of space.
・/24
Incorrect. A /24 provides only about 252 usable addresses, which cannot hold even the current 500 VMs, let alone growth.
✓/22
Correct. A /22 yields 1024 total addresses; subtracting the four addresses Google Cloud reserves in each subnet leaves about 1018 usable, which is the smallest standard block that still fits the ~700-host growth target.
Explanation
Every Google Cloud subnet reserves four addresses (network, default gateway, second-to-last, and broadcast), so usable capacity is total minus four. Sizing to the ~700-host growth target, a /23 (508 usable) is insufficient, so the smallest block that fits is a /22 with about 1018 usable, illustrating why planning to growth rather than current count drives the answer.
Example14 · Designing and Planning a Network
A multinational insurance carrier is planning a new Google Cloud landing zone. The networking team must allocate a single custom-mode VPC subnet range for the claims-processing tier in europe-west1 that supports up to 500 usable VM instances today, with headroom to double without re-subnetting, while keeping the allocation as small as possible so future regions do not overlap. Which prefix length should the team assign to the subnet primary range?
・A /23 prefix, which yields about 507 usable addresses.
Incorrect. A /23 yields roughly 507 usable addresses after Google reserves four per subnet, leaving no room to double capacity without re-subnetting.
・A /24 prefix, giving roughly 251 usable addresses.
Incorrect. A /24 provides only about 251 usable addresses, which cannot even host the 500 instances required today.
✓A /22 prefix, which yields about 1,020 usable addresses.
Correct. A /22 provides about 1,020 usable addresses, covering 500 instances now and doubling later while staying the smallest range that meets the headroom requirement.
・A /21 prefix, giving a much larger pool of roughly 2,044 usable addresses.
Incorrect. A /21 provides roughly 2,044 usable addresses, far more than needed, which wastes space and raises the risk of overlap with future regional allocations.
Explanation
Google reserves four IP addresses in every subnet primary range, so a /22 (1,024 total, ~1,020 usable) is the smallest block that hosts 500 instances today and allows doubling. A /23 lacks doubling headroom and a /21 wastes address space.
Example15 · Designing and Planning a Network
A travel-booking company runs a central platform team and separate development teams for flights, hotels, and car rentals, each in its own project. Leadership requires that the platform team own and administer all subnets, firewall rules, and routes centrally, while the service teams deploy VMs into those shared subnets and retain their own IAM boundaries and billing. Which network design meets these requirements?
✓Create a Shared VPC with the platform project as host, share its subnets to the service projects, and grant each team per-subnet network user roles on those shared subnets.
Correct. Shared VPC lets the host project centrally own subnets, firewall rules, and routes while service projects deploy resources and keep separate IAM and billing boundaries.
・Deploy a standalone VPC in each service project and connect them in a full mesh using VPC Network Peering between every pair.
Incorrect. Peered VPCs keep each project managing its own subnets and firewall rules, so administration cannot be centralized in the platform team as required.
・Place all teams in one project sharing a single VPC and separate workloads only by network tags and firewall rules.
Incorrect. Collapsing every team into a single project destroys the per-team IAM and billing boundaries that the requirement explicitly mandates.
・Use one VPC per service project and connect them through a central transit VM running IP forwarding and custom static routes.
Incorrect. A transit VM with IP forwarding adds a managed bottleneck and still leaves each project administering its own VPC rather than centralizing control.
Explanation
Shared VPC is purpose-built for a central host project that administers subnets, firewall rules, and routes while service projects attach and deploy independently with their own IAM and billing. VPC Peering and single-project designs cannot centralize administration without collapsing boundaries.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)