Interview Prep/Real-World Interview/Multi-env and multi-account

Users in Europe complain about latency. You're asked to deploy the app to a second region. What changes?

AdvancedScenarioMulti-env and multi-account
Answer

Situation read → The stateless tier is the easy part. The real questions are where the data lives, how writes work, and how users get routed.

What I'd do →

  1. Check first whether a CDN (CloudFront) for static and cacheable API responses solves most of it; it's far cheaper.
  2. If not, deploy the stateless tier in eu-west-1 from the same Terraform and GitOps config (another cluster in the ApplicationSet).
  3. Data options:
    • Read-heavy: a cross-region read replica (Aurora Global Database) with writes going to the primary region.
    • Write-heavy and global: DynamoDB global tables or a data model partitioned by user region.
  4. Routing: Route 53 latency-based routing with health checks, so users go to the nearest healthy region.
  5. Check data residency rules; EU user data may need to stay in the EU, which can drive the design.
  6. Observability per region, and a runbook for failing one region over to the other.

Why → Moving compute closer only helps if the data each request needs is also close.

Interview tip → Ask "is it reads or writes that are slow?"; that question decides the data design.

All Real-World Interview questions Roadmap: Interview readiness

More on Multi-env and multi-account