Microsoft AI-200 Practice Test 20
Question 190
At Northwind Learning, a retrieval query returns embedding rows but ignores document publication status in a related metadata table. Evidence: The vector table and document ACL table are normalized with a shared document_id. The objective is to ensure RAG retrieval obeys document metadata and authorization joins. Changes must respect customer tenant boundaries and required availability targets. Which acceptance result most strongly demonstrates the requirement is met?
- Verify cosine search uses the compatible index and returns expected neighbors.
- Verify only approved published documents are returned regardless of vector similarity.
- Verify vector operators execute successfully and the extension version meets application requirements.
- Verify no unauthorized tenant records appear among ranked results.
Explanation
Correct Answer
B:
The vector table and document ACL table are normalized with a shared document_id. Verify only approved published documents are returned regardless of vector similarity.
Incorrect Answers
A:
“Verify cosine search uses the compatible index and returns expected neighbors.” validates an outcome in a case where the evidence is: The mismatch keeps the query from using the intended nearest-neighbor index plan. This question instead requires an action that can ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Verify only approved published documents are returned regardless of vector similarity.
C:
“Verify vector operators execute successfully and the extension version meets application requirements.” validates an outcome in a case where the evidence is: The extension is not enabled or allowlisted for the chosen server configuration. This question instead requires an action that can ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Verify only approved published documents are returned regardless of vector similarity.
D:
“Verify no unauthorized tenant records appear among ranked results.” validates an outcome in a case where the evidence is: The index includes tenant metadata but the query filters only the vector distance. This question instead requires an action that can ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Verify only approved published documents are returned regardless of vector similarity.
Question 191
At Summit Finance, a low-latency semantic cache stores embeddings as plain strings and cannot execute nearest-neighbor queries. Evidence: The service requires a supported Redis search/vector index with consistent embedding dimensions. The objective is to enable vector similarity retrieval in the managed Redis service. Only authorized Azure subscriptions and synthetic test data may be used. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor failed auth attempts, certificate expirations and overly broad cache roles.
- Monitor missing filters, authorization failures and cross-tenant query patterns.
- Monitor vector index build errors, memory footprint and query latency.
- Monitor replay frequency, version conflicts, and duplicate side effects.
Explanation
Correct Answer
C:
The service requires a supported Redis search/vector index with consistent embedding dimensions. Monitor vector index build errors, memory footprint and query latency. Nearest-neighbor search needs a supported vector index and a field dimension matching the embedding model; plain string storage is not an index.
Incorrect Answers
A:
“Monitor failed auth attempts, certificate expirations and overly broad cache roles.” monitors this signal: The environment requires encrypted transport and scoped client credentials. This question instead requires an action that can enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Monitor vector index build errors, memory footprint and query latency. Nearest-neighbor search needs a supported vector index and a field dimension matching the embedding model; plain string storage is not an index.
B:
“Monitor missing filters, authorization failures and cross-tenant query patterns.” monitors this signal: The index includes tenant metadata but the query filters only the vector distance. This question instead requires an action that can enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Monitor vector index build errors, memory footprint and query latency. Nearest-neighbor search needs a supported vector index and a field dimension matching the embedding model; plain string storage is not an index.
D:
“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 enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Monitor vector index build errors, memory footprint and query latency. Nearest-neighbor search needs a supported vector index and a field dimension matching the embedding model; plain string storage is not an index.
Question 192
At Pine Valley Public Services, a backend Redis client connects over an unencrypted legacy endpoint with a shared password. Evidence: The environment requires encrypted transport and scoped client credentials. The objective is to secure application-to-cache connections with supported authentication and TLS. Only authorized Azure subscriptions and synthetic test data may be used. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect filter syntax, index schema and tenant identity constraints.
- Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
- Inspect hit rate, key sizes, used memory and eviction counters.
- Inspect index creation timing, list count, probes, table size and ground-truth retrieval results.
Explanation
Correct Answer
B:
The environment requires encrypted transport and scoped client credentials. Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
Incorrect Answers
A:
“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 secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
C:
“Inspect hit rate, key sizes, used memory and eviction counters.” is a diagnostic step for the reported condition: Its max memory is saturated and eviction policy does not match cache workload priorities. This question instead requires an action that can secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
D:
“Inspect index creation timing, list count, probes, table size and ground-truth retrieval results.” is a diagnostic step for the reported condition: The approximate index requires suitable data distribution and tuning for list count and probes. This question instead requires an action that can secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Inspect Redis endpoint scheme, client TLS mode and role or access policy configuration.
Question 193
At Juniper Analytics, an inference service retains temporary conversation context forever despite a thirty-day deletion requirement. Evidence: The container has TTL disabled and application cleanup jobs miss archived records. The objective is to apply consistent item lifetime semantics to temporary Cosmos data. Only authorized Azure subscriptions and synthetic test data may be used. Which controlled pilot most directly validates the proposed approach?
- Update a benign record and read it through the same session across test regions.
- Search a sandbox corpus containing semantically similar documents from two synthetic tenants.
- Run a representative multi-tenant test query with and without the supporting metadata index.
- Create disposable test items with short TTL and disabled expiration variants.
Explanation
Correct Answer
D:
The container has TTL disabled and application cleanup jobs miss archived records. Create disposable test items with short TTL and disabled expiration variants.
Incorrect Answers
A:
“Update a benign record and read it through the same session across test regions.” tests a proposed change for 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 apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Create disposable test items with short TTL and disabled expiration variants.
B:
“Search a sandbox corpus containing semantically similar documents from two synthetic tenants.” tests a proposed change for the condition: The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. This question instead requires an action that can apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Create disposable test items with short TTL and disabled expiration variants.
C:
“Run a representative multi-tenant test query with and without the supporting metadata index.” tests a proposed change for the condition: The database has a vector index but no useful plan for the frequent structured tenant predicate. This question instead requires an action that can apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Create disposable test items with short TTL and disabled expiration variants.
Question 194
At Seabright Media, 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. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.
- Choose a stable high-cardinality partition key aligned to dominant conversation access patterns.
- Use supported session consistency with proper session-token handling for read-your-writes where required.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
Explanation
Correct Answer
C:
The application does not retain session tokens and assumes eventual consistency provides read-your-writes. Use supported session consistency with proper session-token handling for read-your-writes where required.
Incorrect Answers
A:
“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 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. Use supported session consistency with proper session-token handling for read-your-writes where required.
B:
“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 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. Use supported session consistency with proper session-token handling for read-your-writes where required.
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 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. Use supported session consistency with proper session-token handling for read-your-writes where required.
Question 195
At Juniper Analytics, an ingestion job writes metadata before embedding generation finishes, exposing documents with empty vectors. Evidence: The database stores document status and embeddings in related rows without a reliable completion boundary. The objective is to prevent partially ingested documents from appearing as searchable content. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Write document and vector metadata atomically or publish search eligibility only after verified completion.
- Create or select an index with vector_cosine_ops and use the matching distance operator.
- Build an HNSW index with the appropriate vector_cosine_ops operator class where supported.
- Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
Explanation
Correct Answer
A:
The database stores document status and embeddings in related rows without a reliable completion boundary. Write document and vector metadata atomically or publish search eligibility only after verified completion.
Incorrect Answers
B:
A pgvector cosine operator-class mismatch affects similarity-search index use; it does not make a partially written document and its embeddings atomic. Transactionally coordinate ingest and visibility so incomplete records are not searchable.
C:
“Build an HNSW index with the appropriate vector_cosine_ops operator class where supported.” is a design or implementation response to the condition: The vector column has no suitable approximate nearest neighbor index for the cosine operator. This question instead requires an action that can prevent partially ingested documents from appearing as searchable content. The database stores document status and embeddings in related rows without a reliable completion boundary. Write document and vector metadata atomically or publish search eligibility only after verified completion.
D:
“Create a compatible vector policy or migrate to a newly indexed field matching the selected model.” is a design or implementation response to the condition: The container vector policy was created for a fixed dimension count and the new vectors do not match. This question instead requires an action that can prevent partially ingested documents from appearing as searchable content. The database stores document status and embeddings in related rows without a reliable completion boundary. Write document and vector metadata atomically or publish search eligibility only after verified completion.
Question 196
At Cobalt Research, a containerized classification API stays at one replica while request concurrency spikes. Evidence: The app has no tuned HTTP scale rule and the maximum replica count is too low. The objective is to scale replica counts based on measured inbound HTTP load. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
- Enable supported internal-only Container Apps ingress with correct target port and authentication.
- Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.
- Introduce a signed artifact verification gate before release using a supported image-signing workflow.
Explanation
Correct Answer
A:
The app has no tuned HTTP scale rule and the maximum replica count is too low. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
Incorrect Answers
B:
“Enable supported internal-only Container Apps ingress with correct target port and authentication.” is a design or implementation response to the condition: A private embedding worker should be callable by its orchestration service but not by internet clients. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
C:
“Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.” is a design or implementation response to the condition: Two independently deployed Container Apps need event notification without hardcoding broker SDKs into every service. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
D:
“Introduce a signed artifact verification gate before release using a supported image-signing workflow.” is a design or implementation response to the condition: An engineer can push an image directly to the registry without required provenance checks. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
Question 197
At Mosaic Robotics, 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. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
- Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.
- Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
- Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
Explanation
Correct Answer
C:
The log records include revision identifiers that are not used in the investigation. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
Incorrect Answers
A:
“Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.” is a design or implementation response to the condition: An operations team wants to see whether model serving errors rose during a fifteen-minute rollout. 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. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
B:
“Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.” is a design or implementation response to the condition: Time spent waiting in Service Bus is not captured in the same operation trace. 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. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
D:
“Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.” is a design or implementation response to 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. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
Question 198
At Riverbend Health, an automation mistakenly deletes an important secret and an operator asks how to recover it before permanent removal. Evidence: The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. The objective is to protect critical secret lifecycle against accidental or malicious deletion. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect app identity, App Configuration data reader role and client authentication mode.
- Inspect key names, labels, connection selectors and fallback behavior.
- Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
- Inspect message correlation IDs, enqueued time and consumer telemetry instrumentation.
Explanation
Correct Answer
C:
The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
Incorrect Answers
A:
“Inspect app identity, App Configuration data reader role and client authentication mode.” is a diagnostic step for the reported condition: The workload supports managed identity and endpoint-based configuration loading. This question instead requires an action that can protect critical secret lifecycle against accidental or malicious deletion. The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
B:
“Inspect key names, labels, connection selectors and fallback behavior.” is a diagnostic step for the reported condition: The team created labeled keys yet the SDK filter does not select the requested environment label. This question instead requires an action that can protect critical secret lifecycle against accidental or malicious deletion. The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
D:
“Inspect message correlation IDs, enqueued time and consumer telemetry instrumentation.” is a diagnostic step for the reported condition: Time spent waiting in Service Bus is not captured in the same operation trace. This question instead requires an action that can protect critical secret lifecycle against accidental or malicious deletion. The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. Inspect vault soft-delete retention, purge protection setting, deleted-object list and recovery permissions.
Question 199
At Seabright Media, a pgvector table has an HNSW index with a vector_l2_ops class but queries sort by cosine distance. Evidence: The mismatch keeps the query from using the intended nearest-neighbor index plan. The objective is to match PostgreSQL vector index operator class to the query distance operator. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect server extension allowlist, installed extensions and target database permissions.
- Inspect connection count, pooler settings, function concurrency and server max_connections.
- Inspect cache key composition, input versions, expiration needs and data sensitivity.
- Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
Explanation
Correct Answer
D:
The mismatch keeps the query from using the intended nearest-neighbor index plan. Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
Incorrect Answers
A:
“Inspect server extension allowlist, installed extensions and target database permissions.” is a diagnostic step for the reported condition: The extension is not enabled or allowlisted for the chosen server configuration. This question instead requires an action that can match PostgreSQL vector index operator class to the query distance operator. The mismatch keeps the query from using the intended nearest-neighbor index plan. Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
B:
“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 match PostgreSQL vector index operator class to the query distance operator. The mismatch keeps the query from using the intended nearest-neighbor index plan. Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
C:
“Inspect cache key composition, input versions, expiration needs and data sensitivity.” is a diagnostic step for the reported condition: It currently bypasses Redis and stores no expiration for cacheable responses. This question instead requires an action that can match PostgreSQL vector index operator class to the query distance operator. The mismatch keeps the query from using the intended nearest-neighbor index plan. Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
Question 200
At Clearwater Partners, an Azure Function processes messages from Service Bus but completes them even when database output fails. Evidence: The trigger configuration retries and message settlement must align with actual successful work. The objective is to use correct Service Bus trigger completion and retry behavior for durable processing. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor repeated event IDs, stale locks and duplicate side effects.
- Monitor schedule drift, missed runs and repeated executions.
- Monitor abandoned deferred messages, lost sequence numbers and expired dependencies.
- Monitor invocation failures, lock losses and poison-message count.
Explanation
Correct Answer
D:
The trigger configuration retries and message settlement must align with actual successful work. Monitor invocation failures, lock losses and poison-message count.
Incorrect Answers
A:
Idempotency guards repeated business side effects when a function runs more than once; it does not by itself control when a Service Bus message is completed or dead-lettered. Settlement must occur only after successful downstream work, with retry/failure handling configured.
B:
“Monitor schedule drift, missed runs and repeated executions.” monitors this signal: The host interprets schedules with specific UTC and configuration semantics. This question instead requires an action that can use correct Service Bus trigger completion and retry behavior for durable processing. The trigger configuration retries and message settlement must align with actual successful work. Monitor invocation failures, lock losses and poison-message count.
C:
“Monitor abandoned deferred messages, lost sequence numbers and expired dependencies.” monitors this signal: The job is not malformed and should be resumed by sequence number when the prerequisite is ready. This question instead requires an action that can use correct Service Bus trigger completion and retry behavior for durable processing. The trigger configuration retries and message settlement must align with actual successful work. Monitor invocation failures, lock losses and poison-message count.