Interview › Databases & Caching
How does ElastiCache provide high availability and automatic failover?
Databases & Caching · Advanced level
Answer
ElastiCache provides HA through replication groups, Multi-AZ replicas, node health monitoring, automatic failover, and endpoint updates. Applications still need reconnect and retry behavior during failover.
Technical explanation
ElastiCache uses replication groups, replicas, Multi-AZ placement, health checks, and automatic failover.
Cluster-mode enabled deployments fail over per shard.
Applications must handle dropped connections, endpoint updates, and retry behavior.
Hands-on example
Staging test:
Run GET/SET loop with latency measurement.
Trigger test failover.
Monitor CurrConnections, EngineCPUUtilization, ReplicationLag, CacheHitRate, Evictions, and app p95 latency.
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 the difference between Redis Sentinel and Redis Cluster?
- What is a cache hit ratio, and how do you improve it?
- What is Redis Cluster, and how does sharding with hash slots work?
- What is Redis replication, and how does a replica stay in sync?
- Why are some Redis commands (KEYS, FLUSHALL) dangerous in production?
- What is the difference between Redis persistence options RDB and AOF?
- What is the difference between Redis as a cache and Redis as a primary datastore?
- How would you use Redis for rate limiting?