🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Restart the database
  2. B.Delete the cache key when writing, so the next read reloads it
  3. C.Increase the TTL to one day
  4. 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 →