AWS Certified SysOps Administrator – Associate — Question 335
An ecommerce company uses an Amazon ElastiCache for Redis cluster for in-memory caching of popular product queries on a shopping website. The cache eviction policy is randomly evicting keys whether or not a TTL is set. A SysOps administrator must improve the cache hit ratio without increasing costs.
Which solution will meet these requirements?
Answer options
- A. Add another node to the ElastiCache cluster.
- B. Increase the ElastiCache TTL value.
- C. Change the eviction policy to randomly evict keys that have a TTL set.
- D. Change the eviction policy to evict the least frequently used keys.
Correct answer: D
Explanation
Changing the eviction policy to evict the least frequently used (LFU) keys ensures that highly popular product queries remain in the cache, directly improving the cache hit ratio. Random eviction policies do not prioritize popular data, and increasing TTLs does not solve the root issue of random eviction. Adding another node would increase the cache size but would also violate the constraint of not increasing costs.