passdrill
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 016/024 medium

An application needs a caching layer in front of its database to store frequently accessed data as sorted leaderboard entries that must survive a node reboot, and the team also wants built-in replication so a replica can take over if the primary cache node fails. Which ElastiCache engine and configuration fits, and why?

  1. ElastiCache for Memcached, because its multi-threaded architecture uses multiple CPU cores to serve leaderboard reads faster than a single-threaded engine
  2. ElastiCache for Memcached with automatic node recovery enabled, since Memcached automatically re-elects a replica as primary when a node fails
  3. ElastiCache for Redis, because it supports native sorted-set data structures for leaderboards, disk snapshots for persistence, and primary-replica replication for failover
  4. ElastiCache for Redis configured as a single node with no replicas, since Redis snapshots alone are sufficient to fail over between nodes automatically
Next card → Shuffle