1 / 5
In a 'cache-aside' (lazy loading) pattern, what happens on a cache miss?
-
-
-
-
With cache-aside, a miss falls back to the database and the result is written into the cache for subsequent reads.
2 / 5
A 'write-through' cache does what on a write?
-
-
-
-
Write-through updates the cache and the backing store on each write so the cache stays consistent.
3 / 5
A cache entry has a 'TTL' of 60 seconds. What does TTL control?
-
-
-
-
TTL (time to live) sets how long a cached value is considered fresh before it expires.
4 / 5
The cache reaches capacity and 'evicts' entries. What is eviction?
-
-
-
-
Eviction removes entries (often least-recently-used) when the cache is full to free space.
5 / 5
Which sentence correctly uses 'cache invalidation'?
-
-
-
-
Cache invalidation removes or refreshes stale entries when the underlying data changes.