Microsoft AI-200 Practice Test 42 - Prepaway
Practice Exams:

Pass Microsoft AI-200 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers!

30 Days Free Updates, Instant Download!

Verified By Experts
Premium Bundle
$14.99
$94.99 $109.98

AI-200 Premium Bundle


  • Premium File 174 Questions & Answers. Last update: Nov 28, 2026
  • Study Guide 153 Pages

Microsoft AI-200 Practice Test 42

Question 410

A conversational AI service makes many small sequential Redis calls for independent retrieval metadata and network round trips dominate its latency. Which security principle best explains why the proposed response fits the case?

  1. Hybrid vector filtering adds structural constraints to approximate similarity and reduces inappropriate cache reuse.
  2. Batching independent cache operations can reduce round-trip overhead without changing data semantics.
  3. TTL-based caching trades freshness for reduced repeated computation and must include relevant context in keys.
  4. An in-memory cache's eviction policy and capacity determine how frequently cached results survive.

Explanation

Correct Answer

B:

Batching independent cache operations can reduce round-trip overhead without changing data semantics. The completion signal is: A controlled benchmark reduces network wait without changing application results or timeout handling.

Incorrect Answers

A:

Hybrid vector filtering adds structural constraints to approximate similarity and reduces inappropriate cache reuse. The completion signal is: A controlled benchmark reduces network wait without changing application results or timeout handling. Batching independent cache operations can reduce round-trip overhead without changing data semantics.

C:

TTL-based caching trades freshness for reduced repeated computation and must include relevant context in keys. The completion signal is: A controlled benchmark reduces network wait without changing application results or timeout handling. Batching independent cache operations can reduce round-trip overhead without changing data semantics.

D:

An in-memory cache's eviction policy and capacity determine how frequently cached results survive. The completion signal is: A controlled benchmark reduces network wait without changing application results or timeout handling. Batching independent cache operations can reduce round-trip overhead without changing data semantics.

Question 411

A multi-tenant RAG service uses only the prompt text as a Redis cache key and risks returning one customer's retrieved context to another. Which evidence would MOST directly substantiate the reported gap?

  1. Vector records exist in Redis but no searchable vector field or index schema has been configured.
  2. Similarity queries return an embedding match whose department metadata does not match the caller.
  3. Two distinct tenant sessions map to the same cache key for an identical question.
  4. Tracing shows identical requests repeatedly access the database and call the embedding service.

Explanation

Correct Answer

C:

Two distinct tenant sessions map to the same cache key for an identical question. Cache keys are part of a data isolation boundary when results depend on user or tenant permissions.

Incorrect Answers

A:

Vector records exist in Redis but no searchable vector field or index schema has been configured. Cache keys are part of a data isolation boundary when results depend on user or tenant permissions. Two distinct tenant sessions map to the same cache key for an identical question.

B:

Similarity queries return an embedding match whose department metadata does not match the caller. Cache keys are part of a data isolation boundary when results depend on user or tenant permissions. Two distinct tenant sessions map to the same cache key for an identical question.

D:

Tracing shows identical requests repeatedly access the database and call the embedding service. Cache keys are part of a data isolation boundary when results depend on user or tenant permissions. Two distinct tenant sessions map to the same cache key for an identical question.

Question 412

A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index. Choose TWO: one appropriate technical intervention and one observable acceptance check for this case.

  1. Top-k queries use the intended index and meet an agreed speed-versus-recall target.
  2. Plan and execute a controlled schema migration to a matching vector dimension and re-embed or segregate incompatible data.
  3. The new embedding records persist and similarity results are based on vectors of one compatible dimension.
  4. Enable the allowed pgvector extension in the supported PostgreSQL server and then define a dimensioned vector column.
  5. Create and tune a supported HNSW index using the cosine operator class and validate recall and query plan.

Explanation

Correct Answers

A:

Top-k queries use the intended index and meet an agreed speed-versus-recall target. A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index.

E:

Create and tune a supported HNSW index using the cosine operator class and validate recall and query plan. A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index.

Incorrect Answers

B:

Plan and execute a controlled schema migration to a matching vector dimension and re-embed or segregate incompatible data. A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index. Create and tune a supported HNSW index using the cosine operator class and validate recall and query plan.

C:

The new embedding records persist and similarity results are based on vectors of one compatible dimension. A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index. Top-k queries use the intended index and meet an agreed speed-versus-recall target.

D:

Enable the allowed pgvector extension in the supported PostgreSQL server and then define a dimensioned vector column. A PostgreSQL pgvector table has 600000 vectors and ORDER BY embedding cosine distance is too slow without an approximate index. Create and tune a supported HNSW index using the cosine operator class and validate recall and query plan.

Question 413

After a deployment, an Azure Functions app remains unhealthy and even its timer functions do not start because the host storage setting is invalid. What evidence should be examined to narrow the cause?

  1. Invocation completes successfully while writes appear in an unexpected destination container.
  2. Application Insights shows execution durations approaching the configured function timeout.
  3. Storage creates blob events but the function only executes on a periodic schedule.
  4. Function host logs report storage configuration or lease errors before any user function is invoked.

Explanation

Correct Answer

D:

Function host logs report storage configuration or lease errors before any user function is invoked. Function host runtime dependencies can fail before application code executes.

Incorrect Answers

A:

Invocation completes successfully while writes appear in an unexpected destination container. Function host runtime dependencies can fail before application code executes. Function host logs report storage configuration or lease errors before any user function is invoked.

B:

Application Insights shows execution durations approaching the configured function timeout. Function host runtime dependencies can fail before application code executes. Function host logs report storage configuration or lease errors before any user function is invoked.

C:

Storage creates blob events but the function only executes on a periodic schedule. Function host runtime dependencies can fail before application code executes. Function host logs report storage configuration or lease errors before any user function is invoked.

Question 414

An AKS inference pod requires a credential stored in Key Vault, but the team wants to avoid putting a permanent token in a Kubernetes Secret. Which outcome would demonstrate that the control meets its stated goal?

  1. The function retrieves the authorized test secret through the private endpoint while internet access remains disabled.
  2. A test pod receives the needed secret securely and a neighboring unauthorized pod is denied.
  3. A rehearsal rotates both sides with no unauthorized exposure and restores service on validation failure.
  4. The recovered secret is available to authorized callers and its access audit is recorded.

Explanation

Correct Answer

B:

A test pod receives the needed secret securely and a neighboring unauthorized pod is denied.

Incorrect Answers

A:

The function retrieves the authorized test secret through the private endpoint while internet access remains disabled. A test pod receives the needed secret securely and a neighboring unauthorized pod is denied.

C:

A rehearsal rotates both sides with no unauthorized exposure and restores service on validation failure. A test pod receives the needed secret securely and a neighboring unauthorized pod is denied.

D:

The recovered secret is available to authorized callers and its access audit is recorded. A test pod receives the needed secret securely and a neighboring unauthorized pod is denied.

Question 415

An AI ingestion event must independently trigger both audit archiving and embedding generation, but the current queue allows only one worker to take it. What concept is most relevant to understanding the decision?

  1. Service Bus queues support competing-consumer work distribution, unlike pub-sub fan-out to subscriptions.
  2. Topic subscriptions give multiple consumer groups separate delivery and retry state.
  3. Service Bus sessions provide an ordered stream per session rather than global ordering across all users.
  4. PeekLock gives at-least-once processing semantics unless the application makes effects idempotent.

Explanation

Correct Answer

B:

Topic subscriptions give multiple consumer groups separate delivery and retry state. An AI ingestion event must independently trigger both audit archiving and embedding generation, but the current queue allows only one worker to take it.

Incorrect Answers

A:

Service Bus queues support competing-consumer work distribution, unlike pub-sub fan-out to subscriptions. An AI ingestion event must independently trigger both audit archiving and embedding generation, but the current queue allows only one worker to take it. Topic subscriptions give multiple consumer groups separate delivery and retry state.

C:

Service Bus sessions provide an ordered stream per session rather than global ordering across all users. An AI ingestion event must independently trigger both audit archiving and embedding generation, but the current queue allows only one worker to take it. Topic subscriptions give multiple consumer groups separate delivery and retry state.

D:

PeekLock gives at-least-once processing semantics unless the application makes effects idempotent. An AI ingestion event must independently trigger both audit archiving and embedding generation, but the current queue allows only one worker to take it. Topic subscriptions give multiple consumer groups separate delivery and retry state.

Question 416

A document-classification API is deployed with the mutable latest image tag, and an emergency redeployment unexpectedly starts different code. Select TWO statements: the most appropriate corrective action and its direct verification result.

  1. A redeploy starts the approved digest and the image can be traced to its build commit.
  2. Publish a tested image with an immutable digest or specific release tag and deploy the exact approved reference.
  3. A controlled base update launches the task and produces a new candidate image for review.
  4. Configure the app's expected container port and ensure the server binds to the reachable interface and listening port.
  5. Enable supported App Service container logging, inspect application exceptions, and correlate startup and request logs.

Explanation

Correct Answers

A:

A redeploy starts the approved digest and the image can be traced to its build commit. Reproducible container deployments depend on an identified artifact rather than a mutable tag.

B:

Publish a tested image with an immutable digest or specific release tag and deploy the exact approved reference. Reproducible container deployments depend on an identified artifact rather than a mutable tag. A redeploy starts the approved digest and the image can be traced to its build commit.

Incorrect Answers

C:

A controlled base update launches the task and produces a new candidate image for review. Reproducible container deployments depend on an identified artifact rather than a mutable tag. A redeploy starts the approved digest and the image can be traced to its build commit.

D:

Configure the app's expected container port and ensure the server binds to the reachable interface and listening port. Reproducible container deployments depend on an identified artifact rather than a mutable tag. Publish a tested image with an immutable digest or specific release tag and deploy the exact approved reference.

E:

Enable supported App Service container logging, inspect application exceptions, and correlate startup and request logs. Reproducible container deployments depend on an identified artifact rather than a mutable tag. Publish a tested image with an immutable digest or specific release tag and deploy the exact approved reference. A redeploy starts the approved digest and the image can be traced to its build commit.

Question 417

A Python inference endpoint inserts user-provided project identifiers directly into a PostgreSQL WHERE clause and a review flags unsafe query concatenation. What concept is most relevant to understanding the decision?

  1. Relational indexing strategy should follow actual predicates, row distribution, and sort requirements.
  2. Parameterized SQL separates untrusted values from executable statement syntax.
  3. Connection pooling reuses expensive database connections and must be sized against backend resource limits.
  4. A hybrid relational and JSONB schema balances structure, flexibility, and indexable access patterns.

Explanation

Correct Answer

B:

Parameterized SQL separates untrusted values from executable statement syntax. The completion signal is: Synthetic SQL control characters are stored or compared as data without altering query structure.

Incorrect Answers

A:

Relational indexing strategy should follow actual predicates, row distribution, and sort requirements. The completion signal is: Synthetic SQL control characters are stored or compared as data without altering query structure. Parameterized SQL separates untrusted values from executable statement syntax.

C:

Connection pooling reuses expensive database connections and must be sized against backend resource limits. The completion signal is: Synthetic SQL control characters are stored or compared as data without altering query structure. Parameterized SQL separates untrusted values from executable statement syntax.

D:

A hybrid relational and JSONB schema balances structure, flexibility, and indexable access patterns. The completion signal is: Synthetic SQL control characters are stored or compared as data without altering query structure. Parameterized SQL separates untrusted values from executable statement syntax.

Question 418

A RAG ingestion admin screen filters 2000000 metadata records by organization_id and created_at but is slower after data growth. What evidence should be examined to narrow the cause?

  1. Lock and query latency telemetry coincide with an index rebuild started during the busiest hours.
  2. Maintenance metrics show index build pressure and vector-query latency exceeding budget.
  3. EXPLAIN shows a large exact scan and sort instead of an approximate vector index path.
  4. The plan scans most rows while filtering and sorting results for each narrow tenant request.

Explanation

Correct Answer

D:

The plan scans most rows while filtering and sorting results for each narrow tenant request. Relational indexing strategy should follow actual predicates, row distribution, and sort requirements.

Incorrect Answers

A:

Lock and query latency telemetry coincide with an index rebuild started during the busiest hours. Relational indexing strategy should follow actual predicates, row distribution, and sort requirements. The plan scans most rows while filtering and sorting results for each narrow tenant request.

B:

Maintenance metrics show index build pressure and vector-query latency exceeding budget. Relational indexing strategy should follow actual predicates, row distribution, and sort requirements. The plan scans most rows while filtering and sorting results for each narrow tenant request.

C:

EXPLAIN shows a large exact scan and sort instead of an approximate vector index path. Relational indexing strategy should follow actual predicates, row distribution, and sort requirements. The plan scans most rows while filtering and sorting results for each narrow tenant request.

Question 419

An incident investigator wants to search a common correlation ID across application requests, container logs, and function traces held in separate tables. Which implementation choice most directly resolves this service problem?

  1. Expose queue depth and processing lag as metrics and configure targeted Azure Monitor alerts alongside tracing.
  2. Remove private prompt contents, use bounded sanitized attributes, and retain approved correlation identifiers.
  3. Use supported KQL union or appropriately normalized projections, retaining a source-table marker for context.
  4. Set stable OpenTelemetry resource attributes such as service.name and environment, while retaining instance-level identifiers separately.

Explanation

Correct Answer

C:

Use supported KQL union or appropriately normalized projections, retaining a source-table marker for context. Combining telemetry sources requires consistent correlation fields and preserved provenance.

Incorrect Answers

A:

Expose queue depth and processing lag as metrics and configure targeted Azure Monitor alerts alongside tracing. Combining telemetry sources requires consistent correlation fields and preserved provenance. Use supported KQL union or appropriately normalized projections, retaining a source-table marker for context.

B:

Remove private prompt contents, use bounded sanitized attributes, and retain approved correlation identifiers. Combining telemetry sources requires consistent correlation fields and preserved provenance. Use supported KQL union or appropriately normalized projections, retaining a source-table marker for context.

D:

Set stable OpenTelemetry resource attributes such as service.name and environment, while retaining instance-level identifiers separately. Combining telemetry sources requires consistent correlation fields and preserved provenance. Use supported KQL union or appropriately normalized projections, retaining a source-table marker for context.

Question 420

A transcription processing handler sometimes needs hours to finish, but the Event Grid subscriber performs the entire job before acknowledging and delivery retries cascade. Which result best verifies the intended technical behavior?

  1. The endpoint acknowledges promptly and a durable queue completes the work once logically.
  2. The document runs after the scheduled dependency point without exhausting deliveries or losing traceability.
  3. Both subscribed pipelines receive the allowed test event and settle their independent copies.
  4. A test batch results in one logical completion per message while workers share backlog.

Explanation

Correct Answer

A:

The endpoint acknowledges promptly and a durable queue completes the work once logically.

Incorrect Answers

B:

The document runs after the scheduled dependency point without exhausting deliveries or losing traceability. The endpoint acknowledges promptly and a durable queue completes the work once logically.

C:

Both subscribed pipelines receive the allowed test event and settle their independent copies. The endpoint acknowledges promptly and a durable queue completes the work once logically.

D:

A test batch results in one logical completion per message while workers share backlog. The endpoint acknowledges promptly and a durable queue completes the work once logically.

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