All Questions
Llm Gateway Cost And Caching easy

A retail assistant uses a semantic cache. Weeks after a store changed its holiday hours, users still receive the old hours from cached answers. What is the right fix?

  1. A Raise the similarity threshold so only exact repeats of a question reuse the answer.
  2. B Partition the cache by tenant so each store's answers are kept in a separate space.
  3. C Increase the cache size so newer answers push the older entries out of it sooner.
  4. D Give entries a TTL plus invalidation when source data changes.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions