McAfee Secure

Microsoft AI-200 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 2

Question 10

An internal knowledge assistant stores document embeddings and metadata in Cosmos DB for NoSQL. It must retrieve nearest-neighbor passages by embedding and filter results to the current tenant. Which design directly supports this?

  1. Sort documents by creation timestamp and treat the newest as the closest semantic match
  2. Configure supported Cosmos DB vector indexing/search and apply the tenant filter to vector retrieval
  3. Hash document text to integer IDs and use exact key lookup as semantic search
  4. Read all embeddings into each API worker and compare them locally on every request

Explanation

Correct Answer

B:

The vector search capability evaluates embeddings while a tenant predicate constrains the result scope.

Incorrect Answers

A:

Recency is not a measure of vector similarity.

C:

Hash equality finds exact matches and does not recover semantic nearest neighbors.

D:

Full client scans add transfer, cost and isolation risk and bypass available database search capabilities.

Question 11

A recommendation pipeline must update embeddings when product records are created or modified in Cosmos DB. Several workers need to divide processing and resume without reprocessing the entire container after a restart. What mechanism should the team adopt?

  1. A fixed timer that re-reads every item each minute
  2. An HTTP polling loop that stores no checkpoint
  3. A change feed processor with a lease container and checkpoint handling
  4. An Azure DNS private zone change notification

Explanation

Correct Answer

C:

The change feed processor uses leases/checkpoints to coordinate workers and resume from progress.

Incorrect Answers

A:

Repeated full scans waste throughput and do not provide reliable progress coordination.

B:

Stateless polling lacks checkpoint and partition lease coordination.

D:

DNS changes describe name resolution, not Cosmos item mutations.

Question 12

A Python RAG service queries Azure Database for PostgreSQL for a user-supplied document ID. Database credentials are supplied securely, and all calls must use encrypted connections. Which implementation is the strongest default?

  1. Construct SQL by adding the raw document ID directly into a string
  2. Turn off server certificate checks on all outbound database connections
  3. Store a static password in a committed source file and use cleartext connections
  4. Use a PostgreSQL client such as psycopg with SQL parameters and validated TLS connectivity

Explanation

Correct Answer

D:

Parameterized SQL and TLS address both query safety and protected database transport.

Incorrect Answers

A:

SQL string interpolation risks injection and breaks on special characters.

B:

Disabling certificate verification removes protection from man-in-the-middle endpoints.

C:

Committed credentials and unencrypted traffic violate stated security constraints.

Question 13

A PostgreSQL-backed retrieval API repeatedly executes queries of the form WHERE tenant_id = ? ORDER BY created_at DESC LIMIT 25 against a large table. Which schema/index design is the best first candidate to benchmark?

  1. A B-tree index on (tenant_id, created_at DESC) alongside correctly typed columns
  2. A B-tree index only on an unrelated display_name column
  3. Store created_at as free-form text to avoid date conversions
  4. Remove every index and rely on sequential scans

Explanation

Correct Answer

A:

A composite index matching equality scope and sort order can support efficient tenant-bounded recent-item retrieval.

Incorrect Answers

B:

An index on an unused column does not serve the filtering/sorting pattern.

C:

Unstructured timestamps impair reliable ordering and type validation.

D:

For a large filtered and ordered table, no indexing often forces expensive scans and sorts.

Question 14

A PostgreSQL pgvector store has millions of embeddings. Exact distance sorting is correct but too slow for interactive recommendations, and the team accepts a measured recall/latency tradeoff. Which option should the engineers benchmark?

  1. Disable the vector column and sort by primary key
  2. Build a suitable pgvector HNSW index using the chosen distance operator class, then evaluate recall and latency
  3. Duplicate every vector as a large JSON string and perform text LIKE searches
  4. Increase connection timeouts without changing the search plan

Explanation

Correct Answer

B:

HNSW is an approximate vector index that can trade additional index/storage effort for faster nearest-neighbor retrieval.

Incorrect Answers

A:

Primary keys have no semantic distance meaning.

C:

Text substring search is not geometric vector similarity.

D:

Longer timeouts tolerate slowness but do not reduce vector computation.

Question 15

An Azure Database for PostgreSQL Flexible Server powers a large pgvector index. During peak traffic, the service shows memory pressure, index-page reads and high p95 query latency. What is the most defensible capacity response?

  1. Disable all query latency metrics and assume the index is healthy
  2. Increase only the application timeout indefinitely
  3. Profile query plans, memory and I/O, then size compute/RAM/storage and index settings using measured peak workload
  4. Reduce the size of the connection pool to zero and retry every request

Explanation

Correct Answer

C:

A measured workload determines whether indexes, RAM, IOPS or compute constrain query performance.

Incorrect Answers

A:

Hiding telemetry cannot correct memory and I/O limits.

B:

Time-out changes mask user-visible latency without addressing saturated resources.

D:

A zero connection pool prevents queries rather than solving index capacity.

Question 16

A legal knowledge retrieval service uses pgvector and contains documents from multiple business tenants. The app must find the nearest passages but never return a passage belonging to another tenant. Which query pattern is appropriate?

  1. Run a global vector query and allow the language model to decide which tenant is relevant
  2. Order by file name without applying a tenant predicate
  3. Apply tenant filtering only after the generated answer is shown
  4. Constrain candidates by tenant in the database query, order by vector distance, and limit the result set

Explanation

Correct Answer

D:

Database-side tenant predicates and vector distance ordering preserve the retrieval scope before response generation.

Incorrect Answers

A:

The model cannot enforce database authorization boundaries when retrieval mixes tenant data.

B:

File names do not provide semantic ranking or tenant segregation.

C:

Post-generation filtering leaks source text into untrusted retrieval and model context.

Question 17

A serverless Python document processor creates a fresh PostgreSQL connection for every small embedding lookup. Under spikes, the database spends excessive effort authenticating thousands of short-lived sessions. Which mitigation is most appropriate?

  1. Use a bounded connection pool or compatible pooling proxy and measure pool/DB limits
  2. Raise the maximum connections without any capacity analysis
  3. Open two connections for each single query
  4. Write one permanent database password into every Function log event

Explanation

Correct Answer

A:

Connection reuse reduces handshakes and controls concurrent session pressure under bursts.

Incorrect Answers

B:

Raising limits alone can overwhelm server memory and does not reduce connection churn.

C:

Multiplying short sessions aggravates the bottleneck.

D:

Logging credentials neither improves throughput nor protects the database.

Question 18

A customer support copilot caches tenant-specific product descriptions in Azure Managed Redis. Data is updated several times per day and must not remain stale indefinitely. Which caching pattern best addresses correctness?

  1. Never expire any cache key because Redis is in-memory
  2. Use tenant-scoped keys with an appropriate TTL plus explicit invalidation on relevant source updates
  3. Use only the same global cache key for all tenants
  4. Delete the authoritative database when the cache expires

Explanation

Correct Answer

B:

TTL limits staleness and event-driven invalidation refreshes high-change entries while tenant-scoped keys preserve separation.

Incorrect Answers

A:

Unbounded retention can serve stale responses long after source content changes.

C:

A shared cross-tenant key risks returning another tenant’s content.

D:

Cache expiry should not destroy the underlying source of truth.

Question 19

A search service stores embeddings in Azure Managed Redis. The query needs nearest-neighbor results with a category filter; the team has chosen cosine distance for its model. Which implementation fits the requirement?

  1. Use a Redis string counter as the vector-distance engine
  2. Sort record IDs lexicographically and omit the embedding field
  3. Create an appropriate Redis vector-capable index with a matching distance metric and query it with metadata constraints
  4. Use a DNS TXT record to store each vector and issue DNS comparisons

Explanation

Correct Answer

C:

A vector index and supported filtered KNN query implement semantic search with category scoping.

Incorrect Answers

A:

Counters do not represent vector geometry or approximate-neighbor indexing.

B:

Record names have no necessary relationship to embedding similarity.

D:

DNS is a name-resolution system, not an embedding similarity store.

Question 20

An invoice classification queue uses Azure Service Bus. A malformed message is retried until it exceeds MaxDeliveryCount, after which normal processing stops; operations needs to inspect and repair the item safely. Which operational process is correct?

  1. Discard the queue namespace to stop retries
  2. Increase API request timeouts for unrelated Functions
  3. Read the malformed message from the active queue as though it were still ready for first delivery
  4. Inspect the subscription or queue dead-letter subqueue and reason, correct the issue and resubmit idempotently

Explanation

Correct Answer

D:

The DLQ preserves failed messages and diagnostic metadata for reviewed repair and safe replay.

Incorrect Answers

A:

Removing the namespace destroys unrelated messages and is not a targeted recovery workflow.

B:

HTTP timeouts do not recover a message already dead-lettered.

C:

After dead-lettering the message is not in the normal active delivery path.