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 →
- 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.
- 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 .
- Add an arm64 node pool (Karpenter
kubernetes.io/arch: arm64requirement) alongside x86. - Move services one at a time using node affinity; start with stateless, low-risk ones.
- 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.
More on Migrations
Migrate an application from EC2 to EKS with zero downtime. Walk me through it.AdvancedMigrate a database from on-prem MySQL to Amazon RDS with minimal downtime. How?AdvancedYou need to move Terraform state from local files to an S3 backend. How?BeginnerMigrate CI from Jenkins to GitHub Actions for 80 repositories. How do you plan it?IntermediateUpgrade an EKS cluster from 1.30 to 1.31 in production. What's your process?IntermediateMove from a monolith to microservices. What's the DevOps side of the migration?Advanced