- A
Add a static route for 0.0.0.0/0 with next hop VPN gateway, and set a lower priority than the internet default route.
Why wrong: That would send all traffic through VPN.
- B
Use Cloud Router with BGP to exchange specific routes with on-premises, and keep the default internet route for other traffic.
BGP-learned specific routes will override the default route for those destinations.
- C
Configure the Cloud VPN to advertise a default route to on-premises, and rely on local preference.
Why wrong: That would send on-premises traffic to Google, opposite direction.
- D
Use VPC Network Peering with the on-premises network and configure custom route exchange.
Why wrong: Peering is for VPC-to-VPC, not for on-premises.
Quick Answer
The answer is to use Cloud Router with BGP to exchange specific on-premises prefixes while keeping the default internet route intact. This configuration works because BGP dynamically advertises only the specific routes from your on-premises network into the VPC, so Cloud VPN route selection directs traffic for those learned prefixes through the tunnels, while the default 0.0.0.0/0 route remains pointed at the internet gateway for all other traffic. On the Google Professional Cloud Network Engineer exam, this scenario tests your understanding of how BGP route exchange interacts with VPC routing priority—specifically that more specific routes (e.g., /24) override the default route only for their destination. A common trap is assuming you must remove the default route, which would break internet access; instead, BGP’s dynamic learning gives you precise control without overriding the default. Memory tip: think “BGP for the specific, default for the rest.”
PCNE Configuring network services Practice Question
This PCNE practice question tests your understanding of configuring network services. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company has a VPC with multiple subnets and uses Cloud VPN tunnels to connect to on-premises. They want to ensure that only traffic destined for on-premises is sent through the VPN tunnels; all other traffic should use the internet. Which route configuration should they implement?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Use Cloud Router with BGP to exchange specific routes with on-premises, and keep the default internet route for other traffic.
Option B is correct because using Cloud Router with BGP allows the VPC to dynamically learn specific routes from the on-premises network via the VPN tunnels. The default route (0.0.0.0/0) remains pointing to the internet gateway, so only traffic destined for the learned on-premises prefixes is sent through the VPN, while all other traffic uses the internet. This provides precise control without overriding the default route.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add a static route for 0.0.0.0/0 with next hop VPN gateway, and set a lower priority than the internet default route.
Why it's wrong here
That would send all traffic through VPN.
- ✓
Use Cloud Router with BGP to exchange specific routes with on-premises, and keep the default internet route for other traffic.
Why this is correct
BGP-learned specific routes will override the default route for those destinations.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Configure the Cloud VPN to advertise a default route to on-premises, and rely on local preference.
Why it's wrong here
That would send on-premises traffic to Google, opposite direction.
- ✗
Use VPC Network Peering with the on-premises network and configure custom route exchange.
Why it's wrong here
Peering is for VPC-to-VPC, not for on-premises.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that a default route (0.0.0.0/0) must be manipulated to direct traffic to on-premises, when in fact the correct approach is to use more specific routes learned via BGP to selectively direct only on-premises-destined traffic through the VPN.
Detailed technical explanation
How to think about this question
Cloud Router uses BGP to exchange routes with on-premises routers over the VPN tunnels. The learned routes are installed in the VPC route table with a next hop of the VPN gateway, and their priority is determined by the route type (static vs. dynamic) and the specific prefix length. By default, more specific routes (e.g., 10.0.0.0/8) take precedence over the less specific default route (0.0.0.0/0), ensuring only traffic matching the learned prefixes goes through the VPN. This is similar to how BGP-based VPNs work in hybrid cloud architectures, where route propagation must be carefully managed to avoid asymmetric routing or blackholing.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Configuring network services — study guide chapter
Learn the concepts, then practise the questions
- →
Configuring network services practice questions
Targeted practice on this topic area only
- →
All PCNE questions
497 questions across all exam domains
- →
Google Professional Cloud Network Engineer study guide
Full concept coverage aligned to exam objectives
- →
PCNE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCNE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Designing, planning, and prototyping a GCP network practice questions
Practise PCNE questions linked to Designing, planning, and prototyping a GCP network.
Implementing hybrid interconnectivity practice questions
Practise PCNE questions linked to Implementing hybrid interconnectivity.
Configuring network services practice questions
Practise PCNE questions linked to Configuring network services.
Implementing network security practice questions
Practise PCNE questions linked to Implementing network security.
Implementing a Virtual Private Cloud practice questions
Practise PCNE questions linked to Implementing a Virtual Private Cloud.
PCNE fundamentals practice questions
Practise PCNE questions linked to PCNE fundamentals.
PCNE scenario practice questions
Practise PCNE questions linked to PCNE scenario.
PCNE troubleshooting practice questions
Practise PCNE questions linked to PCNE troubleshooting.
Practice this exam
Start a free PCNE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCNE question test?
Configuring network services — This question tests Configuring network services — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use Cloud Router with BGP to exchange specific routes with on-premises, and keep the default internet route for other traffic. — Option B is correct because using Cloud Router with BGP allows the VPC to dynamically learn specific routes from the on-premises network via the VPN tunnels. The default route (0.0.0.0/0) remains pointing to the internet gateway, so only traffic destined for the learned on-premises prefixes is sent through the VPN, while all other traffic uses the internet. This provides precise control without overriding the default route.
What should I do if I get this PCNE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
This PCNE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCNE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.