← 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?
- A.The new title immediately
- B.The old cached title until the entry is evicted or expires
- C.An error
- 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 →