Question 70
A RAG table uses a JSONB attributes column and every query filters on document type, but scans are slow at scale. Which approach most directly fixes this problem?
Explanation
Correct Answer
Index choice should match operators used to filter frequently queried metadata.
Incorrect Answers
Order by the vector distance expression and restrict results with LIMIT: nearest-neighbor search requires distance ranking rather than arbitrary row order.
Index the join key based on the measured query plan: a join-key index can avoid repeated full-table scans during chunk attribution.
Add a justified composite B-tree index covering tenant and date filters: conventional indexes reduce candidate rows before or around vector ranking.





Developing AI Cloud Solutions on Azure (AI-200) Practice Tests