100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 230
A read-heavy assistant needs predictable low latency under a constrained Cosmos DB RU budget. The team has selected this architecture: Use query metrics and RequestCharge measurements to identify expensive query patterns. Which action correctly implements it?
- Design the delete pipeline to publish an explicit deletion event or use a change feed mode that surfaces deletions where supported.
- Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
- Record RequestCharge across representative SDK queries and inspect cross-partition metrics.
- Delete or version the affected cache entry when the backing product is modified.
Explanation
Correct Answer
C:Record RequestCharge across representative SDK queries and inspect cross-partition metrics. This is the actionable setup step for the selected design. Cosmos DB RU consumption depends on the executed query and partition/index selection.
Incorrect Answers
A:Design the delete pipeline to publish an explicit deletion event or use a change feed mode that surfaces deletions where supported. Instead, record RequestCharge across representative SDK queries and inspect cross-partition metrics.
B:Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record. Instead, record RequestCharge across representative SDK queries and inspect cross-partition metrics.
D:Delete or version the affected cache entry when the backing product is modified. Instead, record RequestCharge across representative SDK queries and inspect cross-partition metrics.
Question 231
A read-heavy assistant needs predictable low latency under a constrained Cosmos DB RU budget. After configuring the solution, which measurable result would demonstrate success?
- Both groups independently observe the same new documents without stealing each other's progress.
- VectorDistance top-K queries use the configured vector index and return relevant candidate documents.
- Queries compare vectors from the same model version and pass model-specific retrieval tests.
- The optimized query shows lower median request charge while returning the same expected items.
Explanation
Correct Answer
D:The optimized query shows lower median request charge while returning the same expected items. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Cosmos DB RU consumption depends on the executed query and partition/index selection.
Incorrect Answers
A:Both groups independently observe the same new documents without stealing each other's progress. Here, the optimized query shows lower median request charge while returning the same expected items.
B:VectorDistance top-K queries use the configured vector index and return relevant candidate documents. Here, the optimized query shows lower median request charge while returning the same expected items.
C:Queries compare vectors from the same model version and pass model-specific retrieval tests. Here, the optimized query shows lower median request charge while returning the same expected items.
Question 232
A read-heavy assistant needs predictable low latency under a constrained Cosmos DB RU budget. During a trial, the team sees this problem: An apparently simple search uses far more request units than baseline even with the same document count. Which cause is most consistent?
- The query plan is doing costly cross-partition work or scanning unselective paths.
- The query lacks an appropriate indexed path or selective predicate.
- The collection is below the minimum vector population needed for the approximate index to avoid full-scan behavior.
- The IVFFlat probes setting is too low for the desired recall.
Explanation
Correct Answer
A:The query plan is doing costly cross-partition work or scanning unselective paths. The described symptom and this root cause fit together. Cosmos DB RU consumption depends on the executed query and partition/index selection.
Incorrect Answers
B:The query lacks an appropriate indexed path or selective predicate. Here, the query plan is doing costly cross-partition work or scanning unselective paths.
C:The collection is below the minimum vector population needed for the approximate index to avoid full-scan behavior. Here, the query plan is doing costly cross-partition work or scanning unselective paths.
D:The IVFFlat probes setting is too low for the desired recall. Here, the query plan is doing costly cross-partition work or scanning unselective paths.
Question 233
A document assistant stores embeddings but wants to avoid a consistency mode that returns stale data after a confirmed update in the same session. What primary technical approach is best justified by these constraints?
- Inspect Cosmos DB query metrics and index utilization information alongside client timing.
- Consume the SDK's continuation tokens until the complete query result has been read.
- Use session consistency with session tokens for the expected read-your-writes pattern.
- Include an authorization-scoped tenant identifier in each Redis cache key.
Explanation
Correct Answer
C:Use session consistency with session tokens for the expected read-your-writes pattern. It directly addresses the architecture in this case. Session tokens help maintain read-your-writes guarantees within the intended session context.
Incorrect Answers
A:Inspect Cosmos DB query metrics and index utilization information alongside client timing. Application scaling does not fix a NoSQL query that is poorly indexed or nonselective. Instead, use session consistency with session tokens for the expected read-your-writes pattern.
B:Consume the SDK's continuation tokens until the complete query result has been read. Query pagination requires consuming continuation tokens until no further pages remain. Instead, use session consistency with session tokens for the expected read-your-writes pattern.
D:Include an authorization-scoped tenant identifier in each Redis cache key. Cache identity must include security-relevant context when serving personalized results. Instead, use session consistency with session tokens for the expected read-your-writes pattern.
Question 234
A document assistant stores embeddings but wants to avoid a consistency mode that returns stale data after a confirmed update in the same session. After deciding to use session consistency with session tokens for the expected read-your-writes pattern, what configuration is most relevant?
- Design the delete pipeline to publish an explicit deletion event or use a change feed mode that surfaces deletions where supported.
- Filter on the correct tenantId while ordering bounded results by VectorDistance on the embedding property.
- Implement cache-aside fallback to the source database on a Redis miss or transient outage.
- Preserve and supply the appropriate session token through the Cosmos DB SDK request workflow.
Explanation
Correct Answer
D:Preserve and supply the appropriate session token through the Cosmos DB SDK request workflow. This is the actionable setup step for the selected design. Session tokens help maintain read-your-writes guarantees within the intended session context.
Incorrect Answers
A:Design the delete pipeline to publish an explicit deletion event or use a change feed mode that surfaces deletions where supported. Instead, preserve and supply the appropriate session token through the Cosmos DB SDK request workflow.
B:Filter on the correct tenantId while ordering bounded results by VectorDistance on the embedding property. Instead, preserve and supply the appropriate session token through the Cosmos DB SDK request workflow.
C:Implement cache-aside fallback to the source database on a Redis miss or transient outage. Instead, preserve and supply the appropriate session token through the Cosmos DB SDK request workflow.
Question 235
A document assistant stores embeddings but wants to avoid a consistency mode that returns stale data after a confirmed update in the same session. Which validation result is the strongest evidence that the intended behavior works?
- A subsequent read within the writing session sees the recently committed document version.
- Write RU charges decrease without losing required vector similarity query behavior.
- Container creation accepts the vector policy and similarity queries return results.
- Only ten best-ranking candidate rows are returned for the representative query.
Explanation
Correct Answer
A:A subsequent read within the writing session sees the recently committed document version. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Session tokens help maintain read-your-writes guarantees within the intended session context.
Incorrect Answers
B:Write RU charges decrease without losing required vector similarity query behavior. Here, a subsequent read within the writing session sees the recently committed document version.
C:Container creation accepts the vector policy and similarity queries return results. Here, a subsequent read within the writing session sees the recently committed document version.
D:Only ten best-ranking candidate rows are returned for the representative query. Here, a subsequent read within the writing session sees the recently committed document version.
Question 236
A document assistant stores embeddings but wants to avoid a consistency mode that returns stale data after a confirmed update in the same session. Production telemetry shows: A different stateless worker reads an older replica immediately after another worker writes an item. Which underlying issue should be investigated first?
- The application replaced items without an ETag-based conditional write.
- The caller did not preserve the session consistency token across the workflow.
- The vector policy's distanceFunction does not match the intended cosine measure.
- The SQL query omitted the LIMIT clause after vector ordering.
Explanation
Correct Answer
B:The caller did not preserve the session consistency token across the workflow. The described symptom and this root cause fit together. Session tokens help maintain read-your-writes guarantees within the intended session context.
Incorrect Answers
A:The application replaced items without an ETag-based conditional write. Here, the caller did not preserve the session consistency token across the workflow.
C:The vector policy's distanceFunction does not match the intended cosine measure. Here, the caller did not preserve the session consistency token across the workflow.
D:The SQL query omitted the LIMIT clause after vector ordering. Here, the caller did not preserve the session consistency token across the workflow.
Question 237
A batch ingest service needs to use change streams from Cosmos DB when new knowledge-base documents arrive. Which design decision should the team make first?
- Use the Cosmos DB SDK point read operation rather than a SQL query across the container.
- Use supported bulk execution patterns for independent item ingestion.
- Invalidate the corresponding Redis cache key on authoritative product updates.
- Use the Cosmos DB change feed processor to react to inserted and updated items.
Explanation
Correct Answer
D:Use the Cosmos DB change feed processor to react to inserted and updated items. It directly addresses the architecture in this case. The change feed processor tracks progress with leases and checkpoints to support resumed processing.
Incorrect Answers
A:Use the Cosmos DB SDK point read operation rather than a SQL query across the container. Cosmos DB point reads require both the item identifier and its partition key. Instead, use the Cosmos DB change feed processor to react to inserted and updated items.
B:Use supported bulk execution patterns for independent item ingestion. Bulk ingestion improves utilization but still must handle RU throttling and backoff. Instead, use the Cosmos DB change feed processor to react to inserted and updated items.
C:Invalidate the corresponding Redis cache key on authoritative product updates. TTL alone can leave a stale window; write-driven invalidation shortens it. Instead, use the Cosmos DB change feed processor to react to inserted and updated items.
Question 238
A batch ingest service needs to use change streams from Cosmos DB when new knowledge-base documents arrive. Which concrete setup step puts this selected approach into operation: Use the Cosmos DB change feed processor to react to inserted and updated items.
- Create a change feed processor with a monitored container, lease container and callback handler.
- Iterate query pages using the returned continuation state rather than assuming a single page contains everything.
- Define vectorEmbeddingPolicy dimensions and a matching diskANN vector index path during container setup.
- Set capacity and a suitable eviction policy and track memory usage and key evictions.
Explanation
Correct Answer
A:Create a change feed processor with a monitored container, lease container and callback handler. This is the actionable setup step for the selected design. The change feed processor tracks progress with leases and checkpoints to support resumed processing.
Incorrect Answers
B:Iterate query pages using the returned continuation state rather than assuming a single page contains everything. Instead, create a change feed processor with a monitored container, lease container and callback handler.
C:Define vectorEmbeddingPolicy dimensions and a matching diskANN vector index path during container setup. Instead, create a change feed processor with a monitored container, lease container and callback handler.
D:Set capacity and a suitable eviction policy and track memory usage and key evictions. Instead, create a change feed processor with a monitored container, lease container and callback handler.
Question 239
A batch ingest service needs to use change streams from Cosmos DB when new knowledge-base documents arrive. What outcome should be checked before the engineering change is accepted?
- Transient bursts complete after backoff without infinite manual hot-loop retries.
- New or updated items trigger the callback and persist the expected transformed record.
- Reported index utilization improves after the relevant indexing policy change.
- No expired or retired document chunks appear in prompt context.
Explanation
Correct Answer
B:New or updated items trigger the callback and persist the expected transformed record. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. The change feed processor tracks progress with leases and checkpoints to support resumed processing.
Incorrect Answers
A:Transient bursts complete after backoff without infinite manual hot-loop retries. Here, new or updated items trigger the callback and persist the expected transformed record.
C:Reported index utilization improves after the relevant indexing policy change. Here, new or updated items trigger the callback and persist the expected transformed record.
D:No expired or retired document chunks appear in prompt context. Here, new or updated items trigger the callback and persist the expected transformed record.
Question 240
A batch ingest service needs to use change streams from Cosmos DB when new knowledge-base documents arrive. After rollout the observed failure is: The processor starts but repeatedly reprocesses the same batch after a crash. What best explains it?
- The caller did not preserve the session consistency token across the workflow.
- The vector query omitted or misapplied the tenant filter.
- The callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted.
- The IVFFlat index was created before representative data was available.
Explanation
Correct Answer
C:The callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted. The described symptom and this root cause fit together. The change feed processor tracks progress with leases and checkpoints to support resumed processing.
Incorrect Answers
A:The caller did not preserve the session consistency token across the workflow. Here, the callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted.
B:The vector query omitted or misapplied the tenant filter. Here, the callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted.
D:The IVFFlat index was created before representative data was available. Here, the callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests