All Questions
Guardrails And Safety hard

A self-hosted inference cluster serves many tenants and uses automatic prefix caching, which reuses KV blocks for shared prompt prefixes across all requests on a node. A researcher shows that one tenant can measure time-to-first-token to infer whether another tenant recently sent a prompt beginning with a specific contract template and a guessed client name. What is the right fix?

  1. A Namespace the prefix-cache key by tenant so KV blocks are reused only within a tenant, accepting a lower cache hit rate.
  2. B Encrypt KV cache blocks in GPU memory with per-tenant keys so another tenant's process cannot read cached attention state.
  3. C Nothing is needed: tenant documents live in separate databases, so the shared KV cache holds no tenant data at all.
  4. D Add a few milliseconds of random jitter to every response so TTFT measurements cannot reliably reveal cache hits.

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

Get the app

Related questions