Microsoft AI-200 Practice Test 27
Question 260
Aspen Manufacturing is reviewing an Azure AI workload: A chatbot's retrieval quality falls after a team switches a vector index from cosine to an arbitrary distance metric. The business goal is to align vector scoring and index policy with model semantics. A change is being evaluated before rollout. The team has documented application and data boundaries. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
- Call the SDK read_item operation with item id and partition key instead of a broad query.
- Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
- Allowlist and create the supported vector extension in the intended database under change control.
Explanation
Correct Answer
A:
The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
Incorrect Answers
B:
“Call the SDK read_item operation with item id and partition key instead of a broad query.” is a design or implementation response to the condition: The SDK already has both the item id and its exact partition key value. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
C:
“Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.” is a design or implementation response to the condition: An enterprise chatbot must rank similar policies while never exposing documents from a different customer account. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
D:
“Allowlist and create the supported vector extension in the intended database under change control.” is a design or implementation response to the condition: A RAG backend tries to create a pgvector index but gets a missing type error. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
Question 261
At Summit Finance, a Cosmos container stores large text payloads, but queries filter only metadata fields. Evidence: Default indexing captures unused large properties and increases write RU costs. The objective is to optimize index policy for actual filter and sort requirements. Validate in a disposable environment before applying production changes. Which acceptance result most strongly demonstrates the requirement is met?
- Verify replay leaves exactly one current output record and correct updated version.
- Confirm the client observes its writes within the defined session while cross-session guarantees are not overstated.
- Verify target queries remain indexed and write RU charge falls without unacceptable read regressions.
- Verify tenant filtering is correct and query cost improves under realistic selectivity.
Explanation
Correct Answer
C:
Default indexing captures unused large properties and increases write RU costs. Verify target queries remain indexed and write RU charge falls without unacceptable read regressions.
Incorrect Answers
A:
“Verify replay leaves exactly one current output record and correct updated version.” validates an outcome in a case where the evidence is: Change feed delivery and retries require consumers to tolerate at-least-once processing. This question instead requires an action that can optimize index policy for actual filter and sort requirements. Default indexing captures unused large properties and increases write RU costs. Verify target queries remain indexed and write RU charge falls without unacceptable read regressions.
B:
Cosmos DB consistency levels govern read visibility across sessions or replicas; they do not reduce write RU spent indexing large fields that no query uses. Adjust included and excluded indexing paths to actual filter and sort patterns.
D:
“Verify tenant filtering is correct and query cost improves under realistic selectivity.” validates an outcome in a case where the evidence is: The database has a vector index but no useful plan for the frequent structured tenant predicate. This question instead requires an action that can optimize index policy for actual filter and sort requirements. Default indexing captures unused large properties and increases write RU costs. Verify target queries remain indexed and write RU charge falls without unacceptable read regressions.
Question 262
At Crownridge Consulting, a monitoring query emits raw failure rows but operators need five-minute error trends by service. Evidence: The current results lack time bucketing and cannot reveal when an issue began. The objective is to aggregate telemetry into meaningful time windows for trend analysis. Validate in a disposable environment before applying production changes. Which acceptance result most strongly demonstrates the requirement is met?
- Verify filtering matches the intended JSON property rather than arbitrary text substrings.
- Verify the error is attributable only to the staged revision, not the healthy production revision.
- Verify allowed keys load through its identity and unrelated store access is denied.
- Verify bucket timestamps and counts align with known events and UTC boundaries.
Explanation
Correct Answer
D:
The current results lack time bucketing and cannot reveal when an issue began. Verify bucket timestamps and counts align with known events and UTC boundaries.
Incorrect Answers
A:
Parsing dynamic JSON fields extracts values from telemetry; it does not group errors into time windows. KQL summarize with bin(TimeGenerated, 5m) produces the requested service-level trend.
B:
“Verify the error is attributable only to the staged revision, not the healthy production revision.” validates an outcome in a case where the evidence is: The log records include revision identifiers that are not used in the investigation. This question instead requires an action that can aggregate telemetry into meaningful time windows for trend analysis. The current results lack time bucketing and cannot reveal when an issue began. Verify bucket timestamps and counts align with known events and UTC boundaries.
C:
“Verify allowed keys load through its identity and unrelated store access is denied.” validates an outcome in a case where the evidence is: The workload supports managed identity and endpoint-based configuration loading. This question instead requires an action that can aggregate telemetry into meaningful time windows for trend analysis. The current results lack time bucketing and cannot reveal when an issue began. Verify bucket timestamps and counts align with known events and UTC boundaries.
Question 263
Redwood Banking is reviewing an Azure AI workload: A vector generation function processes one large payload at a time and stalls when hundreds of calls arrive simultaneously. The business goal is to match Functions hosting and concurrency configuration to measured workload and execution limits. A change is being evaluated before rollout. The team has documented application and data boundaries. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Configure the Event Grid trigger and subscription for the correct resource event types.
- Configure appropriate function authorization and front-door identity enforcement instead of assuming routing alone secures calls.
- Publish completion events to a Service Bus topic with separate subscriptions per downstream service.
- Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
Explanation
Correct Answer
D:
Telemetry shows request queueing and memory pressure rather than an upstream service outage. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
Incorrect Answers
A:
“Configure the Event Grid trigger and subscription for the correct resource event types.” is a design or implementation response to the condition: A serverless thumbnail pipeline stopped responding to storage updates after its function name changed. This question instead requires an action that can match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
B:
“Configure appropriate function authorization and front-door identity enforcement instead of assuming routing alone secures calls.” is a design or implementation response to the condition: An internal Azure Functions endpoint answers model prompts even when the caller does not possess approved credentials. This question instead requires an action that can match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
C:
“Publish completion events to a Service Bus topic with separate subscriptions per downstream service.” is a design or implementation response to the condition: Each independent service requires its own durable copy of the event. This question instead requires an action that can match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
Question 264
At Atlas Support, a policy-answer service serves old snippets after documents are updated in its authoritative database. Evidence: Its Redis cache persists until a long TTL and does not react to content version changes. The objective is to remove or version stale cached results after authoritative data modifications. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
- Create a supported Redis vector search index with correct vector field type and distance metric.
- Call the SDK read_item operation with item id and partition key instead of a broad query.
- Invalidate affected cache keys or use versioned namespaces whenever source documents change.
Explanation
Correct Answer
D:
Its Redis cache persists until a long TTL and does not react to content version changes. Invalidate affected cache keys or use versioned namespaces whenever source documents change.
Incorrect Answers
A:
Redis TLS and authorization protect the cache connection. They do not invalidate old cached policy snippets after an authoritative update; key versioning or explicit invalidation must prevent stale reads.
B:
“Create a supported Redis vector search index with correct vector field type and distance metric.” is a design or implementation response to the condition: The service requires a supported Redis search/vector index with consistent embedding dimensions. This question instead requires an action that can remove or version stale cached results after authoritative data modifications. Its Redis cache persists until a long TTL and does not react to content version changes. Invalidate affected cache keys or use versioned namespaces whenever source documents change.
C:
“Call the SDK read_item operation with item id and partition key instead of a broad query.” is a design or implementation response to the condition: The SDK already has both the item id and its exact partition key value. This question instead requires an action that can remove or version stale cached results after authoritative data modifications. Its Redis cache persists until a long TTL and does not react to content version changes. Invalidate affected cache keys or use versioned namespaces whenever source documents change.
Question 265
At Clearwater Partners, a policy-answer service serves old snippets after documents are updated in its authoritative database. Evidence: Its Redis cache persists until a long TTL and does not react to content version changes. The objective is to remove or version stale cached results after authoritative data modifications. Validate in a disposable environment before applying production changes. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor invalidation failures and mismatches between cache and source versions.
- Monitor vector index build errors, memory footprint and query latency.
- Monitor lock contention, stampede frequency and failed refreshes.
- Monitor index build health, write overhead and query plan regressions.
Explanation
Correct Answer
A:
Its Redis cache persists until a long TTL and does not react to content version changes. Monitor invalidation failures and mismatches between cache and source versions.
Incorrect Answers
B:
“Monitor vector index build errors, memory footprint and query latency.” monitors this signal: The service requires a supported Redis search/vector index with consistent embedding dimensions. This question instead requires an action that can remove or version stale cached results after authoritative data modifications. Its Redis cache persists until a long TTL and does not react to content version changes. Monitor invalidation failures and mismatches between cache and source versions.
C:
“Monitor lock contention, stampede frequency and failed refreshes.” monitors this signal: Every worker observes the cache miss simultaneously and no coordination exists. This question instead requires an action that can remove or version stale cached results after authoritative data modifications. Its Redis cache persists until a long TTL and does not react to content version changes. Monitor invalidation failures and mismatches between cache and source versions.
D:
“Monitor index build health, write overhead and query plan regressions.” monitors this signal: The vector column has no suitable approximate nearest neighbor index for the cosine operator. This question instead requires an action that can remove or version stale cached results after authoritative data modifications. Its Redis cache persists until a long TTL and does not react to content version changes. Monitor invalidation failures and mismatches between cache and source versions.
Question 266
At Seabright Media, a retrieval API repeatedly computes identical expensive query embeddings even though results are reusable for minutes. Evidence: It currently bypasses Redis and stores no expiration for cacheable responses. The objective is to cache safe repeated computations without treating cached values as permanent truth. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
- Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
- Use supported session consistency with proper session-token handling for read-your-writes where required.
Explanation
Correct Answer
C:
It currently bypasses Redis and stores no expiration for cacheable responses. Implement cache-aside lookup with a bounded TTL and version-aware key names. A cache key must distinguish inputs, tenant scope and model version, while expiry prevents stale responses from becoming permanent answers.
Incorrect Answers
A:
Metadata filters restrict which vector-search records a tenant may retrieve. They do not reuse identical embeddings or expire cached computation results; a scoped Redis cache key and TTL address that workload.
B:
“Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.” is a design or implementation response to the condition: A model-serving API must authenticate to a private Azure Managed Redis cache without transmitting secrets in cleartext. This question instead requires an action that can cache safe repeated computations without treating cached values as permanent truth. It currently bypasses Redis and stores no expiration for cacheable responses. Implement cache-aside lookup with a bounded TTL and version-aware key names. A cache key must distinguish inputs, tenant scope and model version, while expiry prevents stale responses from becoming permanent answers.
D:
“Use supported session consistency with proper session-token handling for read-your-writes where required.” is a design or implementation response to the condition: The application does not retain session tokens and assumes eventual consistency provides read-your-writes. This question instead requires an action that can cache safe repeated computations without treating cached values as permanent truth. It currently bypasses Redis and stores no expiration for cacheable responses. Implement cache-aside lookup with a bounded TTL and version-aware key names. A cache key must distinguish inputs, tenant scope and model version, while expiry prevents stale responses from becoming permanent answers.
Question 267
At Marigold Retail, a new Container Apps revision repeatedly crashes but dashboard queries mix its logs with the stable revision. Evidence: The log records include revision identifiers that are not used in the investigation. The objective is to trace errors to the exact Container Apps revision responsible. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which controlled pilot most directly validates the proposed approach?
- Deploy a harmless staging revision that emits a known error signature.
- Run a read-only KQL query over test events placed in separate five-minute windows.
- Run a read-only KQL query over a synthetic failure dataset with two role names.
- Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.
Explanation
Correct Answer
A:
The log records include revision identifiers that are not used in the investigation. Deploy a harmless staging revision that emits a known error signature.
Incorrect Answers
B:
“Run a read-only KQL query over test events placed in separate five-minute windows.” tests a proposed change for the condition: The current results lack time bucketing and cannot reveal when an issue began. This question instead requires an action that can trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Deploy a harmless staging revision that emits a known error signature.
C:
“Run a read-only KQL query over a synthetic failure dataset with two role names.” tests a proposed change for the condition: Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. This question instead requires an action that can trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Deploy a harmless staging revision that emits a known error signature.
D:
“Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.” tests a proposed change for the condition: A Key Vault event is supported but no subscription has been configured for near-expiration events. This question instead requires an action that can trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Deploy a harmless staging revision that emits a known error signature.
Question 268
At Northwind Learning, a knowledge retrieval query uses tenant_id and a vector distance operator but scans huge unrelated tenant rows. Evidence: The database has a vector index but no useful plan for the frequent structured tenant predicate. The objective is to combine structured filtering with vector retrieval without breaking tenant isolation. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Scale the appropriate server resources after eliminating avoidable query and index overhead.
- Use a new compatible vector column or migration path instead of inserting mismatched embeddings.
- Choose a stable high-cardinality partition key aligned to dominant conversation access patterns.
- Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
Explanation
Correct Answer
D:
The database has a vector index but no useful plan for the frequent structured tenant predicate. Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
Incorrect Answers
A:
“Scale the appropriate server resources after eliminating avoidable query and index overhead.” is a design or implementation response to the condition: A PostgreSQL instance running vector indexing begins swapping and can no longer meet semantic search latency goals. This question instead requires an action that can combine structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
B:
“Use a new compatible vector column or migration path instead of inserting mismatched embeddings.” is a design or implementation response to the condition: The database column is declared as vector(1536) and reject mismatched input. This question instead requires an action that can combine structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
C:
“Choose a stable high-cardinality partition key aligned to dominant conversation access patterns.” is a design or implementation response to the condition: The partition key uses a shared constant for nearly all writes rather than a high-cardinality conversation identifier. This question instead requires an action that can combine structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
Question 269
At Cobalt Research, a RAG database performs poorly during batch embedding updates while CPU and memory are saturated. Evidence: Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. The objective is to right-size compute, memory and storage performance for vector operations. Preserve end-to-end correlation and avoid copying sensitive production data. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor pooler wait time, idle connections and transaction failures.
- Monitor query plans, index bloat and accidental distance operator changes.
- Monitor normalized RU consumption, throttling and autoscale ceilings.
- Monitor CPU saturation, disk latency, and storage growth.
Explanation
Correct Answer
D:
Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Monitor CPU saturation, disk latency, and storage growth.
Incorrect Answers
A:
“Monitor pooler wait time, idle connections and transaction failures.” monitors this signal: The database sees many idle connections and connection setup dominates API latency. This question instead requires an action that can right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Monitor CPU saturation, disk latency, and storage growth.
B:
“Monitor query plans, index bloat and accidental distance operator changes.” monitors this signal: The mismatch keeps the query from using the intended nearest-neighbor index plan. This question instead requires an action that can right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Monitor CPU saturation, disk latency, and storage growth.
C:
“Monitor normalized RU consumption, throttling and autoscale ceilings.” monitors this signal: Provisioned RU capacity and partition distribution are below the write and query demand. This question instead requires an action that can right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Monitor CPU saturation, disk latency, and storage growth.
Question 270
Clearwater Partners is reviewing an Azure AI workload: A model metering function adds the same usage event twice when a background retry occurs. The business goal is to make non-idempotent downstream operations safe under trigger retries. A change is being evaluated before rollout. The team has documented application and data boundaries. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Persist an idempotency key and check it atomically before applying the external operation.
- Define a supported schedule in the correct time standard and document daylight-saving behavior.
- Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
- Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.
Explanation
Correct Answer
A:
The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
Incorrect Answers
B:
“Define a supported schedule in the correct time standard and document daylight-saving behavior.” is a design or implementation response to the condition: An AI cache cleanup function must run every night at a stable UTC time rather than an assumed local offset. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
C:
“Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.” is a design or implementation response to the condition: Telemetry shows request queueing and memory pressure rather than an upstream service outage. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
D:
“Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.” is a design or implementation response to the condition: The worker subscription has no rule and receives irrelevant indexing and billing events. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.