🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Boot Caching: all 10 questions

Quiz: Spring Boot Caching · Question 4 of 10

A course title is updated in the database but the method that updates it has no cache annotation. What do users see?

A course title is updated in the database but the method that updates it has no cache annotation. What do users see?

  1. A.The new title immediately
  2. B.The old cached title until the entry is evicted or expires
  3. C.An error
  4. D.An empty page
Answer & explanation

Correct answer: The old cached title until the entry is evicted or expires

The cache does not know the database changed; that is stale data.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Boot Caching quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →