Design hybrid connectivity to on-prem that survives a link failure.
IntermediateScenarioVPC and Networking
Answer
Situation read → Redundancy must exist at the device, circuit and path level.
What I'd do →
- Primary: Direct Connect, ideally two connections at different locations
- Backup: Site-to-Site VPN over the internet attached to the same Transit Gateway or Virtual Private Gateway
- Use BGP on both with local preference or AS-path prepending favoring DX
- Enable BFD and test failover by shutting one path
- Monitor
TunnelStateand DXConnectionStatemetrics
Why → DX gives predictable latency; VPN gives fast, cheap insurance with automatic BGP failover.
Interview tip → A single DX is a single point of failure; say so.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner