100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 300
A new pgvector table initially has zero data but the team wants an approximate index without performing IVFFlat training. After rollout the observed failure is: An IVFFlat search has poor performance because the index was trained on too little representative data. What best explains it?
- No exhaustive ground-truth comparison was performed for the retrieval quality test.
- The IVFFlat index was built before sufficient representative vectors were loaded.
- The application opens unpooled concurrent database connections beyond the server connection limit.
- The supplied partition key differs from the item's stored logical partition key.
Explanation
Correct Answer
B:The IVFFlat index was built before sufficient representative vectors were loaded. The described symptom and this root cause fit together. HNSW does not require IVFFlat-style clustering training and can be created before loading data.
Incorrect Answers
A:No exhaustive ground-truth comparison was performed for the retrieval quality test. Here, the IVFFlat index was built before sufficient representative vectors were loaded.
C:The application opens unpooled concurrent database connections beyond the server connection limit. Here, the IVFFlat index was built before sufficient representative vectors were loaded.
D:The supplied partition key differs from the item's stored logical partition key. Here, the IVFFlat index was built before sufficient representative vectors were loaded.
Question 301
A retrieval service stores JSON metadata alongside embeddings and filters on a frequent product-category key. Which architecture most directly addresses the required outcome?
- Use a fixed 1536-dimensional vector column within the relevant pgvector indexing constraints.
- Use a pgvector HNSW index with the matching distance operator class.
- Tune memory allocation and eviction policies for the intended cache workload.
- Use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate.
Explanation
Correct Answer
D:Use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate. It directly addresses the architecture in this case. A vector index does not replace the need to index frequently filtered relational or JSON metadata.
Incorrect Answers
A:Use a fixed 1536-dimensional vector column within the relevant pgvector indexing constraints. Pgvector indexing supports defined dimensional ranges and the column type must match the model output. Instead, use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate.
B:Use a pgvector HNSW index with the matching distance operator class. pgvector index use depends on matching the query distance operator and index operator class. Instead, use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate.
C:Tune memory allocation and eviction policies for the intended cache workload. Redis eviction behavior is determined by memory limits and policy, separately from TTL. Instead, use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate.
Question 302
A retrieval service stores JSON metadata alongside embeddings and filters on a frequent product-category key. The team has selected this architecture: Use an appropriate PostgreSQL JSONB or expression index for the selective metadata predicate. Which action correctly implements it?
- Add a suitable index on the frequently queried JSONB metadata path while retaining the vector index.
- Create a PostgreSQL HNSW index on the vector column using the query's chosen metric operator class.
- Add a time or active-state WHERE filter using an indexed document metadata column.
- Create a compatible vector index schema with the embedding field and chosen distance metric.
Explanation
Correct Answer
A:Add a suitable index on the frequently queried JSONB metadata path while retaining the vector index. This is the actionable setup step for the selected design. A vector index does not replace the need to index frequently filtered relational or JSON metadata.
Incorrect Answers
B:Create a PostgreSQL HNSW index on the vector column using the query's chosen metric operator class. Instead, add a suitable index on the frequently queried JSONB metadata path while retaining the vector index.
C:Add a time or active-state WHERE filter using an indexed document metadata column. Instead, add a suitable index on the frequently queried JSONB metadata path while retaining the vector index.
D:Create a compatible vector index schema with the embedding field and chosen distance metric. Instead, add a suitable index on the frequently queried JSONB metadata path while retaining the vector index.
Question 303
A retrieval service stores JSON metadata alongside embeddings and filters on a frequent product-category key. After configuring the solution, which measurable result would demonstrate success?
- The index exists before ingestion and subsequent nearest-neighbor queries use it as data arrives.
- EXPLAIN shows that the metadata predicate avoids unnecessary full-table filtering.
- EXPLAIN confirms appropriate index usage on representative nearest-neighbor queries.
- A known vector query succeeds on the new index with the required dimensions.
Explanation
Correct Answer
B:EXPLAIN shows that the metadata predicate avoids unnecessary full-table filtering. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. A vector index does not replace the need to index frequently filtered relational or JSON metadata.
Incorrect Answers
A:The index exists before ingestion and subsequent nearest-neighbor queries use it as data arrives. The relevant SQL or system operation is EXPLAIN shows that the metadata predicate avoids unnecessary full-table filtering.
C:EXPLAIN confirms appropriate index usage on representative nearest-neighbor queries. The relevant SQL or system operation is EXPLAIN shows that the metadata predicate avoids unnecessary full-table filtering.
D:A known vector query succeeds on the new index with the required dimensions. The relevant SQL or system operation is EXPLAIN shows that the metadata predicate avoids unnecessary full-table filtering.
Question 304
A retrieval service stores JSON metadata alongside embeddings and filters on a frequent product-category key. During a trial, the team sees this problem: Tenant/category filtering consumes most query time despite a fast vector distance computation. Which cause is most consistent?
- Approximate index search trades some recall for speed rather than ensuring exact top-K.
- The new model emits vectors with different dimensions than the existing column.
- The frequent metadata filter lacks a selective supporting index.
- Both independent workflows unintentionally share the same lease coordination identity.
Explanation
Correct Answer
C:The frequent metadata filter lacks a selective supporting index. The described symptom and this root cause fit together. A vector index does not replace the need to index frequently filtered relational or JSON metadata.
Incorrect Answers
A:Approximate index search trades some recall for speed rather than ensuring exact top-K. Here, the frequent metadata filter lacks a selective supporting index.
B:The new model emits vectors with different dimensions than the existing column. Here, the frequent metadata filter lacks a selective supporting index.
D:Both independent workflows unintentionally share the same lease coordination identity. Here, the frequent metadata filter lacks a selective supporting index.
Question 305
A model service opens many short PostgreSQL connections and exhausts the database connection budget. What primary technical approach is best justified by these constraints?
- Use an appropriate connection pool rather than opening a server connection per request.
- Keep embedding-model versions explicit and avoid ranking vectors from incompatible model spaces together.
- Store freshness metadata and include it as a predicate in the similarity query.
- Use a supported vector embedding policy with a DiskANN vector index on the embedding property.
Explanation
Correct Answer
A:Use an appropriate connection pool rather than opening a server connection per request. It directly addresses the architecture in this case. Connection pooling reduces connection creation overhead and controls concurrent server sessions.
Incorrect Answers
B:Keep embedding-model versions explicit and avoid ranking vectors from incompatible model spaces together. Embedding similarity only has meaningful interpretation for compatible model spaces. Instead, use an appropriate connection pool rather than opening a server connection per request.
C:Store freshness metadata and include it as a predicate in the similarity query. Vector search alone does not enforce document lifecycle conditions. Instead, use an appropriate connection pool rather than opening a server connection per request.
D:Use a supported vector embedding policy with a DiskANN vector index on the embedding property. DiskANN and quantizedFlat require enough vectors to establish useful indexing; small collections can scan. Instead, use an appropriate connection pool rather than opening a server connection per request.
Question 306
A model service opens many short PostgreSQL connections and exhausts the database connection budget. After deciding to use an appropriate connection pool rather than opening a server connection per request, what configuration is most relevant?
- Add LIMIT 10 after the vector similarity ordering in the SELECT statement.
- Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
- Stage and load the representative embeddings, then build and analyze the IVFFlat index.
- Define the container partition key as the immutable customerId property and pass that key in point operations.
Explanation
Correct Answer
B:Configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls. This is the actionable setup step for the selected design. Connection pooling reduces connection creation overhead and controls concurrent server sessions.
Incorrect Answers
A:Add LIMIT 10 after the vector similarity ordering in the SELECT statement. Instead, configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
C:Stage and load the representative embeddings, then build and analyze the IVFFlat index. Instead, configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
D:Define the container partition key as the immutable customerId property and pass that key in point operations. Instead, configure a bounded client pool or supported PgBouncer connection pooling for bursty inference calls.
Question 307
A model service opens many short PostgreSQL connections and exhausts the database connection budget. Which validation result is the strongest evidence that the intended behavior works?
- The plan and timing confirm whether the expected vector index is used.
- A secure connection is established and a parameterized test query succeeds.
- Database active connections remain bounded while request throughput improves.
- Deploying a new model produces a cache miss rather than the old model's answer.
Explanation
Correct Answer
C:Database active connections remain bounded while request throughput improves. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Connection pooling reduces connection creation overhead and controls concurrent server sessions.
Incorrect Answers
A:The plan and timing confirm whether the expected vector index is used. Here, database active connections remain bounded while request throughput improves.
B:A secure connection is established and a parameterized test query succeeds. Here, database active connections remain bounded while request throughput improves.
D:Deploying a new model produces a cache miss rather than the old model's answer. Here, database active connections remain bounded while request throughput improves.
Question 308
A model service opens many short PostgreSQL connections and exhausts the database connection budget. Production telemetry shows: Queries intermittently fail with too many clients already even though database CPU is moderate. Which underlying issue should be investigated first?
- The SQL query omitted the region predicate or failed to bind it to the current request.
- The SQL query omitted the LIMIT clause after vector ordering.
- The code issued separate operations instead of one same-partition transactional batch.
- The application opens unpooled concurrent database connections beyond the server connection limit.
Explanation
Correct Answer
D:The application opens unpooled concurrent database connections beyond the server connection limit. The described symptom and this root cause fit together. Connection pooling reduces connection creation overhead and controls concurrent server sessions.
Incorrect Answers
A:The SQL query omitted the region predicate or failed to bind it to the current request. Here, the application opens unpooled concurrent database connections beyond the server connection limit.
B:The SQL query omitted the LIMIT clause after vector ordering. Here, the application opens unpooled concurrent database connections beyond the server connection limit.
C:The code issued separate operations instead of one same-partition transactional batch. Here, the application opens unpooled concurrent database connections beyond the server connection limit.
Question 309
A Python service must connect securely to PostgreSQL with credentials that vary by environment. Which design decision should the team make first?
- Measure exact nearest-neighbor results as the recall ground truth.
- Use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation.
- Keep embedding-model versions explicit and avoid ranking vectors from incompatible model spaces together.
- Combine the tenant predicate with vector similarity ordering in the Cosmos DB NoSQL query.
Explanation
Correct Answer
B:Use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation. It directly addresses the architecture in this case. Database drivers need appropriate TLS configuration when connecting to secured PostgreSQL endpoints.
Incorrect Answers
A:Measure exact nearest-neighbor results as the recall ground truth. ANN recall assessment requires reference results from exact search or equivalent ground truth. Instead, use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation.
C:Keep embedding-model versions explicit and avoid ranking vectors from incompatible model spaces together. Embedding similarity only has meaningful interpretation for compatible model spaces. Instead, use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation.
D:Combine the tenant predicate with vector similarity ordering in the Cosmos DB NoSQL query. Vector ranking does not itself enforce tenant isolation or metadata filtering. Instead, use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation.
Question 310
A Python service must connect securely to PostgreSQL with credentials that vary by environment. Which concrete setup step puts this selected approach into operation: Use the PostgreSQL SDK/driver with environment-provided connection settings and TLS validation.
- Declare the vector dimension precisely and create an HNSW index using the desired distance operator class.
- Run a bounded exact vector distance query on a representative dataset and retain its top-K IDs.
- Create a driver connection using the authorized connection URI and required SSL mode or certificate verification.
- Preserve and supply the appropriate session token through the Cosmos DB SDK request workflow.
Explanation
Correct Answer
C:Create a driver connection using the authorized connection URI and required SSL mode or certificate verification. This is the actionable setup step for the selected design. Database drivers need appropriate TLS configuration when connecting to secured PostgreSQL endpoints.
Incorrect Answers
A:Declare the vector dimension precisely and create an HNSW index using the desired distance operator class. Instead, create a driver connection using the authorized connection URI and required SSL mode or certificate verification.
B:Run a bounded exact vector distance query on a representative dataset and retain its top-K IDs. Instead, create a driver connection using the authorized connection URI and required SSL mode or certificate verification.
D:Preserve and supply the appropriate session token through the Cosmos DB SDK request workflow. Instead, create a driver connection using the authorized connection URI and required SSL mode or certificate verification.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests