Question 100
Before changing production settings, a reviewer notes: A Python API's semantic search is slow and developers are considering doubling database compute without examining query plans. Which evidence best distinguishes the cause?
Explanation
Correct Answer
Capture the slow SQL, actual plan and relevant index/lock statistics. The scenario specifically states: A Python API's semantic search is slow and developers are considering doubling database compute without examining query plans. EXPLAIN (ANALYZE, BUFFERS) reveals actual plan execution, row estimates and I/O behavior. This check looks at the condition that directly distinguishes the described failure. The supported implementation response is Analyze the plan before selecting index, query, or capacity adjustments. The important remaining qualification is: One fast plan on a tiny test set does not establish production performance.
Incorrect Answers
Vector ranking and relational SQL filters must both honor trusted tenant authorization. That addresses a different mechanism; this question turns on Capture the slow SQL, actual plan and relevant index/lock.
PostgreSQL index creation strategy affects locking and availability, including supported CONCURRENTLY operations. That observation may hold without resolving the relevant issue: Capture the slow SQL, actual plan and relevant index/lock.
Partial B-tree indexes can focus on frequently queried subsets using a supported WHERE predicate. It does not verify the requested outcome; here the decisive check concerns Capture the slow SQL, actual plan and relevant index/lock.