Design High-Performing Architectures

An ElastiCache-backed catalog has frequent updates, synchronized cache-expiration bursts, and repeated lookups for nonexistent IDs. Cached results must never remain valid more than 60 seconds after loading; which changes reduce database load while preserving this freshness limit? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Invalidate affected cached entries after successful database updatesC. Randomize entry TTLs between 40 and 60 secondsE. Cache not-found results for 5 seconds and invalidate them when records are created

AWhy this is right: Invalidating after a successful update removes outdated results so later reads can load committed data.

BWhy not this: Flushing everything at once sends every lookup to the database together, creating a larger synchronized burst.

CWhy this is right: Varying TTLs spreads expiration-driven database reads while keeping every TTL within the 60-second limit.

DWhy not this: A 5-minute negative cache keeps a result valid far beyond 60 seconds after loading, violating the freshness limit.

EWhy this is right: Briefly caching missing results avoids repeated database lookups; creation-time invalidation prevents hiding new records.

FWhy not this: Sliding expiration can keep a hot entry valid beyond 60 seconds after loading, violating the freshness limit.

Bounded TTL jitter spreads expirations, negative caching absorbs repeated missing-ID lookups, and post-commit invalidation prevents updated values from lingering. Resetting TTL on every hit can keep a frequently accessed stale result valid indefinitely, a 5-minute negative cache breaks the 60-second limit, and flushing the whole cache at once creates the same synchronized miss burst the design must avoid.