0
0
GCPcloud~20 mins

Routes and routing in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Routing Mastery in GCP
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding GCP Route Priorities

You have two routes in Google Cloud Platform (GCP) with the same destination range but different priorities. Route A has priority 1000 and Route B has priority 500. Which route will GCP use to send traffic to that destination?

ARoute B because it has a lower priority number.
BRoute A because it was created first.
CRoute A because it has a higher priority number.
DGCP will load balance traffic evenly between Route A and Route B.
Attempts:
2 left
💡 Hint

In GCP routing, lower priority numbers mean higher priority.

Configuration
intermediate
2:00remaining
Configuring a Custom Static Route in GCP

You want to create a static route in GCP that directs traffic destined for 10.0.0.0/16 to a specific VM instance acting as a gateway. Which next hop type should you specify in the route configuration?

ANext hop IP address
BNext hop VPN tunnel
CNext hop instance
DNext hop internet gateway
Attempts:
2 left
💡 Hint

The next hop should be the VM instance acting as the gateway.

Architecture
advanced
3:00remaining
Designing a Multi-Region Network with Custom Routes

You have two VPC networks in different regions connected via VPC peering. You want to ensure that traffic from region A to region B uses a specific firewall VM in region A as a gateway before reaching region B. Which routing approach achieves this?

ACreate a custom static route in region A VPC with next hop instance set to the firewall VM and destination range of region B's subnet.
BSet up a VPN tunnel between the two regions and route traffic through it.
CUse dynamic routing with Cloud Router to automatically route traffic through the firewall VM.
DUse default routes and rely on VPC peering to handle traffic automatically.
Attempts:
2 left
💡 Hint

Custom static routes can direct traffic through specific instances.

security
advanced
3:00remaining
Impact of Routes on Firewall Security in GCP

You have a firewall rule allowing traffic from subnet A to subnet B. However, traffic is still blocked. You discover a route that sends subnet B traffic through a different gateway that blocks the traffic. What is the best way to fix this routing issue to allow traffic flow?

ADisable the firewall rule and rely on routes to control traffic.
BIncrease the priority of the firewall rule to override the route.
CDelete the conflicting route that sends traffic through the blocking gateway.
DCreate a new route with a lower priority number that directs traffic through the correct gateway.
Attempts:
2 left
💡 Hint

Routes with lower priority numbers take precedence.

service_behavior
expert
3:00remaining
Behavior of GCP Routes with Overlapping Destination Ranges

You have two routes in GCP with overlapping destination IP ranges: Route X with destination 10.0.0.0/16 and priority 1000, and Route Y with destination 10.0.0.0/24 and priority 1100. A VM sends traffic to IP 10.0.0.50. Which route will GCP use and why?

ARoute X because it has a lower priority number.
BRoute Y because it has a more specific destination range.
CRoute X because it was created first.
DRoute Y because it has a higher priority number.
Attempts:
2 left
💡 Hint

GCP prefers the most specific route regardless of priority.