Infrastructure Security

A multi-tenant retrieval-augmented generation application shares a document index, and users can manipulate prompts and request parameters. Which design BEST prevents cross-tenant disclosure while preserving retrieval of each tenant's documents?

Show the answer

Correct answerB. Derive tenant scope from authenticated identity and enforce it during retrieval before model invocation.

AWhy not this: Sensitive-information filters do not determine whether a user is authorized to see another tenant's business data.

BWhy this is right: Trusted identity establishes tenant scope, and retrieval enforcement keeps unauthorized documents out of model context.

CWhy not this: An attacker can change a caller-supplied tenant identifier unless the backend independently validates authorization.

DWhy not this: Prompt instructions are not an authorization boundary and can leave unauthorized documents in model context.

Tenant authorization must be enforced outside the model using trusted identity, before documents enter its context. A retrieval filter based on a caller-supplied tenant identifier can be manipulated and does not establish authorization.