Question 90
A service caches user session objects to reduce repeated database reads but must support low-latency key-based expiration. Which implementation is the most appropriate?
Explanation
Correct Answer
An in-memory key-value cache supports fast lookups and expiration semantics. In this situation, cache hit latency meets SLO and expired keys are not served beyond policy. The decision can be verified by that concrete result.
Incorrect Answers
Relational services preserve supported SQL semantics and transactional consistency. That relates to a different need: a relational database must maintain SQL joins and ACID transactions across an existing PostgreSQL schema.
Caching repeated hot results avoids unnecessary database computation. That relates to a different need: a reporting service has a stable SQL workload and the database CPU is low but query latency rises due to repeated identical joins.
DAX caches eligible DynamoDB requests in memory to reduce read latency and backend load. That relates to a different need: an existing DynamoDB table has fast point lookups but repeated hot-key reads overwhelm provisioned throughput.