All Questions
Guardrails And Safety easy

Your multi-tenant LLM app gives each tenant its own database. To save cost, you add a semantic response cache keyed only on the prompt embedding, shared across all tenants. What risk does this create?

  1. A None, because tenant data lives in separate databases and the cache only holds model outputs.
  2. B Another tenant's similar prompt can hit a cached answer built from the first tenant's data.
  3. C The cache will lower hit rates because each tenant phrases prompts differently, wasting memory.
  4. D Cached answers may go stale, which is a freshness issue but not a security or isolation issue.

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

Get the app

Related questions