Design Cost-Optimized Architectures

Which caching strategy loads data into a cache only after an application requests it and encounters a cache miss?

Show the answer

Correct answerC. Lazy loading

AWhy not this: Scheduled prewarming loads data before requests rather than in response to cache misses.

BWhy not this: Write-through caching updates the cache during writes rather than waiting for a read miss.

CWhy this is right: Lazy loading fetches requested data from the database after a miss and then caches it.

DWhy not this: Write-behind caching accepts writes into a cache and asynchronously persists them to the database.

Lazy loading populates the cache on demand after a cache miss, avoiding caching data that is never requested. Write-through caching populates or updates the cache when data is written instead.