Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Network Engineer practice bank has an additional 2,437 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your organization operates a hub-and-spoke network with a Hub VPC peered to workload Spoke VPCs (10.20.0.0/16). The Hub VPC connects to on-premises networks (10.10.0.0/16) via Dataplane v2 Cloud Interconnect VLAN attachments and a Cloud Router, and hosts single-NIC stateful Network Virtual Appliances (NVAs) with IP forwarding enabled behind a dedicated-IP internal passthrough Network Load Balancer (Hub ILB).
You must enforce the following traffic steering requirements:
10.10.0.0/16 to 10.20.0.0/16 through the Hub ILB, except traffic from an authorized scanner (10.10.99.10/32), which must bypass inspection.10.20.0.0/16 to 10.10.0.0/16 symmetrically through the Hub ILB without causing routing loops at the NVAs, while symmetrically bypassing inspection for 10.10.99.10/32.Which routing configuration should you implement?
10.20.0.0/16 through the NVAs with a lower MED while advertising 10.20.0.0/16 directly over the VLAN attachments with a higher MED. Create a static route in the Hub VPC for 10.10.99.10/32 to bypass the NVAs.Cloud Router establishes BGP sessions with external peer routers or with third-party virtual appliances deployed as Router appliance instances under Network Connectivity Center (NCC). BGP route policies use Common Expression Language (CEL) rules to filter or modify BGP attributes (such as MED or AS-PATH) on learned or advertised BGP prefixes.
10.20.0.0/16). Cloud Router BGP route policies cannot inspect packet source IP addresses (10.10.99.10/32 vs 10.10.0.0/16) to selectively bypass an NVA for inbound traffic.10.10.99.10/32 cannot target a Cloud Interconnect VLAN attachment directly as a next hop, nor does it influence inbound packets arriving from on-premises destined for 10.20.0.0/16.10.10.99.10/32 to 10.20.0.0/16 set to Skip other policy-based routes, and priority 20 matching 10.10.0.0/16 to 10.20.0.0/16 pointing to the Hub ILB. In each Spoke VPC, import custom routes and create matching priority 10 and priority 20 policy-based routes for return traffic pointing to Skip other policy-based routes and the Hub ILB, respectively.This design combines explicitly prioritized policy-based routes (PBRs), resource-specific route scoping, and cross-peering internal passthrough Network Load Balancer (ILB) next hops with Cloud Router dynamic route export. PBRs evaluate before subnet, static, and dynamic routes, allowing traffic steering based on both source and destination IP ranges.
10 matches 10.10.99.10/32 and invokes Skip other policy-based routes, bypassing priority 20 and using peering subnet routes straight to 10.20.0.0/16. All other 10.10.0.0/16 traffic matches priority 20 and enters the Hub ILB.10.20.0.0/16 or 10.10.0.0/16 never re-trigger the PBRs.10 (bypass to 10.10.99.10/32) and priority 20 (next-hop Hub ILB across peering) inside each Spoke VPC steers return flows back through the Hub ILB, where symmetric hashing selects the same stateful NVA instance. The NVA then uses the Hub VPC's Cloud Router dynamic route (10.10.0.0/16) to exit via the VLAN attachments.It resolves PBR non-transitivity across VPC peering, avoids the longest-prefix-match pitfall through unique priorities, prevents NVA routing loops via attachment-only scoping, and ensures end-to-end symmetry for both inspected and bypassed flows.
10.10.99.10/32 to 10.20.0.0/16 set to Skip other policy-based routes) and priority 20 (10.10.0.0/16 to 10.20.0.0/16 pointing to the Hub ILB). For return traffic, create a static route in the Hub VPC for 10.10.0.0/16 (priority 1000) with the Hub ILB as the next hop and export custom routes to the Spoke VPCs.Configuring a custom static route in the Hub VPC for 10.10.0.0/16 with a next hop of the Hub ILB and exporting custom routes over VPC Network Peering causes both the Hub VPC and all importing Spoke VPCs to install that static route in their routing tables.
65536, whereas static routes use priorities between 0 and 65535. Because priority 1000 beats 65536, the Hub VPC's static route overrides the Cloud Router dynamic route for 10.10.0.0/16. When a single-NIC NVA in the Hub VPC forwards an inspected return packet toward 10.10.0.0/16, it matches the static route and loops back into the Hub ILB.10.10.0.0/16 static route forces Spoke return traffic destined for 10.10.99.10/32 into the Hub ILB—breaking symmetry for the bypassed scanner—unless a separate /32 static route exists, which still would not fix the Hub-side NVA loop.0–65535) for an identical prefix always outranks BGP-learned dynamic routes (65536) in the same VPC.10.10.0.0/16 static route in the Hub VPC, return traffic was steered from the Spoke VPCs using Spoke-side PBRs pointing to the peered Hub ILB, leaving the Hub VPC's dynamic route (65536) unobstructed for NVA egress.10.10.99.10/32 to 10.20.0.0/16 set to Skip other policy-based routes, and one matching 10.10.0.0/16 to 10.20.0.0/16 pointing to the Hub ILB. Enable custom route export on the Hub VPC peering so the Spoke VPCs inherit these policy-based routes for return traffic.Policy-based routes (PBRs) allow Google Cloud to select a next hop using source IP, destination IP, and protocol, overriding standard subnet, static, and dynamic routes. When scoped to all VM instances, VLAN attachments, and VPN tunnels, a PBR evaluates every egress packet leaving every resource in that VPC network, including traffic forwarded by NVA backend VMs.
10) to both the /32 bypass rule and the /16 inspection rule forces Google Cloud to pick a matching rule via an internal algorithm rather than prefix specificity. Scanner traffic from 10.10.99.10/32 can inadvertently be sent to the Hub ILB.10.10.0.0/16 to 10.20.0.0/16 PBR to all VM instances causes packets forwarded by the NVA VMs themselves to re-match the PBR and loop back into the Hub ILB.10 and 20), the Hub PBRs were scoped strictly to VLAN attachments, and matching PBRs were configured directly inside each Spoke VPC for return traffic.Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated