Interview › Databases & Caching
Walk me through your ElastiCache Redis to Valkey migration: motivation, plan, and validation.
Databases & Caching · Intermediate level
Answer
A Redis to Valkey migration should be driven by support, licensing, cost, or platform-standardization goals, then executed through inventory, compatibility testing, staging validation, cutover, metrics comparison, and rollback planning.
Technical explanation
Wire compatibility does not guarantee every feature, module, metric, or managed-service setting behaves identically.
If the workload is pure cache, cutover can tolerate misses; if Redis holds authoritative data, migration must be much stricter.
Validation should compare hit ratio, latency, evictions, memory, CPU, connection count, app errors, and failover behavior.
Hands-on example
Migration runbook:
1. Inventory Redis version, commands, clients, Lua scripts, modules, ACLs, cluster mode, and parameters.
2. Create equivalent Valkey cluster.
3. Restore backup or use online migration if supported.
4. Test staging app and replay synthetic traffic.
5. Lower TTLs and warm hot keys.
6. Switch endpoint/secret.
7. Monitor p95 latency, hit ratio, evictions, CPU, memory, and errors.
8. Keep old cluster for rollback window.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Databases & Caching interview questions
- What is Amazon RDS, and what does it manage for you versus self-managed databases?
- What database engines does RDS support?
- What is the difference between RDS and Aurora?
- What is Multi-AZ in RDS, and how does automatic failover work?
- How long does an RDS Multi-AZ failover typically take, and what triggers it?
- What is the difference between Multi-AZ and a read replica?
- When would you use a read replica, and can it become a standalone database?
- Can a read replica be in a different region, and why would you do that?