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 runs multi-tier workloads in a Shared VPC (prod-vpc) connected to on-premises via Dataplane v2 Cloud Interconnect VLAN attachments in us-central1. prod-vpc is peered with a security VPC (sec-vpc) hosting an internal passthrough Network Load Balancer (ILB) for firewall inspection. You must meet these requirements:
inspected-workload VMs and us-central1 VLAN attachments to the ILB in sec-vpc, overriding subnet and dynamic routes.10.20.4.0/24 so it uses standard VPC dynamic routes.Which routing configuration should you implement?
sec-vpc, create policy-based routes at priorities 100 and 200 pointing to the local ILB, enable Export custom routes on the VPC Network Peering connection to propagate them to prod-vpc, and apply network tags to the Cloud Router BGP route policies to keep 10.20.4.0/24 traffic on the direct interconnect path.This design places policy-based routes inside the security VPC (sec-vpc) alongside the internal passthrough Network Load Balancer, expecting VPC Network Peering custom route exchange to propagate those PBRs into prod-vpc, while attempting to attach network tags to Cloud Router BGP route policies.
prod-vpc workloads and VLAN attachments never receive the inspection rules.DEFAULT_ROUTING bypass: Without a higher-priority PBR in prod-vpc configured to skip other PBRs, source-based inspection bypass cannot be enforced.prod-vpc), even when the next-hop ILB resides in a peered VPC (sec-vpc).You created the PBRs directly inside prod-vpc (referencing the peered sec-vpc ILB as the next hop) rather than relying on peering route export, and used a priority 100 PBR with DEFAULT_ROUTING for the 10.20.4.0/24 source bypass.
prod-vpc, create a policy-based route (PBR) at priority 100 for source 10.20.4.0/24 configured to skip other PBRs (DEFAULT_ROUTING), a PBR at priority 200 targeting the inspected-workload network tag with the sec-vpc ILB as next hop, and a PBR at priority 300 targeting us-central1 VLAN attachments with the same ILB next hop.Policy-based routes (PBRs) enable Google Cloud VPC networks to forward packets based on attributes beyond destination IP addresses, including source IP ranges, protocols, network tags, and regional Cloud Interconnect VLAN attachments. Because PBRs are evaluated before subnet routes, static routes, and dynamic routes in the VPC routing order, they are the primary mechanism for inserting inline Network Virtual Appliances (NVAs) fronted by an internal passthrough Network Load Balancer (ILB).
sec-vpc ILB as the next hop works natively because PBRs support next-hop ILBs located either in the local VPC or in a peered VPC network.10.20.4.0/24: Configuring a higher-priority PBR (lower numerical value 100) with --next-hop-other-routes=DEFAULT_ROUTING matching source 10.20.4.0/24 causes Google Cloud to skip evaluating lower-priority PBRs (200 and 300) and fall through to standard longest-prefix-match VPC dynamic routes.100, 200, 300) prevents Google Cloud from falling back to an internal tie-breaking algorithm, guaranteeing predictable hierarchical routing across all Shared VPC service projects.prod-vpc host project automatically enforces traffic steering across all attached service projects.inspected-workload) with source-based DEFAULT_ROUTING exceptions lets specific backup or management ranges bypass inspection without removing workload tags.Unlike static or dynamic routes, PBRs evaluate source criteria ahead of subnet and BGP routes while supporting cross-peering ILB next hops, making unique-priority PBR chaining the only Google Cloud-native solution that satisfies every requirement.
prod-vpc, create policy-based routes using Resource Manager secure tags (inspected-workload) for IAM-governed targeting of service-project VMs and us-central1 VLAN attachments pointing to the sec-vpc ILB, and assign the same priority to a 10.20.4.0/24 bypass PBR so longest-prefix matching prefers the more specific source range.This approach attempts to leverage Resource Manager secure tags (IAM-controlled tags used in Cloud Next Generation Firewall policies) inside policy-based routes while relying on longest-prefix matching to resolve overlapping PBRs that share an identical priority value.
roles/resourcemanager.tagUser) for firewall micro-segmentation across Shared VPCs and peered networks, Google Cloud does not support secure tags in static routes or policy-based routes. Routing mechanisms exclusively recognize VPC network tags.0.0.0.0/0 inspection rule instead of the more specific 10.20.4.0/24 bypass rule.--next-hop-other-routes=DEFAULT_ROUTING on a higher-priority (numerically lower) PBR.The configuration used VPC network tags instead of secure tags, separated the VM and VLAN attachment PBRs, assigned unique priorities (100 for DEFAULT_ROUTING bypass, 200 for tagged VMs, 300 for VLAN attachments), and avoided relying on equal-priority longest-prefix matching.
prod-vpc, configure a static route at priority 200 for 0.0.0.0/0 scoped to the inspected-workload network tag pointing to the sec-vpc ILB, configure a priority 100 static route for 10.20.4.0/24 pointing to the Cloud Router, and enable custom route export on the peering connection.This option relies on custom static routes scoped by network tags and route priority values, attempting to steer default egress traffic (0.0.0.0/0) to the peered security ILB while carving out a higher-priority static route toward Cloud Router for 10.20.4.0/24.
0.0.0.0/0 static route will never intercept east-west subnet traffic or on-premises traffic that matches more-specific BGP-learned prefixes.10.20.4.0/24 to bypass inspection.You only needed to route internet-bound (0.0.0.0/0) traffic from tagged VMs to an ILB in the same VPC without overriding subnet or dynamic BGP routes, and without needing source-IP bypass or VLAN attachment steering.
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