← Quiz: Caching and CDNs: all 10 questions
Quiz: Caching and CDNs · Question 8 of 10
A course title changes in the database. What is a simple way to stop users seeing the old title from the cache?
A course title changes in the database. What is a simple way to stop users seeing the old title from the cache?
- A.Restart the database
- B.Delete the cache key when writing, so the next read reloads it
- C.Increase the TTL to one day
- D.Add more app servers
Answer & explanation
Correct answer: Delete the cache key when writing, so the next read reloads it
Delete-on-write invalidates the stale copy immediately.
Can you get the rest right without peeking?
Take the timed Quiz: Caching and CDNs quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →