McAfee-Secured Website

Exam Bundle

Exam Code: AI-200

Exam Name Developing AI Cloud Solutions on Azure

Certification Provider: Microsoft

Microsoft AI-200 Bundle $19.99

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!

  • Questions & Answers

    AI-200 Questions & Answers

    174 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual AI-200 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    AI-200 Study Guide

    153 PDF Pages

    Developed by industry experts, this 153-page guide spells out in painstaking detail all of the information you need to ace AI-200 exam.

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

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
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    174 Questions

    $124.99
  • Study Guide

    Study Guide

    153 PDF Pages

    $29.99

Microsoft AI-200 Practice Test 40

Question 390

A developer interpolates free-text metadata directly into a PostgreSQL search SQL string. What result MOST directly verifies that the solution works?

  1. Malicious filter text is treated as a value and legitimate search results remain correct.
  2. An unauthorized role cannot SELECT another tenant's rows even through a broad query.
  3. All returned nearest neighbors meet the date and tenant filters while ranking semantically.
  4. The query plan uses the intended index where beneficial and the result order is correct.

Explanation

Correct Answer

A:

Bound SQL parameters separate untrusted inputs from executable query syntax. The observed result “Malicious filter text is treated as a value and legitimate search results remain correct” would confirm the change “Use parameterized SQL queries through a supported PostgreSQL driver” in this situation: A developer interpolates free-text metadata directly into a PostgreSQL search SQL string.

Incorrect Answers

B:

Database-enforced row-level security protects data independently of application filter correctness. The situation here is: A developer interpolates free-text metadata directly into a PostgreSQL search SQL string. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

C:

PostgreSQL can combine relational filters with embedding distance queries. The situation here is: A developer interpolates free-text metadata directly into a PostgreSQL search SQL string. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

D:

ANN index use depends on compatible operators, query shape, and planner cost estimates. The situation here is: A developer interpolates free-text metadata directly into a PostgreSQL search SQL string. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

Question 391

A RAG service accepts external user filters and needs to avoid query injection. Which implementation is MOST appropriate for this requirement?

  1. Use parameterized SQL queries through a supported PostgreSQL driver.
  2. Implement appropriate PostgreSQL row-level security policies with tested role scoping.
  3. Combine vector distance ordering with parameterized SQL metadata predicates and appropriate indexes.
  4. Use an index-compatible ORDER BY distance operator and inspect EXPLAIN ANALYZE.

Explanation

Correct Answer

A:

Bound SQL parameters separate untrusted inputs from executable query syntax. For this situation—A RAG service accepts external user filters and needs to avoid query injection—the relevant response is “Use parameterized SQL queries through a supported PostgreSQL driver”. A useful confirmation is “Malicious filter text is treated as a value and legitimate search results remain correct”.

Incorrect Answers

B:

Database-enforced row-level security protects data independently of application filter correctness. That does not directly address the situation—A RAG service accepts external user filters and needs to avoid query injection. The more suitable choice is “Use parameterized SQL queries through a supported PostgreSQL driver”: Bound SQL parameters separate untrusted inputs from executable query syntax.

C:

PostgreSQL can combine relational filters with embedding distance queries. That does not directly address the situation—A RAG service accepts external user filters and needs to avoid query injection. The more suitable choice is “Use parameterized SQL queries through a supported PostgreSQL driver”: Bound SQL parameters separate untrusted inputs from executable query syntax.

D:

ANN index use depends on compatible operators, query shape, and planner cost estimates. That does not directly address the situation—A RAG service accepts external user filters and needs to avoid query injection. The more suitable choice is “Use parameterized SQL queries through a supported PostgreSQL driver”: Bound SQL parameters separate untrusted inputs from executable query syntax.

Question 392

A RAG service accepts external user filters and needs to avoid query injection. After the proposed remediation, what should be observed?

  1. An unauthorized role cannot SELECT another tenant's rows even through a broad query.
  2. All returned nearest neighbors meet the date and tenant filters while ranking semantically.
  3. Malicious filter text is treated as a value and legitimate search results remain correct.
  4. The query plan uses the intended index where beneficial and the result order is correct.

Explanation

Correct Answer

C:

Bound SQL parameters separate untrusted inputs from executable query syntax. The observed result “Malicious filter text is treated as a value and legitimate search results remain correct” would confirm the change “Use parameterized SQL queries through a supported PostgreSQL driver” in this situation: A RAG service accepts external user filters and needs to avoid query injection.

Incorrect Answers

A:

Database-enforced row-level security protects data independently of application filter correctness. The situation here is: A RAG service accepts external user filters and needs to avoid query injection. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

B:

PostgreSQL can combine relational filters with embedding distance queries. The situation here is: A RAG service accepts external user filters and needs to avoid query injection. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

D:

ANN index use depends on compatible operators, query shape, and planner cost estimates. The situation here is: A RAG service accepts external user filters and needs to avoid query injection. A test of this alternative would miss the specific outcome “Malicious filter text is treated as a value and legitimate search results remain correct”.

Question 393

A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. Which configuration should the engineer implement?

  1. Use a suitable asynchronous PostgreSQL driver or offload blocking database operations.
  2. Choose the pgvector operator and matching index operator class for the intended distance metric.
  3. Project only required result columns in the SQL retrieval query.
  4. Configure supported connection pooling with bounded pool sizes and sensible timeouts.

Explanation

Correct Answer

D:

Connection pools reuse expensive sessions and cap simultaneous database connections. For this situation—A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions—the relevant response is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”. A useful confirmation is “Active connections stay within server limits and query throughput improves”.

Incorrect Answers

A:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. That does not directly address the situation—A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

B:

Cosine, inner-product and Euclidean operators have distinct semantics and index classes. That does not directly address the situation—A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

C:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. That does not directly address the situation—A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

Question 394

A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. Which test result provides the strongest acceptance evidence?

  1. Concurrent requests remain responsive while waiting on independent SQL calls.
  2. A reference query ranks known neighbors correctly and can use the matching vector index.
  3. Query responses omit unused large vector values and network transfer decreases.
  4. Active connections stay within server limits and query throughput improves.

Explanation

Correct Answer

D:

Connection pools reuse expensive sessions and cap simultaneous database connections. The observed result “Active connections stay within server limits and query throughput improves” would confirm the change “Configure supported connection pooling with bounded pool sizes and sensible timeouts” in this situation: A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions.

Incorrect Answers

A:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. The situation here is: A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

B:

Cosine, inner-product and Euclidean operators have distinct semantics and index classes. The situation here is: A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

C:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. The situation here is: A Python service creates a new PostgreSQL connection for every embedding query and runs out of sessions. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

Question 395

A concurrent chat API repeatedly exhausts database connections despite idle clients. What change should the developer make FIRST to satisfy the stated need?

  1. Configure supported connection pooling with bounded pool sizes and sensible timeouts.
  2. Use a suitable asynchronous PostgreSQL driver or offload blocking database operations.
  3. Choose the pgvector operator and matching index operator class for the intended distance metric.
  4. Project only required result columns in the SQL retrieval query.

Explanation

Correct Answer

A:

Connection pools reuse expensive sessions and cap simultaneous database connections. For this situation—A concurrent chat API repeatedly exhausts database connections despite idle clients—the relevant response is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”. A useful confirmation is “Active connections stay within server limits and query throughput improves”.

Incorrect Answers

B:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. That does not directly address the situation—A concurrent chat API repeatedly exhausts database connections despite idle clients. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

C:

Cosine, inner-product and Euclidean operators have distinct semantics and index classes. That does not directly address the situation—A concurrent chat API repeatedly exhausts database connections despite idle clients. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

D:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. That does not directly address the situation—A concurrent chat API repeatedly exhausts database connections despite idle clients. The more suitable choice is “Configure supported connection pooling with bounded pool sizes and sensible timeouts”: Connection pools reuse expensive sessions and cap simultaneous database connections.

Question 396

A concurrent chat API repeatedly exhausts database connections despite idle clients. Which observation BEST confirms the intended behavior after the change?

  1. Active connections stay within server limits and query throughput improves.
  2. Concurrent requests remain responsive while waiting on independent SQL calls.
  3. A reference query ranks known neighbors correctly and can use the matching vector index.
  4. Query responses omit unused large vector values and network transfer decreases.

Explanation

Correct Answer

A:

Connection pools reuse expensive sessions and cap simultaneous database connections. The observed result “Active connections stay within server limits and query throughput improves” would confirm the change “Configure supported connection pooling with bounded pool sizes and sensible timeouts” in this situation: A concurrent chat API repeatedly exhausts database connections despite idle clients.

Incorrect Answers

B:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. The situation here is: A concurrent chat API repeatedly exhausts database connections despite idle clients. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

C:

Cosine, inner-product and Euclidean operators have distinct semantics and index classes. The situation here is: A concurrent chat API repeatedly exhausts database connections despite idle clients. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

D:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. The situation here is: A concurrent chat API repeatedly exhausts database connections despite idle clients. A test of this alternative would miss the specific outcome “Active connections stay within server limits and query throughput improves”.

Question 397

An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. Which implementation is MOST appropriate for this requirement?

  1. Configure supported high availability and validate failover behavior for the server tier.
  2. Tune supported HNSW search parameters such as ef_search and measure recall.
  3. Use a pgvector vector column with the correct declared dimensionality.
  4. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.

Explanation

Correct Answer

D:

Pool mode must match application reliance on session state and prepared statements. For this situation—An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure—the relevant response is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”. A useful confirmation is “Connection usage falls while transaction correctness and session semantics remain valid”.

Incorrect Answers

A:

High availability uses replicas and failover mechanisms to reduce disruption from infrastructure failures. That does not directly address the situation—An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

B:

HNSW search breadth influences accuracy and latency without changing embedding values. That does not directly address the situation—An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

C:

The pgvector vector type stores embeddings in a form suitable for native similarity operations. That does not directly address the situation—An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

Question 398

An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. After the proposed remediation, what should be observed?

  1. A controlled failover preserves data within expected bounds and the app reconnects.
  2. The validation set shows improved recall at the chosen performance budget.
  3. Inserted vectors of the expected length can be queried by distance operators.
  4. Connection usage falls while transaction correctness and session semantics remain valid.

Explanation

Correct Answer

D:

Pool mode must match application reliance on session state and prepared statements. The observed result “Connection usage falls while transaction correctness and session semantics remain valid” would confirm the change “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits” in this situation: An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure.

Incorrect Answers

A:

High availability uses replicas and failover mechanisms to reduce disruption from infrastructure failures. The situation here is: An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.

B:

HNSW search breadth influences accuracy and latency without changing embedding values. The situation here is: An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.

C:

The pgvector vector type stores embeddings in a form suitable for native similarity operations. The situation here is: An application issues thousands of short PostgreSQL transactions and the pooler adds connection pressure. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.

Question 399

A high-concurrency retrieval app wants efficient pooling for brief SQL operations. Which technical approach BEST addresses this problem?

  1. Configure supported high availability and validate failover behavior for the server tier.
  2. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.
  3. Tune supported HNSW search parameters such as ef_search and measure recall.
  4. Use a pgvector vector column with the correct declared dimensionality.

Explanation

Correct Answer

B:

Pool mode must match application reliance on session state and prepared statements. For this situation—A high-concurrency retrieval app wants efficient pooling for brief SQL operations—the relevant response is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”. A useful confirmation is “Connection usage falls while transaction correctness and session semantics remain valid”.

Incorrect Answers

A:

High availability uses replicas and failover mechanisms to reduce disruption from infrastructure failures. That does not directly address the situation—A high-concurrency retrieval app wants efficient pooling for brief SQL operations. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

C:

HNSW search breadth influences accuracy and latency without changing embedding values. That does not directly address the situation—A high-concurrency retrieval app wants efficient pooling for brief SQL operations. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

D:

The pgvector vector type stores embeddings in a form suitable for native similarity operations. That does not directly address the situation—A high-concurrency retrieval app wants efficient pooling for brief SQL operations. The more suitable choice is “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits”: Pool mode must match application reliance on session state and prepared statements.

Question 400

A high-concurrency retrieval app wants efficient pooling for brief SQL operations. What result MOST directly verifies that the solution works?

  1. A controlled failover preserves data within expected bounds and the app reconnects.
  2. The validation set shows improved recall at the chosen performance budget.
  3. Inserted vectors of the expected length can be queried by distance operators.
  4. Connection usage falls while transaction correctness and session semantics remain valid.

Explanation

Correct Answer

D:

Pool mode must match application reliance on session state and prepared statements. The observed result “Connection usage falls while transaction correctness and session semantics remain valid” would confirm the change “Choose appropriate connection-pool settings and transaction pooling where driver behavior permits” in this situation: A high-concurrency retrieval app wants efficient pooling for brief SQL operations.

Incorrect Answers

A:

High availability uses replicas and failover mechanisms to reduce disruption from infrastructure failures. The situation here is: A high-concurrency retrieval app wants efficient pooling for brief SQL operations. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.

B:

HNSW search breadth influences accuracy and latency without changing embedding values. The situation here is: A high-concurrency retrieval app wants efficient pooling for brief SQL operations. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.

C:

The pgvector vector type stores embeddings in a form suitable for native similarity operations. The situation here is: A high-concurrency retrieval app wants efficient pooling for brief SQL operations. A test of this alternative would miss the specific outcome “Connection usage falls while transaction correctness and session semantics remain valid”.