How would you prevent cross-customer document leakage in RAG?

Security & architectureSystem designAbout 15 minutes

Understand the idea, explain it in your own words and use the rubric to find your next learning gap.

Local drafts · no account or AI calls
Sukoaa original

The idea behind the question

Authorization must constrain retrieval and every downstream store or cache. A prompt that asks a model to respect tenancy is not an access-control system.

AN ILLUSTRATIVE EXAMPLE

A support user must never retrieve another company's internal contract even if it is the closest semantic match.

A practical way to learn it

Draw data boundaries for two tenants and write five cross-tenant requests that must fail.

Open online notepad

The related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.

Build an explanation you understand

  1. State what the concept does in plain language.
  2. Apply it to the example and make your assumptions explicit.
  3. Explain a trade-off, failure case and how you would test it.
  4. Distinguish your actual experience from a proposed approach.

Further reading

Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.