Development with AWS Services

An RDS-backed application uses ElastiCache for product details, but most products are never requested. Which caching strategy avoids populating the cache with unread products?

Show the answer

Correct answerA. Populate the cache when a requested product is missing.

AWhy this is right: Lazy loading fetches and caches a product only when a request encounters a cache miss.

BWhy not this: Scheduled refresh maintains existing entries but does not define demand-driven initial population.

CWhy not this: Preloading every product consumes cache capacity for unread products.

DWhy not this: Write-through caching can populate products that no client requests.

Lazy loading populates the cache on a read miss, so unread products need not occupy cache space. Write-through caching populates entries on writes even when those products are never read.