All Questions
Llm Gateway Cost And Caching easy

Your multi-tenant B2B gateway is adding a semantic cache for questions like "What is our refund policy?". Each tenant has different policies. What must the cache lookup be scoped by?

  1. A The tenant ID, so a lookup only matches entries cached for that same tenant.
  2. B Only the query embedding, since one shared pool across tenants maximizes hits.
  3. C The model name, so answers from different models are never mixed in one pool.
  4. D The user's session ID, so each conversation keeps its own fully isolated cache.

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

Get the app

Related questions