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 48

Question 470

A multi-tenant chat service needs to forbid readers from accessing other tenant documents even if developers omit a WHERE clause. What result MOST directly verifies that the solution works?

  1. An unauthorized role cannot SELECT another tenant's rows even through a broad query.
  2. A controlled cross-tenant test cannot retrieve rows outside the caller's authorized scope.
  3. The database accepts vector columns and a nearest-neighbor query over a test embedding.
  4. Query responses omit unused large vector values and network transfer decreases.

Explanation

Correct Answer

A:

Database-enforced row-level security protects data independently of application filter correctness. The observed result “An unauthorized role cannot SELECT another tenant's rows even through a broad query” would confirm the change “Implement appropriate PostgreSQL row-level security policies with tested role scoping” in this situation: A multi-tenant chat service needs to forbid readers from accessing other tenant documents even if developers omit a WHERE clause.

Incorrect Answers

B:

Vector similarity does not replace SQL tenant isolation or database authorization. The situation here is: A multi-tenant chat service needs to forbid readers from accessing other tenant documents even if developers omit a WHERE clause. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

C:

The pgvector extension adds vector data types and similarity operators to PostgreSQL. The situation here is: A multi-tenant chat service needs to forbid readers from accessing other tenant documents even if developers omit a WHERE clause. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

D:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. The situation here is: A multi-tenant chat service needs to forbid readers from accessing other tenant documents even if developers omit a WHERE clause. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

Question 471

A security review finds query-layer tenant filters could be bypassed by accidental SQL. Which implementation is MOST appropriate for this requirement?

  1. Include a bound tenant predicate and enforce row-level access controls as appropriate.
  2. Enable the supported vector extension on Azure Database for PostgreSQL Flexible Server.
  3. Project only required result columns in the SQL retrieval query.
  4. Implement appropriate PostgreSQL row-level security policies with tested role scoping.

Explanation

Correct Answer

D:

Database-enforced row-level security protects data independently of application filter correctness. For this situation—A security review finds query-layer tenant filters could be bypassed by accidental SQL—the relevant response is “Implement appropriate PostgreSQL row-level security policies with tested role scoping”. A useful confirmation is “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

Incorrect Answers

A:

Vector similarity does not replace SQL tenant isolation or database authorization. That does not directly address the situation—A security review finds query-layer tenant filters could be bypassed by accidental SQL. The more suitable choice is “Implement appropriate PostgreSQL row-level security policies with tested role scoping”: Database-enforced row-level security protects data independently of application filter correctness.

B:

The pgvector extension adds vector data types and similarity operators to PostgreSQL. That does not directly address the situation—A security review finds query-layer tenant filters could be bypassed by accidental SQL. The more suitable choice is “Implement appropriate PostgreSQL row-level security policies with tested role scoping”: Database-enforced row-level security protects data independently of application filter correctness.

C:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. That does not directly address the situation—A security review finds query-layer tenant filters could be bypassed by accidental SQL. The more suitable choice is “Implement appropriate PostgreSQL row-level security policies with tested role scoping”: Database-enforced row-level security protects data independently of application filter correctness.

Question 472

A security review finds query-layer tenant filters could be bypassed by accidental SQL. After the proposed remediation, what should be observed?

  1. A controlled cross-tenant test cannot retrieve rows outside the caller's authorized scope.
  2. An unauthorized role cannot SELECT another tenant's rows even through a broad query.
  3. The database accepts vector columns and a nearest-neighbor query over a test embedding.
  4. Query responses omit unused large vector values and network transfer decreases.

Explanation

Correct Answer

B:

Database-enforced row-level security protects data independently of application filter correctness. The observed result “An unauthorized role cannot SELECT another tenant's rows even through a broad query” would confirm the change “Implement appropriate PostgreSQL row-level security policies with tested role scoping” in this situation: A security review finds query-layer tenant filters could be bypassed by accidental SQL.

Incorrect Answers

A:

Vector similarity does not replace SQL tenant isolation or database authorization. The situation here is: A security review finds query-layer tenant filters could be bypassed by accidental SQL. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

C:

The pgvector extension adds vector data types and similarity operators to PostgreSQL. The situation here is: A security review finds query-layer tenant filters could be bypassed by accidental SQL. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

D:

Reducing projected columns limits serialization and transport overhead from high-dimensional data. The situation here is: A security review finds query-layer tenant filters could be bypassed by accidental SQL. A test of this alternative would miss the specific outcome “An unauthorized role cannot SELECT another tenant's rows even through a broad query”.

Question 473

A retrieval endpoint runs long vector scans and ties up all database workers. Which configuration should the engineer implement?

  1. Configure suitable per-session statement timeouts and query limits.
  2. Create suitable PostgreSQL JSONB GIN or expression indexes for supported predicates.
  3. Select a supported embedding size and re-embed the stored corpus and queries consistently.
  4. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.

Explanation

Correct Answer

A:

Statement timeouts constrain runaway SQL execution and preserve capacity for other queries. For this situation—A retrieval endpoint runs long vector scans and ties up all database workers—the relevant response is “Configure suitable per-session statement timeouts and query limits”. A useful confirmation is “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

Incorrect Answers

B:

GIN or expression indexes can speed supported JSONB queries over flexible metadata. That does not directly address the situation—A retrieval endpoint runs long vector scans and ties up all database workers. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

C:

Embedding dimensionality changes require consistent re-encoding; truncating stored vectors ad hoc is unsafe. That does not directly address the situation—A retrieval endpoint runs long vector scans and ties up all database workers. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

D:

Pool mode must match application reliance on session state and prepared statements. That does not directly address the situation—A retrieval endpoint runs long vector scans and ties up all database workers. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

Question 474

A retrieval endpoint runs long vector scans and ties up all database workers. Which test result provides the strongest acceptance evidence?

  1. A deliberately expensive test query terminates at the configured limit without exhausting the pool.
  2. A representative JSONB filter uses the index where appropriate and returns the expected documents.
  3. All rows and queries have the new dimension and a benchmark meets recall objectives.
  4. Connection usage falls while transaction correctness and session semantics remain valid.

Explanation

Correct Answer

A:

Statement timeouts constrain runaway SQL execution and preserve capacity for other queries. The observed result “A deliberately expensive test query terminates at the configured limit without exhausting the pool” would confirm the change “Configure suitable per-session statement timeouts and query limits” in this situation: A retrieval endpoint runs long vector scans and ties up all database workers.

Incorrect Answers

B:

GIN or expression indexes can speed supported JSONB queries over flexible metadata. The situation here is: A retrieval endpoint runs long vector scans and ties up all database workers. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

C:

Embedding dimensionality changes require consistent re-encoding; truncating stored vectors ad hoc is unsafe. The situation here is: A retrieval endpoint runs long vector scans and ties up all database workers. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

D:

Pool mode must match application reliance on session state and prepared statements. The situation here is: A retrieval endpoint runs long vector scans and ties up all database workers. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

Question 475

A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. What change should the developer make FIRST to satisfy the stated need?

  1. Create suitable PostgreSQL JSONB GIN or expression indexes for supported predicates.
  2. Select a supported embedding size and re-embed the stored corpus and queries consistently.
  3. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.
  4. Configure suitable per-session statement timeouts and query limits.

Explanation

Correct Answer

D:

Statement timeouts constrain runaway SQL execution and preserve capacity for other queries. For this situation—A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely—the relevant response is “Configure suitable per-session statement timeouts and query limits”. A useful confirmation is “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

Incorrect Answers

A:

GIN or expression indexes can speed supported JSONB queries over flexible metadata. That does not directly address the situation—A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

B:

Embedding dimensionality changes require consistent re-encoding; truncating stored vectors ad hoc is unsafe. That does not directly address the situation—A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

C:

Pool mode must match application reliance on session state and prepared statements. That does not directly address the situation—A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. The more suitable choice is “Configure suitable per-session statement timeouts and query limits”: Statement timeouts constrain runaway SQL execution and preserve capacity for other queries.

Question 476

A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. Which observation BEST confirms the intended behavior after the change?

  1. A representative JSONB filter uses the index where appropriate and returns the expected documents.
  2. All rows and queries have the new dimension and a benchmark meets recall objectives.
  3. Connection usage falls while transaction correctness and session semantics remain valid.
  4. A deliberately expensive test query terminates at the configured limit without exhausting the pool.

Explanation

Correct Answer

D:

Statement timeouts constrain runaway SQL execution and preserve capacity for other queries. The observed result “A deliberately expensive test query terminates at the configured limit without exhausting the pool” would confirm the change “Configure suitable per-session statement timeouts and query limits” in this situation: A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely.

Incorrect Answers

A:

GIN or expression indexes can speed supported JSONB queries over flexible metadata. The situation here is: A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

B:

Embedding dimensionality changes require consistent re-encoding; truncating stored vectors ad hoc is unsafe. The situation here is: A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

C:

Pool mode must match application reliance on session state and prepared statements. The situation here is: A PostgreSQL service needs to bound costly searches rather than allow requests to hang indefinitely. A test of this alternative would miss the specific outcome “A deliberately expensive test query terminates at the configured limit without exhausting the pool”.

Question 477

A Python application uses synchronous SQL calls inside an asynchronous request handler. Which implementation is MOST appropriate for this requirement?

  1. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.
  2. Use a suitable asynchronous PostgreSQL driver or offload blocking database operations.
  3. Add unique source/chunk identifiers and use an idempotent INSERT ... ON CONFLICT strategy.
  4. Implement bounded connection retries with backoff and rebuild invalid connection-pool entries.

Explanation

Correct Answer

B:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. For this situation—A Python application uses synchronous SQL calls inside an asynchronous request handler—the relevant response is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”. A useful confirmation is “Concurrent requests remain responsive while waiting on independent SQL calls”.

Incorrect Answers

A:

Pool mode must match application reliance on session state and prepared statements. That does not directly address the situation—A Python application uses synchronous SQL calls inside an asynchronous request handler. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

C:

Unique constraints and upserts make ingestion retry-safe at the relational persistence boundary. That does not directly address the situation—A Python application uses synchronous SQL calls inside an asynchronous request handler. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

D:

Resilient drivers distinguish transient session failures from permanent SQL or authentication errors. That does not directly address the situation—A Python application uses synchronous SQL calls inside an asynchronous request handler. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

Question 478

A Python application uses synchronous SQL calls inside an asynchronous request handler. After the proposed remediation, what should be observed?

  1. Connection usage falls while transaction correctness and session semantics remain valid.
  2. Repeated processing does not multiply identical chunk records and changed versions update correctly.
  3. Queries recover after a simulated reconnectable outage without unbounded retry storms.
  4. Concurrent requests remain responsive while waiting on independent SQL calls.

Explanation

Correct Answer

D:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. The observed result “Concurrent requests remain responsive while waiting on independent SQL calls” would confirm the change “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations” in this situation: A Python application uses synchronous SQL calls inside an asynchronous request handler.

Incorrect Answers

A:

Pool mode must match application reliance on session state and prepared statements. The situation here is: A Python application uses synchronous SQL calls inside an asynchronous request handler. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.

B:

Unique constraints and upserts make ingestion retry-safe at the relational persistence boundary. The situation here is: A Python application uses synchronous SQL calls inside an asynchronous request handler. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.

C:

Resilient drivers distinguish transient session failures from permanent SQL or authentication errors. The situation here is: A Python application uses synchronous SQL calls inside an asynchronous request handler. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.

Question 479

A high-concurrency vector API stops serving other clients during long database waits. Which technical approach BEST addresses this problem?

  1. Choose appropriate connection-pool settings and transaction pooling where driver behavior permits.
  2. Add unique source/chunk identifiers and use an idempotent INSERT ... ON CONFLICT strategy.
  3. Use a suitable asynchronous PostgreSQL driver or offload blocking database operations.
  4. Implement bounded connection retries with backoff and rebuild invalid connection-pool entries.

Explanation

Correct Answer

C:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. For this situation—A high-concurrency vector API stops serving other clients during long database waits—the relevant response is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”. A useful confirmation is “Concurrent requests remain responsive while waiting on independent SQL calls”.

Incorrect Answers

A:

Pool mode must match application reliance on session state and prepared statements. That does not directly address the situation—A high-concurrency vector API stops serving other clients during long database waits. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

B:

Unique constraints and upserts make ingestion retry-safe at the relational persistence boundary. That does not directly address the situation—A high-concurrency vector API stops serving other clients during long database waits. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

D:

Resilient drivers distinguish transient session failures from permanent SQL or authentication errors. That does not directly address the situation—A high-concurrency vector API stops serving other clients during long database waits. The more suitable choice is “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations”: Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency.

Question 480

A high-concurrency vector API stops serving other clients during long database waits. What result MOST directly verifies that the solution works?

  1. Connection usage falls while transaction correctness and session semantics remain valid.
  2. Repeated processing does not multiply identical chunk records and changed versions update correctly.
  3. Concurrent requests remain responsive while waiting on independent SQL calls.
  4. Queries recover after a simulated reconnectable outage without unbounded retry storms.

Explanation

Correct Answer

C:

Blocking database I/O in an event loop can serialize unrelated requests and inflate tail latency. The observed result “Concurrent requests remain responsive while waiting on independent SQL calls” would confirm the change “Use a suitable asynchronous PostgreSQL driver or offload blocking database operations” in this situation: A high-concurrency vector API stops serving other clients during long database waits.

Incorrect Answers

A:

Pool mode must match application reliance on session state and prepared statements. The situation here is: A high-concurrency vector API stops serving other clients during long database waits. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.

B:

Unique constraints and upserts make ingestion retry-safe at the relational persistence boundary. The situation here is: A high-concurrency vector API stops serving other clients during long database waits. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.

D:

Resilient drivers distinguish transient session failures from permanent SQL or authentication errors. The situation here is: A high-concurrency vector API stops serving other clients during long database waits. A test of this alternative would miss the specific outcome “Concurrent requests remain responsive while waiting on independent SQL calls”.