100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 330
A RAG backend receives a new embedding-model version with a different vector dimension. After deciding to store the new embeddings in a schema or column with the new dimension and migrate deliberately, what configuration is most relevant?
- Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
- Run a bounded exact vector distance query on a representative dataset and retain its top-K IDs.
- Create a compatible vector index schema with the embedding field and chosen distance metric.
- Create a versioned embedding column or table and rebuild its corresponding dimension-matched index.
Explanation
Correct Answer
D:Create a versioned embedding column or table and rebuild its corresponding dimension-matched index. This is the actionable setup step for the selected design. Fixed-dimension pgvector columns reject vectors of an incompatible dimension.
Incorrect Answers
A:Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls. Instead, create a versioned embedding column or table and rebuild its corresponding dimension-matched index.
B:Run a bounded exact vector distance query on a representative dataset and retain its top-K IDs. Instead, create a versioned embedding column or table and rebuild its corresponding dimension-matched index.
C:Create a compatible vector index schema with the embedding field and chosen distance metric. Instead, create a versioned embedding column or table and rebuild its corresponding dimension-matched index.
Question 331
A RAG backend receives a new embedding-model version with a different vector dimension. Which validation result is the strongest evidence that the intended behavior works?
- Queries for the new model operate on the matching vector dimension without coercion errors.
- Known product-code queries retrieve exact identifiers while semantic paraphrases still find similar items.
- Index creation uses the intended loaded dataset and representative queries meet the recall target.
- New or updated items trigger the callback and persist the expected transformed record.
Explanation
Correct Answer
A:Queries for the new model operate on the matching vector dimension without coercion errors. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Fixed-dimension pgvector columns reject vectors of an incompatible dimension.
Incorrect Answers
B:Known product-code queries retrieve exact identifiers while semantic paraphrases still find similar items. Here, queries for the new model operate on the matching vector dimension without coercion errors.
C:Index creation uses the intended loaded dataset and representative queries meet the recall target. Here, queries for the new model operate on the matching vector dimension without coercion errors.
D:New or updated items trigger the callback and persist the expected transformed record. Here, queries for the new model operate on the matching vector dimension without coercion errors.
Question 332
A RAG backend receives a new embedding-model version with a different vector dimension. Production telemetry shows: Ingestion fails when new embeddings are inserted into an older fixed-dimension vector column. Which underlying issue should be investigated first?
- The application sends more simultaneous queries than database compute and pool capacity support.
- The new model emits vectors with different dimensions than the existing column.
- The similarity query ignores the active-state or freshness filter.
- The workflow used an upsert operation where strict create-only semantics were required.
Explanation
Correct Answer
B:The new model emits vectors with different dimensions than the existing column. The described symptom and this root cause fit together. Fixed-dimension pgvector columns reject vectors of an incompatible dimension.
Incorrect Answers
A:The application sends more simultaneous queries than database compute and pool capacity support. Here, the new model emits vectors with different dimensions than the existing column.
C:The similarity query ignores the active-state or freshness filter. Here, the new model emits vectors with different dimensions than the existing column.
D:The workflow used an upsert operation where strict create-only semantics were required. Here, the new model emits vectors with different dimensions than the existing column.
Question 333
A team wants to reduce PostgreSQL retrieval latency but does not know whether its planner uses the HNSW index. Which design decision should the team make first?
- Use ORDER BY the vector distance together with LIMIT 10 in SQL.
- Prefer HNSW for an index that can be built before the collection contains training rows.
- Use the Cosmos DB change feed processor to react to inserted and updated items.
- Inspect the actual query plan instead of assuming the index is active.
Explanation
Correct Answer
D:Inspect the actual query plan instead of assuming the index is active. It directly addresses the architecture in this case. EXPLAIN ANALYZE reveals the actual plan and execution cost to diagnose index usage.
Incorrect Answers
A:Use ORDER BY the vector distance together with LIMIT 10 in SQL. Bounded SQL nearest-neighbor retrieval constrains result size for the downstream model. Instead, inspect the actual query plan instead of assuming the index is active.
B:Prefer HNSW for an index that can be built before the collection contains training rows. HNSW does not require IVFFlat-style clustering training and can be created before loading data. Instead, inspect the actual query plan instead of assuming the index is active.
C:Use the Cosmos DB change feed processor to react to inserted and updated items. The change feed processor tracks progress with leases and checkpoints to support resumed processing. Instead, inspect the actual query plan instead of assuming the index is active.
Question 334
A team wants to reduce PostgreSQL retrieval latency but does not know whether its planner uses the HNSW index. Which concrete setup step puts this selected approach into operation: Inspect the actual query plan instead of assuming the index is active.
- Run EXPLAIN ANALYZE on a representative distance search with LIMIT N.
- Pass the category and tenant ID as bound parameters to the PostgreSQL driver.
- Cache tenant-scoped top-K result IDs with a suitable TTL and invalidate them after relevant updates.
- Store the cache entry under a versioned key with an appropriate expiration interval.
Explanation
Correct Answer
A:Run EXPLAIN ANALYZE on a representative distance search with LIMIT N. This is the actionable setup step for the selected design. EXPLAIN ANALYZE reveals the actual plan and execution cost to diagnose index usage.
Incorrect Answers
B:Pass the category and tenant ID as bound parameters to the PostgreSQL driver. Instead, run EXPLAIN ANALYZE on a representative distance search with LIMIT N.
C:Cache tenant-scoped top-K result IDs with a suitable TTL and invalidate them after relevant updates. Instead, run EXPLAIN ANALYZE on a representative distance search with LIMIT N.
D:Store the cache entry under a versioned key with an appropriate expiration interval. Instead, run EXPLAIN ANALYZE on a representative distance search with LIMIT N.
Question 335
A team wants to reduce PostgreSQL retrieval latency but does not know whether its planner uses the HNSW index. What outcome should be checked before the engineering change is accepted?
- The index exists before ingestion and subsequent nearest-neighbor queries use it as data arrives.
- The plan and timing confirm whether the expected vector index is used.
- Queries compare vectors from the same model version and pass model-specific retrieval tests.
- Returned nearest neighbors all belong to the caller's authorized tenant.
Explanation
Correct Answer
B:The plan and timing confirm whether the expected vector index is used. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. EXPLAIN ANALYZE reveals the actual plan and execution cost to diagnose index usage.
Incorrect Answers
A:The index exists before ingestion and subsequent nearest-neighbor queries use it as data arrives. Here, the plan and timing confirm whether the expected vector index is used.
C:Queries compare vectors from the same model version and pass model-specific retrieval tests. Here, the plan and timing confirm whether the expected vector index is used.
D:Returned nearest neighbors all belong to the caller's authorized tenant. Here, the plan and timing confirm whether the expected vector index is used.
Question 336
A team wants to reduce PostgreSQL retrieval latency but does not know whether its planner uses the HNSW index. After rollout the observed failure is: Query latency does not improve after indexing a large embedding table. What best explains it?
- The IVFFlat index was built before sufficient representative vectors were loaded.
- The IVFFlat index was created before representative data was available.
- The planner selected a sequential scan or the query shape cannot use the ANN index.
- The application incorrectly treats ephemeral cache entries as its only authoritative copy.
Explanation
Correct Answer
C:The planner selected a sequential scan or the query shape cannot use the ANN index. The described symptom and this root cause fit together. EXPLAIN ANALYZE reveals the actual plan and execution cost to diagnose index usage.
Incorrect Answers
A:The IVFFlat index was built before sufficient representative vectors were loaded. Here, the planner selected a sequential scan or the query shape cannot use the ANN index.
B:The IVFFlat index was created before representative data was available. Here, the planner selected a sequential scan or the query shape cannot use the ANN index.
D:The application incorrectly treats ephemeral cache entries as its only authoritative copy. Here, the planner selected a sequential scan or the query shape cannot use the ANN index.
Question 337
A client requests the ten best semantic matches but receives the entire collection ordered by similarity. Which architecture most directly addresses the required outcome?
- Use ORDER BY the vector distance together with LIMIT 10 in SQL.
- Design a hybrid workflow that combines lexical filtering or full-text search with vector candidates.
- Tune IVFFlat probes to trade lookup speed for recall under the measured workload.
- Include an authorization-scoped tenant identifier in each Redis cache key.
Explanation
Correct Answer
A:Use ORDER BY the vector distance together with LIMIT 10 in SQL. It directly addresses the architecture in this case. Bounded SQL nearest-neighbor retrieval constrains result size for the downstream model.
Incorrect Answers
B:Design a hybrid workflow that combines lexical filtering or full-text search with vector candidates. Hybrid retrieval can combine lexical and semantic evidence for different query types. Instead, use ORDER BY the vector distance together with LIMIT 10 in SQL.
C:Tune IVFFlat probes to trade lookup speed for recall under the measured workload. IVFFlat probes determines how many candidate lists are considered during search. Instead, use ORDER BY the vector distance together with LIMIT 10 in SQL.
D:Include an authorization-scoped tenant identifier in each Redis cache key. Cache identity must include security-relevant context when serving personalized results. Instead, use ORDER BY the vector distance together with LIMIT 10 in SQL.
Question 338
A client requests the ten best semantic matches but receives the entire collection ordered by similarity. The team has selected this architecture: Use ORDER BY the vector distance together with LIMIT 10 in SQL. Which action correctly implements it?
- Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
- Add LIMIT 10 after the vector similarity ordering in the SELECT statement.
- Order by the supported vector distance operator with LIMIT N without forcing approximate indexing.
- Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
Explanation
Correct Answer
B:Add LIMIT 10 after the vector similarity ordering in the SELECT statement. This is the actionable setup step for the selected design. Bounded SQL nearest-neighbor retrieval constrains result size for the downstream model.
Incorrect Answers
A:Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls. Instead, add LIMIT 10 after the vector similarity ordering in the SELECT statement.
C:Order by the supported vector distance operator with LIMIT N without forcing approximate indexing. Instead, add LIMIT 10 after the vector similarity ordering in the SELECT statement.
D:Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record. Instead, add LIMIT 10 after the vector similarity ordering in the SELECT statement.
Question 339
A client requests the ten best semantic matches but receives the entire collection ordered by similarity. After configuring the solution, which measurable result would demonstrate success?
- P95 retrieval latency stabilizes and active connection counts stay within the approved bound.
- Query latency and CPU saturation improve at a tested higher compute size.
- Only ten best-ranking candidate rows are returned for the representative query.
- Identical questions from different tenants resolve to different cache entries.
Explanation
Correct Answer
C:Only ten best-ranking candidate rows are returned for the representative query. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Bounded SQL nearest-neighbor retrieval constrains result size for the downstream model.
Incorrect Answers
A:P95 retrieval latency stabilizes and active connection counts stay within the approved bound. Here, only ten best-ranking candidate rows are returned for the representative query.
B:Query latency and CPU saturation improve at a tested higher compute size. Here, only ten best-ranking candidate rows are returned for the representative query.
D:Identical questions from different tenants resolve to different cache entries. Here, only ten best-ranking candidate rows are returned for the representative query.
Question 340
A client requests the ten best semantic matches but receives the entire collection ordered by similarity. During a trial, the team sees this problem: An inference request reads thousands of rows despite only ten prompts being needed. Which cause is most consistent?
- The application interpolates unescaped user input into executable SQL.
- The planner selected a sequential scan or the query shape cannot use the ANN index.
- The application replaced items without an ETag-based conditional write.
- The SQL query omitted the LIMIT clause after vector ordering.
Explanation
Correct Answer
D:The SQL query omitted the LIMIT clause after vector ordering. The described symptom and this root cause fit together. Bounded SQL nearest-neighbor retrieval constrains result size for the downstream model.
Incorrect Answers
A:The application interpolates unescaped user input into executable SQL. Here, the SQL query omitted the LIMIT clause after vector ordering.
B:The planner selected a sequential scan or the query shape cannot use the ANN index. Here, the SQL query omitted the LIMIT clause after vector ordering.
C:The application replaced items without an ETag-based conditional write. Here, the SQL query omitted the LIMIT clause after vector ordering.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests