McAfee Secured

Exam Code: AI-200

Exam Name: Developing AI Cloud Solutions on Azure

Certification Provider: Microsoft

100% Microsoft AI-200 Guaranteed Success With Testking Training Materials

Get Real AI-200 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

174 Questions & Answers with Testing Engine

"Developing AI Cloud Solutions on Azure Exam", also known as AI-200 exam, is a Microsoft certification exam.

Pass your tests with the always up-to-date AI-200 Exam Engine. Your AI-200 training materials keep you at the head of the pack!

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Was: $137.49
Now: $124.99

Microsoft AI-200 Practice Test 35

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?

  1. Load representative embeddings before building or deliberately rebuild the IVFFlat index and retest recall.
  2. Tune hnsw.ef_search against latency and recall benchmarks instead of accepting the lowest default search effort.
  3. Run appropriate ANALYZE or autovacuum maintenance and inspect plan selection after updated statistics.
  4. 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.

Question 341

A Python inference service creates one new Azure PostgreSQL connection for every embedding query and starts receiving too-many-connections errors under burst traffic. Which corrective action is most appropriate for this situation?

  1. Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname.
  2. Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request.
  3. Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely.
  4. Finish or rollback database transactions before slow external model calls and keep transactions short.

Explanation

Correct Answer

B:

Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request. Server metrics show active connections approaching max_connections and many short-lived application sessions.

Incorrect Answers

A:

Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname. This would address PostgreSQL TLS certificate trust, not PostgreSQL connection exhaustion.

C:

Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely. This would address PostgreSQL pool transaction-state leakage, not PostgreSQL connection exhaustion.

D:

Finish or rollback database transactions before slow external model calls and keep transactions short. This would address PostgreSQL idle-in-transaction sessions, not PostgreSQL connection exhaustion.

Question 342

A backend reuses a pooled PostgreSQL connection after an error without issuing ROLLBACK, and subsequent vector queries fail with current transaction aborted. What is the most targeted next step after confirming the cause?

  1. Finish or rollback database transactions before slow external model calls and keep transactions short.
  2. Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely.
  3. Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname.
  4. Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request.

Explanation

Correct Answer

B:

Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely. The connection remains in a failed transaction state when returned to the pool, and the next query inherits that state.

Incorrect Answers

A:

Finish or rollback database transactions before slow external model calls and keep transactions short. This would address PostgreSQL idle-in-transaction sessions, not PostgreSQL pool transaction-state leakage.

C:

Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname. This would address PostgreSQL TLS certificate trust, not PostgreSQL pool transaction-state leakage.

D:

Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request. This would address PostgreSQL connection exhaustion, not PostgreSQL pool transaction-state leakage.

Question 343

An AI batch processor opens transactions to read embeddings, then waits for remote model inference before committing, holding locks for minutes. Which corrective action is most appropriate for this situation?

  1. Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely.
  2. Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request.
  3. Finish or rollback database transactions before slow external model calls and keep transactions short.
  4. Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname.

Explanation

Correct Answer

C:

Finish or rollback database transactions before slow external model calls and keep transactions short. Database activity lists many idle in transaction sessions during external AI calls and shows retained transaction age.

Incorrect Answers

A:

Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely. This would address PostgreSQL pool transaction-state leakage, not PostgreSQL idle-in-transaction sessions.

B:

Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request. This would address PostgreSQL connection exhaustion, not PostgreSQL idle-in-transaction sessions.

D:

Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname. This would address PostgreSQL TLS certificate trust, not PostgreSQL idle-in-transaction sessions.

Question 344

A new Python worker reaches the Azure PostgreSQL endpoint but fails connection establishment after certificate verification is enabled. What is the most targeted next step after confirming the cause?

  1. Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely.
  2. Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname.
  3. Finish or rollback database transactions before slow external model calls and keep transactions short.
  4. Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request.

Explanation

Correct Answer

B:

Install the correct trusted CA chain and use a supported verify-full TLS configuration with a matching server hostname. The client reports certificate verify failed even though DNS and the TCP handshake succeed.

Incorrect Answers

A:

Rollback failed transactions before connection reuse or configure the pool to reset transaction state safely. This would address PostgreSQL pool transaction-state leakage, not PostgreSQL TLS certificate trust.

C:

Finish or rollback database transactions before slow external model calls and keep transactions short. This would address PostgreSQL idle-in-transaction sessions, not PostgreSQL TLS certificate trust.

D:

Use bounded connection pooling and sensible client concurrency limits rather than opening a connection per request. This would address PostgreSQL connection exhaustion, not PostgreSQL TLS certificate trust.

Question 345

An embedding search database shows high disk latency during mixed vector search and ingestion while CPU usage remains moderate. Which corrective action is most appropriate for this situation?

  1. Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets.
  2. Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning.
  3. Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery.
  4. Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory.

Explanation

Correct Answer

B:

Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning. Azure PostgreSQL storage metrics show sustained IOPS or throughput saturation at the provisioned storage limit.

Incorrect Answers

A:

Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets. This would address PostgreSQL CPU bottleneck from exact vector scans, not PostgreSQL storage IOPS saturation.

C:

Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery. This would address PostgreSQL storage capacity exhaustion, not PostgreSQL storage IOPS saturation.

D:

Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory. This would address PostgreSQL memory sort spill, not PostgreSQL storage IOPS saturation.

Question 346

A metadata-filtered vector query orders a large intermediate result and spills temporary sort files to disk after its working memory was reduced. What is the most targeted next step after confirming the cause?

  1. Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning.
  2. Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory.
  3. Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets.
  4. Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery.

Explanation

Correct Answer

B:

Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory. EXPLAIN ANALYZE reports external merge or temporary-disk sort operations during the affected query.

Incorrect Answers

A:

Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning. This would address PostgreSQL storage IOPS saturation, not PostgreSQL memory sort spill.

C:

Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets. This would address PostgreSQL CPU bottleneck from exact vector scans, not PostgreSQL memory sort spill.

D:

Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery. This would address PostgreSQL storage capacity exhaustion, not PostgreSQL memory sort spill.

Question 347

A PostgreSQL flexible server storing new embedding batches begins rejecting writes after a burst of vector ingestion fills the allocated storage. Which corrective action is most appropriate for this situation?

  1. Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory.
  2. Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets.
  3. Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning.
  4. Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery.

Explanation

Correct Answer

D:

Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery. Azure monitoring shows storage utilization at its limit and database logs report no space left on device.

Incorrect Answers

A:

Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory. This would address PostgreSQL memory sort spill, not PostgreSQL storage capacity exhaustion.

B:

Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets. This would address PostgreSQL CPU bottleneck from exact vector scans, not PostgreSQL storage capacity exhaustion.

C:

Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning. This would address PostgreSQL storage IOPS saturation, not PostgreSQL storage capacity exhaustion.

Question 348

An Azure PostgreSQL RAG service experiences long query latency, with high CPU and full vector distance scans even though disk usage is low. What is the most targeted next step after confirming the cause?

  1. Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery.
  2. Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning.
  3. Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets.
  4. Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory.

Explanation

Correct Answer

C:

Introduce a suitable indexed approximate retrieval strategy and tune compute or concurrency using measured recall targets. Query plans show repeated exact distance computations across many rows and server CPU is saturated.

Incorrect Answers

A:

Increase or enable appropriate storage expansion with a capacity plan, then resume controlled ingestion after recovery. This would address PostgreSQL storage capacity exhaustion, not PostgreSQL CPU bottleneck from exact vector scans.

B:

Measure and adjust storage performance capacity or reduce avoidable I/O through indexing and workload tuning. This would address PostgreSQL storage IOPS saturation, not PostgreSQL CPU bottleneck from exact vector scans.

D:

Improve the query and indexing plan and consider a bounded work_mem adjustment based on concurrent workload memory. This would address PostgreSQL memory sort spill, not PostgreSQL CPU bottleneck from exact vector scans.

Question 349

A multi-tenant RAG endpoint ranks PostgreSQL pgvector candidates but applies its tenant visibility filter only after sending them to the application. Which corrective action is most appropriate for this situation?

  1. Add a server-side tenant and permission predicate to the metadata filter before returning vector candidates.
  2. Bind the authenticated principal's tenant identifier rather than an untrusted request value.
  3. Revoke extraneous grants and confine the role to required schemas and tables.
  4. Enable and test RLS enforcement for the intended database roles and policies.

Explanation

Correct Answer

A:

Add a server-side tenant and permission predicate to the metadata filter before returning vector candidates. SQL query text contains vector ordering but no authenticated tenant predicate prior to results being fetched.

Incorrect Answers

B:

Bind the authenticated principal's tenant identifier rather than an untrusted request value. This would address PostgreSQL wrong tenant partition parameter, not PostgreSQL authorization predicate in RAG query.

C:

Revoke extraneous grants and confine the role to required schemas and tables. This would address PostgreSQL role grants overbroad schema access, not PostgreSQL authorization predicate in RAG query.

D:

Enable and test RLS enforcement for the intended database roles and policies. This would address PostgreSQL row-level security not enabled, not PostgreSQL authorization predicate in RAG query.

Question 350

A pgvector query uses an approximate index with a highly selective department filter and returns fewer than the expected top five records. What is the most targeted next step after confirming the cause?

  1. Use a validated relevance threshold or abstention rule along with top-k selection and metadata constraints.
  2. Store retrievable source identifiers and version metadata with embedding records and pass it through RAG output.
  3. Add a server-side tenant and permission predicate to the metadata filter before returning vector candidates.
  4. Tune supported iterative ANN scanning or candidate-search parameters and test recall for selective metadata filters.

Explanation

Correct Answer

D:

Tune supported iterative ANN scanning or candidate-search parameters and test recall for selective metadata filters. A query plan applies the department predicate after a limited ANN candidate scan, discarding most candidates.

Incorrect Answers

A:

Use a validated relevance threshold or abstention rule along with top-k selection and metadata constraints. This would address PostgreSQL similarity threshold calibration, not PostgreSQL filtered ANN candidate shortage.

B:

Store retrievable source identifiers and version metadata with embedding records and pass it through RAG output. This would address PostgreSQL embedding provenance metadata, not PostgreSQL filtered ANN candidate shortage.

C:

Add a server-side tenant and permission predicate to the metadata filter before returning vector candidates. This would address PostgreSQL authorization predicate in RAG query, not PostgreSQL filtered ANN candidate shortage.

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