Reliability and Business Continuity

An application uses Amazon ElastiCache to cache frequently requested database records. Under a lazy-loading strategy, what should the application do when a requested record is absent from the cache?

Show the answer

Correct answerA. Read the database and populate the cache.

AWhy this is right: Fetching and caching the missing record allows subsequent requests to avoid database reads.

BWhy not this: Caching an empty record would not return the existing database record requested by the application.

CWhy not this: Leaving the cache empty causes repeated database reads rather than populating the cache on demand.

DWhy not this: Lazy loading requires application logic; ElastiCache does not automatically fetch database records.

With lazy loading, the application handles a cache miss by reading the database and adding the result to the cache. ElastiCache does not automatically retrieve missing application records from the database.