All jobs / AI engineer / AI Data & Privacy

AI engineer interview question · 3–5 years

Your RAG product serves many companies from one vector index. How do you guarantee one tenant never sees another tenant’s content?

The strongest answer

The server applies the tenant filter from the authenticated session on every query — or tenants get separate namespaces — never from the prompt or a model-supplied argument. Memory and caches follow the same rule, with cross-tenant tests in CI

Why it works

Exactly — isolation is an authorisation decision, so code makes it from the session, below the model. A test that tries to cross the line keeps it true after the next refactor.

What a good answer covers

Answers that fall short

Who gets asked this

More AI Data & Privacy questions