Question 330 A model migration switches embeddings to 3072 dimensions, while the Azure PostgreSQL table column remains defined as vector(1536); inserts fail. What is the most targeted next step after confirming the cause? Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. Allowlist and install the supported vector extension in that database before creating vector columns and indexes. Explanation Correct Answer A:Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. The reported insertion error names a dimension mismatch between vector column size and the supplied embedding array. Incorrect Answers B:Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. This would address PostgreSQL cosine operator class alignment, not PostgreSQL vector dimension mismatch. C:Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. This would address PostgreSQL approximate-neighbor indexing, not PostgreSQL vector dimension mismatch. D:Allowlist and install the supported vector extension in that database before creating vector columns and indexes. This would address PostgreSQL pgvector extension installation, not PostgreSQL vector dimension mismatch.
Question 331 A retrieval query orders neighbors with cosine distance, but its HNSW index was built using an L2 operator class and is not chosen for that query. Which corrective action is most appropriate for this situation? Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. Allowlist and install the supported vector extension in that database before creating vector columns and indexes. Explanation Correct Answer B:Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. EXPLAIN shows a sequential scan for the cosine ordering while the index definition specifies vector_l2_ops. Incorrect Answers A:Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. This would address PostgreSQL approximate-neighbor indexing, not PostgreSQL cosine operator class alignment. C:Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. This would address PostgreSQL vector dimension mismatch, not PostgreSQL cosine operator class alignment. D:Allowlist and install the supported vector extension in that database before creating vector columns and indexes. This would address PostgreSQL pgvector extension installation, not PostgreSQL cosine operator class alignment.
Question 332 An AI recommendations table grows to several million rows; a plain ORDER BY embedding distance LIMIT 10 query scans the entire vector column and misses latency targets. What is the most targeted next step after confirming the cause? Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. Allowlist and install the supported vector extension in that database before creating vector columns and indexes. Explanation Correct Answer C:Evaluate and build an HNSW or IVFFlat index with the matching distance operator and acceptable recall targets. EXPLAIN ANALYZE shows an expensive sequential vector distance scan with no compatible approximate-nearest-neighbor index. Incorrect Answers A:Use a dimension-compatible storage design or compatible embedding output and migrate existing vectors deliberately. This would address PostgreSQL vector dimension mismatch, not PostgreSQL approximate-neighbor indexing. B:Create or select an appropriate ANN index with the cosine operator class matching the production query's distance operator. This would address PostgreSQL cosine operator class alignment, not PostgreSQL approximate-neighbor indexing. D:Allowlist and install the supported vector extension in that database before creating vector columns and indexes. This would address PostgreSQL pgvector extension installation, not PostgreSQL approximate-neighbor indexing.
Question 333 A RAG service stores rich per-document metadata in a JSONB column and frequently filters for a nested accessLevel value; these filters scan many rows. Which corrective action is most appropriate for this situation? Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. Explanation Correct Answer D:Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. EXPLAIN ANALYZE shows repeated sequential scans for a JSONB containment predicate without a suitable GIN index. Incorrect Answers A:Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. This would address PostgreSQL large text chunk storage, not PostgreSQL metadata JSONB indexing. B:Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. This would address PostgreSQL document identifier uniqueness, not PostgreSQL metadata JSONB indexing. C:Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. This would address PostgreSQL timezone-aware timestamp modeling, not PostgreSQL metadata JSONB indexing.
Question 334 An ingestion process creates multiple embedding rows with the same upstream document ID, and later retrieval returns duplicate passages after message redelivery. What is the most targeted next step after confirming the cause? Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. Explanation Correct Answer B:Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. The embeddings table has no unique constraint on the upstream document key and duplicate business IDs exist. Incorrect Answers A:Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. This would address PostgreSQL metadata JSONB indexing, not PostgreSQL document identifier uniqueness. C:Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. This would address PostgreSQL timezone-aware timestamp modeling, not PostgreSQL document identifier uniqueness. D:Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. This would address PostgreSQL large text chunk storage, not PostgreSQL document identifier uniqueness.
Question 335 An Azure PostgreSQL audit table stores naive local timestamps for model events, and queries across two regions show confusing event order. Which corrective action is most appropriate for this situation? Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. Explanation Correct Answer A:Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. The column uses timestamp without time zone and the inserted values originate from different local time zones. Incorrect Answers B:Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. This would address PostgreSQL document identifier uniqueness, not PostgreSQL timezone-aware timestamp modeling. C:Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. This would address PostgreSQL large text chunk storage, not PostgreSQL timezone-aware timestamp modeling. D:Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. This would address PostgreSQL metadata JSONB indexing, not PostgreSQL timezone-aware timestamp modeling.
Question 336 A document-ingestion schema truncates extracted source passages to 255 characters before generating embeddings, despite longer paragraph input. What is the most targeted next step after confirming the cause? Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. Explanation Correct Answer B:Use a suitable PostgreSQL text storage type and keep explicit application-level chunk-size limits where needed. The table column is constrained to VARCHAR(255) and ingestion logs show discarded text beyond the field limit. Incorrect Answers A:Enforce a suitable unique key for source document identity and use an idempotent upsert pattern. This would address PostgreSQL document identifier uniqueness, not PostgreSQL large text chunk storage. C:Add an appropriate JSONB GIN index for the actual containment query and verify query-plan improvement. This would address PostgreSQL metadata JSONB indexing, not PostgreSQL large text chunk storage. D:Store normalized UTC or appropriate timezone-aware timestamps and convert only at presentation boundaries. This would address PostgreSQL timezone-aware timestamp modeling, not PostgreSQL large text chunk storage.
Question 337 A large HNSW index build on Azure PostgreSQL takes much longer after the graph no longer fits its configured maintenance work memory. Which corrective action is most appropriate for this situation? Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. Explanation Correct Answer A:Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. Index build logs indicate graph growth beyond maintenance_work_mem and progress slows significantly. Incorrect Answers B:Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. This would address PostgreSQL HNSW search recall parameter, not PostgreSQL HNSW build memory budget. C:Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. This would address PostgreSQL IVFFlat training before load, not PostgreSQL HNSW build memory budget. D:Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. This would address PostgreSQL stale query planner statistics, not PostgreSQL HNSW build memory budget.
Question 338 A team builds an IVFFlat index on a nearly empty PostgreSQL embedding table and later loads millions of documents; recall is unexpectedly poor. What is the most targeted next step after confirming the cause? Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. Explanation Correct Answer D:Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. The index was trained before representative vectors existed and the list partitioning does not reflect the loaded corpus. Incorrect Answers A:Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. This would address PostgreSQL stale query planner statistics, not PostgreSQL IVFFlat training before load. B:Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. This would address PostgreSQL HNSW search recall parameter, not PostgreSQL IVFFlat training before load. C:Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. This would address PostgreSQL HNSW build memory budget, not PostgreSQL IVFFlat training before load.
Question 339 An HNSW-backed recommendation query is fast but recall drops on complex user requests after the ef_search setting was lowered sharply. Which corrective action is most appropriate for this situation? Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. Explanation Correct Answer B:Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. A benchmark shows higher recall when the HNSW candidate-search breadth is increased on the same corpus. Incorrect Answers A:Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. This would address PostgreSQL IVFFlat training before load, not PostgreSQL HNSW search recall parameter. C:Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. This would address PostgreSQL HNSW build memory budget, not PostgreSQL HNSW search recall parameter. D:Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. This would address PostgreSQL stale query planner statistics, not PostgreSQL HNSW search recall parameter.
Question 340 After bulk loading embeddings, an indexed vector query unexpectedly switches to an inefficient plan with estimates far below the table's real size. What is the most targeted next step after confirming the cause? Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. Explanation Correct Answer C:Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics. EXPLAIN reports stale row-count estimates and the table has not been analyzed since the bulk import. Incorrect Answers A:Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall. This would address PostgreSQL IVFFlat training before load, not PostgreSQL stale query planner statistics. B:Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort. This would address PostgreSQL HNSW search recall parameter, not PostgreSQL stale query planner statistics. D:Tune maintenance_work_mem within the server's available memory and rebuild under a controlled capacity plan. This would address PostgreSQL HNSW build memory budget, not PostgreSQL stale query planner statistics.