Your company's VPC network is named prod-vpc. All VM instances that should use the on-premises connection have the network tag priv-egress. The on-premises CIDR block is 10.50.0.0/16 and is reachable through an existing Cloud VPN tunnel called corp-tunnel in region us-central1. You need to ensure that traffic from tagged VMs to 10.50.0.0/16 takes this VPN path and not the default internet route. Which gcloud command meets the requirement?
A custom static route must specify the destination range, the VPC network, and the appropriate next hop. When the next hop is a Cloud VPN tunnel you must include both --next-hop-vpn-tunnel and --next-hop-vpn-tunnel-region. Because the system-generated default route has priority 1000, giving the custom route a lower number such as 900 guarantees it is preferred. Adding the --tags flag limits the route to packets originating from VMs that have the priv-egress tag. The correct command therefore uses the VPN tunnel as the next hop, includes the region, sets priority 900, and applies the priv-egress tag. The other options either point to the internet gateway, omit the required region flag, have a lower preference than the default route, or choose the wrong next-hop type.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the significance of the --next-hop-vpn-tunnel and --next-hop-vpn-tunnel-region flags?
Open an interactive chat with Bash
Why does the custom route require a priority of 900?
Open an interactive chat with Bash
What is the role of network tags in this routing setup?
Open an interactive chat with Bash
What is the significance of the route priority in GCP networking?
Open an interactive chat with Bash
Why is the --next-hop-vpn-tunnel-region flag needed for VPN routes?
Open an interactive chat with Bash
What does the --tags flag do in the gcloud compute routes command?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .