What is ElastiCache, and what is the difference between Redis and Memcached on it?
AWS · Intermediate level
Answer
ElastiCache provides managed in-memory caching. Redis-compatible engines are better for rich data structures, replication, persistence options, pub/sub, and counters; Memcached is simpler for ephemeral distributed object caching.
Technical explanation
A cache must tolerate misses, eviction, stampedes, and full cache loss without corrupting source-of-truth data.
Database service choice depends on data model, access patterns, consistency requirements, operational burden, scaling model, and failure tolerance.
Managed databases still require customer ownership of schema, indexes, queries, IAM/network security, backups, upgrades, and restore validation.
Production data design should include encryption, private networking, least-privilege access, monitoring, backups, failover testing, and cost controls.
Hands-on example
1. Create the database/cache in private subnets with encryption, least-privilege security groups, backup/retention settings, and monitoring enabled.
2. Run a representative workload test and capture latency, throughput, connection count, CPU, memory, I/O, and errors.
3. Test the failure path: failover, replica lag, cache loss, throttling, or restore depending on the service.
4. Write the operational runbook covering access, backup, scaling, alarms, and rollback.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More AWS interview questions
- Explain DynamoDB partition keys, sort keys, and the importance of access patterns.
- What is Amazon Aurora, and how does it differ from standard RDS?
- How do you trigger a Lambda function - name several event sources.
- What is Multi-AZ in RDS, and how does failover work?
- What is Amazon EKS, and what does AWS manage versus what you manage?
- What is EFS, and when would you use it over EBS or S3?
- How do EBS snapshots work, and are they incremental?
- What are managed node groups versus self-managed nodes versus Fargate on EKS?