Microsoft AI-200 Practice Test 42
Question 410
At Crescent Logistics, a semantic cache begins evicting highly reused entries during peak demand. Evidence: Its max memory is saturated and eviction policy does not match cache workload priorities. The objective is to choose predictable memory and eviction behavior for transient AI response data. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect hit rate, key sizes, used memory and eviction counters.
- Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
- Inspect filter syntax, index schema and tenant identity constraints.
- Inspect connection count, pooler settings, function concurrency and server max_connections.
Explanation
Correct Answer
A:
Its max memory is saturated and eviction policy does not match cache workload priorities. Inspect hit rate, key sizes, used memory and eviction counters.
Incorrect Answers
B:
Redis TLS and client authorization secure cache connections but do not control what gets evicted when memory is full. Size the cache budget and choose eviction behavior suited to the reuse pattern.
C:
“Inspect filter syntax, index schema and tenant identity constraints.” is a diagnostic step for the reported condition: The index includes tenant metadata but the query filters only the vector distance. This question instead requires an action that can choose predictable memory and eviction behavior for transient AI response data. Its max memory is saturated and eviction policy does not match cache workload priorities. Inspect hit rate, key sizes, used memory and eviction counters.
D:
“Inspect connection count, pooler settings, function concurrency and server max_connections.” is a diagnostic step for the reported condition: The database sees many idle connections and connection setup dominates API latency. This question instead requires an action that can choose predictable memory and eviction behavior for transient AI response data. Its max memory is saturated and eviction policy does not match cache workload priorities. Inspect hit rate, key sizes, used memory and eviction counters.
Question 411
At Orion Commerce, a production rollout of an AI gateway introduces response errors and must be rolled back without rebuilding its image. Evidence: The team has a healthy staging slot with a previously verified container image. The objective is to use staged promotion and controlled rollback for a container-hosted service. Validate in a disposable environment before applying production changes. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor failing ACR Task runs, stale deployed digests, and skipped source triggers.
- Monitor unresolved secret references, revoked identity permissions, and version changes.
- Monitor unauthorized ingress changes and new public hostnames.
- Monitor swap failures, warm-up errors, and configuration leakage between slots.
Explanation
Correct Answer
D:
The team has a healthy staging slot with a previously verified container image. Monitor swap failures, warm-up errors, and configuration leakage between slots.
Incorrect Answers
A:
“Monitor failing ACR Task runs, stale deployed digests, and skipped source triggers.” monitors this signal: The pipeline rebuilds only when developers push code and never tracks upstream base image updates. This question instead requires an action that can use staged promotion and controlled rollback for a container-hosted service. The team has a healthy staging slot with a previously verified container image. Monitor swap failures, warm-up errors, and configuration leakage between slots.
B:
A Key Vault reference protects a secret resolved by App Service, but it does not restore a known-good container version after a bad release. Deployment slots and controlled slot-swap or rollback address release recovery.
C:
“Monitor unauthorized ingress changes and new public hostnames.” monitors this signal: The Container App ingress configuration is external and the environment has no intended public API for the worker. This question instead requires an action that can use staged promotion and controlled rollback for a container-hosted service. The team has a healthy staging slot with a previously verified container image. Monitor swap failures, warm-up errors, and configuration leakage between slots.
Question 412
At Pine Valley Public Services, a scheduled Container Apps task restarts repeatedly but application stderr is missing from the operations dashboard. Evidence: The environment's diagnostic destination is misconfigured and system logs show image pull failures. The objective is to capture application and system telemetry needed for troubleshooting Container Apps. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Run a staging request using the app identity with all local developer credentials removed.
- Make one permitted request from a sibling test app and one prohibited internet request.
- Trigger a harmless failed startup in an isolated revision and query expected log records.
- Use a synthetic Key Vault secret in a nonproduction slot and refresh the app configuration.
Explanation
Correct Answer
C:
The environment's diagnostic destination is misconfigured and system logs show image pull failures. Trigger a harmless failed startup in an isolated revision and query expected log records.
Incorrect Answers
A:
“Run a staging request using the app identity with all local developer credentials removed.” tests a proposed change for the condition: The managed identity exists but lacks data-plane permission on the target resource. This question instead requires an action that can capture application and system telemetry needed for troubleshooting Container Apps. The environment's diagnostic destination is misconfigured and system logs show image pull failures. Trigger a harmless failed startup in an isolated revision and query expected log records.
B:
“Make one permitted request from a sibling test app and one prohibited internet request.” tests a proposed change for the condition: The Container App ingress configuration is external and the environment has no intended public API for the worker. This question instead requires an action that can capture application and system telemetry needed for troubleshooting Container Apps. The environment's diagnostic destination is misconfigured and system logs show image pull failures. Trigger a harmless failed startup in an isolated revision and query expected log records.
D:
App Service Key Vault references diagnose runtime secret resolution; they do not restore missing application/system logs from Container Apps. Configure the Container Apps environment diagnostic destination and inspect image-pull and revision telemetry.
Question 413
At Cedar Cloud, an upload handler function does not run after blob events although the Function App is deployed. Evidence: The Event Grid event subscription points to an outdated function endpoint and event type. The objective is to connect supported storage events to the correct Azure Functions trigger. Changes must respect customer tenant boundaries and required availability targets. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect the Event Grid subscription endpoint, trigger binding and event filters.
- Inspect function identity, Key Vault RBAC, SDK DefaultAzureCredential resolution and app settings.
- Inspect function plan, worker process count, execution timeout and per-instance saturation metrics.
- Inspect delivery count, exception categories, and dead-letter reason metadata.
Explanation
Correct Answer
A:
The Event Grid event subscription points to an outdated function endpoint and event type. Inspect the Event Grid subscription endpoint, trigger binding and event filters.
Incorrect Answers
B:
“Inspect function identity, Key Vault RBAC, SDK DefaultAzureCredential resolution and app settings.” is a diagnostic step for the reported condition: Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. This question instead requires an action that can connect supported storage events to the correct Azure Functions trigger. The Event Grid event subscription points to an outdated function endpoint and event type. Inspect the Event Grid subscription endpoint, trigger binding and event filters.
C:
“Inspect function plan, worker process count, execution timeout and per-instance saturation metrics.” is a diagnostic step for the reported condition: Telemetry shows request queueing and memory pressure rather than an upstream service outage. This question instead requires an action that can connect supported storage events to the correct Azure Functions trigger. The Event Grid event subscription points to an outdated function endpoint and event type. Inspect the Event Grid subscription endpoint, trigger binding and event filters.
D:
“Inspect delivery count, exception categories, and dead-letter reason metadata.” is a diagnostic step for the reported condition: The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. This question instead requires an action that can connect supported storage events to the correct Azure Functions trigger. The Event Grid event subscription points to an outdated function endpoint and event type. Inspect the Event Grid subscription endpoint, trigger binding and event filters.
Question 414
At Aspen Manufacturing, a multi-region client reads a just-updated chat setting and sometimes receives an older value on another request. Evidence: The application does not retain session tokens and assumes eventual consistency provides read-your-writes. The objective is to select the least costly consistency level meeting session visibility requirements. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor stale-read symptoms and consistency-related RU or latency changes.
- Monitor replay frequency, version conflicts, and duplicate side effects.
- Monitor hot partition metrics, throttled requests, and partition growth.
- Monitor missing metadata joins and unauthorized draft document retrievals.
Explanation
Correct Answer
A:
The application does not retain session tokens and assumes eventual consistency provides read-your-writes. Monitor stale-read symptoms and consistency-related RU or latency changes.
Incorrect Answers
B:
“Monitor replay frequency, version conflicts, and duplicate side effects.” monitors this signal: Change feed delivery and retries require consumers to tolerate at-least-once processing. This question instead requires an action that can select the least costly consistency level meeting session visibility requirements. The application does not retain session tokens and assumes eventual consistency provides read-your-writes. Monitor stale-read symptoms and consistency-related RU or latency changes.
C:
“Monitor hot partition metrics, throttled requests, and partition growth.” monitors this signal: 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 select the least costly consistency level meeting session visibility requirements. The application does not retain session tokens and assumes eventual consistency provides read-your-writes. Monitor stale-read symptoms and consistency-related RU or latency changes.
D:
“Monitor missing metadata joins and unauthorized draft document retrievals.” monitors this signal: The vector table and document ACL table are normalized with a shared document_id. This question instead requires an action that can select the least costly consistency level meeting session visibility requirements. The application does not retain session tokens and assumes eventual consistency provides read-your-writes. Monitor stale-read symptoms and consistency-related RU or latency changes.
Question 415
At Clearwater Partners, a backend API is reachable from an unintended namespace after its Kubernetes Service was exposed broadly. Evidence: The Service type and network policies do not enforce the desired cluster-internal caller boundary. The objective is to restrict Kubernetes service exposure and pod network paths to approved clients. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Create a staging revision and send tagged synthetic requests through the ingress URL.
- Enqueue synthetic work and observe a single job execution with an idempotency marker.
- From two disposable namespaces, attempt an authorized and a denied HTTP request.
- Swap a harmless updated staging version into a nonproduction environment and simulate a failed acceptance check.
Explanation
Correct Answer
C:
The Service type and network policies do not enforce the desired cluster-internal caller boundary. From two disposable namespaces, attempt an authorized and a denied HTTP request.
Incorrect Answers
A:
“Create a staging revision and send tagged synthetic requests through the ingress URL.” tests a proposed change for the condition: The Container App is configured for single-revision mode and routes all ingress to the active revision. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. From two disposable namespaces, attempt an authorized and a denied HTTP request.
B:
“Enqueue synthetic work and observe a single job execution with an idempotency marker.” tests a proposed change for the condition: The workflow is short-lived and triggered by queue events, not interactive requests. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. From two disposable namespaces, attempt an authorized and a denied HTTP request.
D:
“Swap a harmless updated staging version into a nonproduction environment and simulate a failed acceptance check.” tests a proposed change for the condition: The team has a healthy staging slot with a previously verified container image. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. From two disposable namespaces, attempt an authorized and a denied HTTP request.
Question 416
At Atlas Support, an AI application retrieves one stored embedding document by its known id but performs a cross-partition SQL query for every request. Evidence: The SDK already has both the item id and its exact partition key value. The objective is to use efficient point reads for known Cosmos DB document identities. Only authorized Azure subscriptions and synthetic test data may be used. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect request-charge diagnostics and whether the caller knows the id/partition key tuple.
- Inspect generated query text, parameter bindings, and server-side query filters.
- Inspect processor name, monitored container, lease container, checkpoint state and logs.
- Inspect durability, failover behavior, key eviction settings and source-of-truth design.
Explanation
Correct Answer
A:
The SDK already has both the item id and its exact partition key value. Inspect request-charge diagnostics and whether the caller knows the id/partition key tuple.
Incorrect Answers
B:
“Inspect generated query text, parameter bindings, and server-side query filters.” is a diagnostic step for the reported condition: Users can enter quotation marks and unexpectedly alter query predicates. This question instead requires an action that can use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Inspect request-charge diagnostics and whether the caller knows the id/partition key tuple.
C:
“Inspect processor name, monitored container, lease container, checkpoint state and logs.” is a diagnostic step for the reported condition: The change feed processor relies on a shared lease container and correct start position. This question instead requires an action that can use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Inspect request-charge diagnostics and whether the caller knows the id/partition key tuple.
D:
“Inspect durability, failover behavior, key eviction settings and source-of-truth design.” is a diagnostic step for the reported condition: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Inspect request-charge diagnostics and whether the caller knows the id/partition key tuple.
Question 417
At Cedar Cloud, an AI ingestion queue retries malformed JSON indefinitely and blocks healthy work from progressing. Evidence: The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. The objective is to isolate unrecoverable messages without losing audit evidence. Changes must respect customer tenant boundaries and required availability targets. Which acceptance result most strongly demonstrates the requirement is met?
- Verify each session's updates are applied sequentially while separate sessions process concurrently.
- Verify only one consumer holds and completes the queued job while other workers can process other jobs.
- Verify malformed work lands in the DLQ and valid work continues with its correct result.
- Verify the function succeeds in Azure while unrelated secrets are inaccessible.
Explanation
Correct Answer
C:
The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. Verify malformed work lands in the DLQ and valid work continues with its correct result.
Incorrect Answers
A:
“Verify each session's updates are applied sequentially while separate sessions process concurrently.” validates an outcome in a case where the evidence is: Parallel consumers receive updates out of order and session affinity is not configured. This question instead requires an action that can isolate unrecoverable messages without losing audit evidence. The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. Verify malformed work lands in the DLQ and valid work continues with its correct result.
B:
“Verify only one consumer holds and completes the queued job while other workers can process other jobs.” validates an outcome in a case where the evidence is: Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. This question instead requires an action that can isolate unrecoverable messages without losing audit evidence. The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. Verify malformed work lands in the DLQ and valid work continues with its correct result.
D:
“Verify the function succeeds in Azure while unrelated secrets are inaccessible.” validates an outcome in a case where the evidence is: Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. This question instead requires an action that can isolate unrecoverable messages without losing audit evidence. The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. Verify malformed work lands in the DLQ and valid work continues with its correct result.
Question 418
Pine Valley Public Services is reviewing an Azure AI workload: A semantic retrieval store indexes entire unqueried text bodies even though searches use document type and timestamp. The business goal is to optimize index policy for actual filter and sort requirements. A change is being evaluated before rollout. The team has documented application and data boundaries. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
- Exclude large unused body fields from indexing while preserving needed metadata indexes.
- Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
Explanation
Correct Answer
B:
Default indexing captures unused large properties and increases write RU costs. Exclude large unused body fields from indexing while preserving needed metadata indexes.
Incorrect Answers
A:
“Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.” is a design or implementation response to the condition: A chatbot's retrieval quality falls after a team switches a vector index from cosine to an arbitrary distance metric. 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. Exclude large unused body fields from indexing while preserving needed metadata indexes.
C:
“Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.” is a design or implementation response to the condition: A document service inserts a request-provided category into a Cosmos query using string formatting. 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. Exclude large unused body fields from indexing while preserving needed metadata indexes.
D:
“Implement cache-aside lookup with a bounded TTL and version-aware key names.” is a design or implementation response to the condition: It currently bypasses Redis and stores no expiration for cacheable responses. 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. Exclude large unused body fields from indexing while preserving needed metadata indexes.
Question 419
At Sapphire Energy, a backend process connects to App Configuration using a long-lived shared connection string in a container image. Evidence: The workload supports managed identity and endpoint-based configuration loading. The objective is to access application settings without embedding reusable access keys. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
- Inspect app identity, App Configuration data reader role and client authentication mode.
- Inspect refresh registration, cache expiration and sentinel update order.
- Inspect active span attributes, baggage propagation and exporter filtering rules.
Explanation
Correct Answer
B:
The workload supports managed identity and endpoint-based configuration loading. Inspect app identity, App Configuration data reader role and client authentication mode.
Incorrect Answers
A:
“Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.” is a diagnostic step for the reported condition: The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. This question instead requires an action that can access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Inspect app identity, App Configuration data reader role and client authentication mode.
C:
“Inspect refresh registration, cache expiration and sentinel update order.” is a diagnostic step for the reported condition: The SDK refresh provider observes no sentinel key and the keys update at different moments. This question instead requires an action that can access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Inspect app identity, App Configuration data reader role and client authentication mode.
D:
“Inspect active span attributes, baggage propagation and exporter filtering rules.” is a diagnostic step for the reported condition: The organization needs troubleshooting context but prohibits exporting raw sensitive data. This question instead requires an action that can access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Inspect app identity, App Configuration data reader role and client authentication mode.
Question 420
At Atlas Support, a semantic search API queries pgvector cosine distance across millions of rows with unacceptable latency. Evidence: The vector column has no suitable approximate nearest neighbor index for the cosine operator. The objective is to accelerate vector nearest-neighbor queries using a compatible index. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor stranded pending documents and repeated ingest failures.
- Monitor rejected queries, database privilege drift and suspicious syntax patterns.
- Monitor cache misses, source reload failures and unexpected authoritative-data gaps.
- Monitor index build health, write overhead and query plan regressions.
Explanation
Correct Answer
D:
The vector column has no suitable approximate nearest neighbor index for the cosine operator. Monitor index build health, write overhead and query plan regressions. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
Incorrect Answers
A:
“Monitor stranded pending documents and repeated ingest failures.” monitors this signal: The database stores document status and embeddings in related rows without a reliable completion boundary. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Monitor index build health, write overhead and query plan regressions. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
B:
“Monitor rejected queries, database privilege drift and suspicious syntax patterns.” monitors this signal: Malformed input can change SQL syntax and the service account can read more rows than necessary. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Monitor index build health, write overhead and query plan regressions. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
C:
“Monitor cache misses, source reload failures and unexpected authoritative-data gaps.” monitors this signal: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Monitor index build health, write overhead and query plan regressions. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.