⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 1,000+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
← Back to All AWS & Cloud Architecture Interview Questions Scenario 141 of 186 in AWS & Cloud Architecture
Staff Cloud Architect GCP & Cloud Hybrid Cloud & Networking Network Architecture

Q: How do you architect a hybrid connection between on-premise datacenters and GCP that achieves 99.99% availability? How do you configure dynamic BGP routing so that high-throughput Dedicated Interconnect is preferred, while HA VPN serves as an automatic backup?

Engineering a resilient 99.99% hybrid connectivity topology between enterprise datacenters and GCP using Cloud Interconnect with automated BGP MED metric failover to Cloud VPN.

#GCP #Cloud Interconnect #BGP #Cloud VPN #Networking #Hybrid Cloud
🎙️ Candidate Opening & Architectural Context
"Our enterprise hybrid cloud infrastructure required reliable, high-bandwidth connectivity for database replication between our Chicago on-premises datacenter and Google Cloud us-central1."
Advertisement
⚡ Recommended Practice Lab

Want to master this scenario in a live sandbox? Stephane Maarek's AWS Certified DevOps Engineer Professional Masterclass on Udemy covers this exact problem with hands-on terminal drills.

🛠️ Production Runbook & Step-by-Step Resolution

1️⃣

Deploy Redundant Dedicated / Partner Interconnect Circuits

Establish physical circuits to distinct Google Edge Points of Presence (PoPs):

  • Dual Metro Interconnect: Provisioned two 10 Gbps interconnect connections across separate colocation facilities (e.g. Equinix CH1 and CH2).
  • VLAN Attachments: Created dual redundant VLAN attachments (InterconnectAttachments) bound to Cloud Routers in GCP.
  • SLA Target: Configured two circuits across two metros to meet Google's 99.99% availability SLA.
Pro Tip: To qualify for Google's 99.99% Cloud Interconnect SLA, connections must be placed in dual metros with dual edge availability domains.
2️⃣

Configure Dynamic BGP Peering on Cloud Router

Establish BGP sessions for dynamic route advertisement between on-premises routers and GCP:

  • Cloud Router ASN: Configured Cloud Router with private ASN (e.g., 65001) peering with on-prem ASN (65002).
  • Custom Route Advertisements: Advertised VPC subnets (10.0.0.0/16) and peered Shared VPC ranges dynamically over BGP.
  • Graceful Restart: Enabled BGP Graceful Restart to prevent route drops during Cloud Router software updates.
Pro Tip: Never use static routes in enterprise hybrid clouds; dynamic BGP ensures sub-second route convergence during link failures.
3️⃣

Deploy Cloud HA VPN as Backup Path with BGP MED Tuning

Configure HA VPN with route weighting (MED / AS-Path Prepending):

  • HA VPN Gateways: Deployed regional HA VPN gateways with two active tunnels bound to Cloud Router.
  • BGP MED Preference: Advertised on-prem routes over Interconnect with Multi-Exit Discriminator (MED) of 100, and over HA VPN with MED of 200.
  • AS-Path Prepending: On egress from GCP, prepended the on-premises ASN twice on the VPN session to ensure on-prem firewalls prefer the Interconnect path.
Pro Tip: In BGP route selection, lower MED values are preferred. Traffic automatically fails over to the VPN path only when BGP keepalives timeout on Interconnect.
4️⃣

Tune MTU & Configure Network Intelligence Center Probing

Prevent packet fragmentation and monitor path health:

  • MTU Configuration: Set Interconnect MTU to 1500 (or jumbo 8896 where supported) and HA VPN MTU to 1460 to avoid TCP MSS clipping.
  • Network Intelligence Center: Enabled Performance Dashboard and Connectivity Tests to alert when BGP sessions state changes to DOWN.
Pro Tip: A common cause of mysterious application timeouts during VPN failover is TCP packet drop caused by MTU mismatch (1500 vs 1460).
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Achieving 99.99% hybrid cloud availability requires dual-metro physical Interconnects paired with dynamic BGP routing, using Multi-Exit Discriminator (MED) and AS-Path prepending to ensure deterministic, zero-touch failover."
⚡ 60-Second Elevator Pitch Talking Points
  • Provisioned dual physical Interconnect circuits across separate colocation facilities to meet Google's 99.99% SLA.
  • Configured dynamic eBGP sessions on Cloud Router with custom subnet advertisements and Graceful Restart.
  • Deployed Cloud HA VPN as automated fallback, tuning BGP MED (100 vs 200) to ensure primary Interconnect priority.
  • Tuned MTU parameters and deployed Connectivity Tests to continuously validate path latency and packet loss.
Advertisement
Want more AWS & Cloud Architecture scenarios?
Explore our complete collection of scenario-based AWS & Cloud Architecture interview runbooks.
Browse All AWS & Cloud Architecture Questions →