Question 410
A team implements the approved change for: A multi-tenant RAG service runs a nearest-neighbor query without applying tenant_id constraints and returns another client's documents. Which limitation of that specific control still needs to be documented?
Explanation
Correct Answer
The filter is ineffective if tenant_id comes from an untrusted request without verification. The scenario specifically states: A multi-tenant RAG service runs a nearest-neighbor query without applying tenant_id constraints and returns another client's documents. Vector ranking and relational SQL filters must both honor trusted tenant authorization. The safeguard addresses the immediate cause, but this remaining boundary must still be acknowledged. The confirming evidence for success is A cross-tenant query never returns records outside the authorized tenant. The important remaining qualification is: The filter is ineffective if tenant_id comes from an untrusted request without verification.
Incorrect Answers
Proper composite B-tree indexes can accelerate selective structured predicates alongside vector search. In the present case the governing issue is Vector ranking and relational SQL filters must both honor, which this does not resolve.
Pgvector functionality requires the supported vector extension to be enabled under the server's extension policy. That observation may hold without resolving the relevant issue: The filter is ineffective if tenant_id comes from an.
Pgvector HNSW indexes can accelerate approximate nearest-neighbor search with recall/memory tradeoffs. It does not verify the requested outcome; here the decisive check concerns The filter is ineffective if tenant_id comes from an.