QA
Senior LevelCloud Computing (AWS/GCP/Azure)

How do you design BGP Dynamic Routing over AWS Direct Connect with IPsec VPN backup?

❓ Interview Prompt: Explain BGP dynamic routing over Direct Connect, Private Virtual Interfaces (VIF), AS-PATH prepending, and automated IPsec VPN failover.

Designing enterprise hybrid cloud connectivity requires establishing high-bandwidth private links with automated, seamless failover to backup IPsec VPN tunnels.

High-Availability BGP Failover Architecture:

1
Primary Link (Direct Connect): Establish BGP session over a Direct Connect Private VIF between on-premise routers and AWS Virtual Private Gateway (VGW).
2
Secondary Link (Site-to-Site VPN): Establish BGP session over IPsec VPN tunnel as backup.
3
BGP Route Preference Control:
•
Outbound (AWS to On-Prem): Configure BGP Local Preference (higher preference for Direct Connect route).
•
Inbound (On-Prem to AWS): Apply AS-PATH Prepending to the VPN route to make the VPN path artificially longer, forcing routers to prefer Direct Connect!

Code Implementation Example

hcl
# BGP AS-PATH Prepending configuration snippet for VPN failover
resource "aws_vpn_connection" "backup_vpn" {
  vpn_gateway_id      = aws_vpn_gateway.vgw.id
  customer_gateway_id = aws_customer_gateway.cgw.id
  type                = "ipsec.1"
  static_routes_only  = false # Enable BGP dynamic routing!
}
💡Terraform VPN connection configured for dynamic BGP routing.
🎯 Interview Key Takeaway

Use BGP dynamic routing with AS-PATH prepending to prefer primary Direct Connect links while enabling automatic failover to IPsec VPN.

#Direct Connect#BGP#VPN Failover#Hybrid Cloud#Senior
Back to all Cloud Computing (AWS/GCP/Azure) Questions→

More Cloud Computing (AWS/GCP/Azure) Interview Questions

Beginner LevelCloud Computing (AWS/GCP/Azure)

How does Serverless Architecture (AWS Lambda / GCP Cloud Run) handle Auto-Scaling and Cold Starts?

Beginner LevelCloud Computing (AWS/GCP/Azure)

What is the difference between IaaS, PaaS, and SaaS cloud service models?

Beginner LevelCloud Computing (AWS/GCP/Azure)

What is AWS EC2 and what are On-Demand, Reserved, and Spot Instance pricing models?