Leadership wants to move workloads from x86 to AWS Graviton (arm64) to save cost. How do you plan it?

IntermediateScenarioMigrations
Answer

Situation read → Graviton is typically 20–40% better on price-performance, but every image must exist for arm64 and some native dependencies won't.

What I'd do →

  1. Audit images: check base images and native libraries for arm64 support. Interpreted runtimes (Java, Python, Node, Go) usually just work; old C extensions and vendor agents are the blockers.
  2. Build multi-arch images in CI:
docker buildx build --platform linux/amd64,linux/arm64 \
  -t 111122223333.dkr.ecr.ap-south-1.amazonaws.com/api:1.8.0 --push .
  1. Add an arm64 node pool (Karpenter kubernetes.io/arch: arm64 requirement) alongside x86.
  2. Move services one at a time using node affinity; start with stateless, low-risk ones.
  3. Compare latency, CPU and error rates for a week per service, then make arm64 the default in the Karpenter NodePool and allow both architectures so capacity is never blocked.

Why → Multi-arch images make the move reversible: if something misbehaves, you change scheduling, not the build.

Interview tip → Bring up exec format error; it's the exact error you get when an amd64-only image lands on an arm64 node.

All Real-World Interview questions Roadmap: Interview readiness

More on Migrations