When do you pick static routes vs BGP between on-prem and AWS?
IntermediateScenarioAddressing, CIDR & Routing
Answer
Situation read → The decision depends on the number of prefixes, the need for failover and who owns changes.
What I'd do →
- Use static routes for a single site, a handful of stable prefixes and a single tunnel
- Use BGP when you have multiple tunnels or circuits, many prefixes or need automatic failover
- With BGP on Site-to-Site VPN or Direct Connect, control path with local preference and AS-path prepending
- Monitor tunnel state with the
TunnelStateCloudWatch metric and BGP session alarms
Why → BGP withdraws a dead path on its own, while static routes need a human or health tracking to fail over.
Interview tip → Say you always prefer BGP for anything production because failover without human action is the point.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner