100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 190
An AI service wants to retrieve one Cosmos DB document when it already knows both the item ID and its partition key. Which concrete setup step puts this selected approach into operation: Use the Cosmos DB SDK point read operation rather than a SQL query across the container.
- Call read_item with the exact item ID and corresponding partition key value.
- Supply the expected ETag in an If-Match conditional replace request.
- Define the container partition key as the immutable customerId property and pass that key in point operations.
- Implement cache-aside fallback to the source database on a Redis miss or transient outage.
Explanation
Correct Answer
A:Call read_item with the exact item ID and corresponding partition key value. This is the actionable setup step for the selected design. Cosmos DB point reads require both the item identifier and its partition key.
Incorrect Answers
B:Supply the expected ETag in an If-Match conditional replace request. Here, call read_item with the exact item ID and corresponding partition key value.
C:Define the container partition key as the immutable customerId property and pass that key in point operations. Here, call read_item with the exact item ID and corresponding partition key value.
D:Implement cache-aside fallback to the source database on a Redis miss or transient outage. Here, call read_item with the exact item ID and corresponding partition key value.
Question 191
An AI service wants to retrieve one Cosmos DB document when it already knows both the item ID and its partition key. What outcome should be checked before the engineering change is accepted?
- Write RU charges decrease without losing required vector similarity query behavior.
- The SDK reads the intended item directly and the recorded request charge is small for its size.
- The optimized query shows lower median request charge while returning the same expected items.
- A second equivalent request hits the cache and avoids the slow backing lookup.
Explanation
Correct Answer
B:The SDK reads the intended item directly and the recorded request charge is small for its size. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Cosmos DB point reads require both the item identifier and its partition key.
Incorrect Answers
A:Write RU charges decrease without losing required vector similarity query behavior. Here, the SDK reads the intended item directly and the recorded request charge is small for its size.
C:The optimized query shows lower median request charge while returning the same expected items. Here, the SDK reads the intended item directly and the recorded request charge is small for its size.
D:A second equivalent request hits the cache and avoids the slow backing lookup. Here, the SDK reads the intended item directly and the recorded request charge is small for its size.
Question 192
An AI service wants to retrieve one Cosmos DB document when it already knows both the item ID and its partition key. After rollout the observed failure is: The item exists but a point read returns a not-found response for a known ID. What best explains it?
- The callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted.
- The collection is below the minimum vector population needed for the approximate index to avoid full-scan behavior.
- The supplied partition key differs from the item's stored logical partition key.
- The cache key omits the tenant or authorization scope.
Explanation
Correct Answer
C:The supplied partition key differs from the item's stored logical partition key. The described symptom and this root cause fit together. Cosmos DB point reads require both the item identifier and its partition key.
Incorrect Answers
A:The callback fails to complete checkpoint progress or the lease/checkpoint state is not persisted. Here, the supplied partition key differs from the item's stored logical partition key.
B:The collection is below the minimum vector population needed for the approximate index to avoid full-scan behavior. Here, the supplied partition key differs from the item's stored logical partition key.
D:The cache key omits the tenant or authorization scope. Here, the supplied partition key differs from the item's stored logical partition key.
Question 193
An embedding pipeline ingests thousands of new product records and should avoid overwriting existing record IDs accidentally. Which architecture most directly addresses the required outcome?
- Use a create operation with explicit identifiers and handle conflict responses intentionally.
- Plan a new compatible container or documented migration for vector-policy changes that cannot be modified in place.
- Use separate logical lease namespaces or lease containers for independent change feed processor groups.
- Use a selective relational index for the region predicate alongside an appropriate vector retrieval strategy.
Explanation
Correct Answer
A:Use a create operation with explicit identifiers and handle conflict responses intentionally. It directly addresses the architecture in this case. Cosmos DB create differs from upsert: upsert can replace an existing item with the same key.
Incorrect Answers
B:Plan a new compatible container or documented migration for vector-policy changes that cannot be modified in place. Vector embedding and indexing policy mutability is constrained and should be designed early. Instead, use a create operation with explicit identifiers and handle conflict responses intentionally.
C:Use separate logical lease namespaces or lease containers for independent change feed processor groups. Independent change feed processor groups need separate lease coordination when both must process all changes. Instead, use a create operation with explicit identifiers and handle conflict responses intentionally.
D:Use a selective relational index for the region predicate alongside an appropriate vector retrieval strategy. Relational filters and vector distance ranking solve different constraints and both must be applied. Instead, use a create operation with explicit identifiers and handle conflict responses intentionally.
Question 194
An embedding pipeline ingests thousands of new product records and should avoid overwriting existing record IDs accidentally. The team has selected this architecture: Use a create operation with explicit identifiers and handle conflict responses intentionally. Which action correctly implements it?
- Create a change feed processor with a monitored container, lease container and callback handler.
- Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
- Create a TransactionalBatch for the shared partition key with both item operations.
- Create a driver connection using the authorized connection URI and required SSL mode or certificate verification.
Explanation
Correct Answer
B:Use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record. This is the actionable setup step for the selected design. Cosmos DB create differs from upsert: upsert can replace an existing item with the same key.
Incorrect Answers
A:Create a change feed processor with a monitored container, lease container and callback handler. Instead, use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
C:Create a TransactionalBatch for the shared partition key with both item operations. Instead, use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
D:Create a driver connection using the authorized connection URI and required SSL mode or certificate verification. Instead, use create_item for new product IDs and handle HTTP conflict instead of silently replacing a record.
Question 195
An embedding pipeline ingests thousands of new product records and should avoid overwriting existing record IDs accidentally. After configuring the solution, which measurable result would demonstrate success?
- Read requests from the regional app prefer the configured healthy nearby replica.
- Reported index utilization improves after the relevant indexing policy change.
- An attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings.
- A second equivalent request hits the cache and avoids the slow backing lookup.
Explanation
Correct Answer
C:An attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Cosmos DB create differs from upsert: upsert can replace an existing item with the same key.
Incorrect Answers
A:Read requests from the regional app prefer the configured healthy nearby replica. Here, an attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings.
B:Reported index utilization improves after the relevant indexing policy change. Here, an attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings.
D:A second equivalent request hits the cache and avoids the slow backing lookup. Here, an attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings.
Question 196
An embedding pipeline ingests thousands of new product records and should avoid overwriting existing record IDs accidentally. During a trial, the team sees this problem: An update flow silently replaces a previously curated embedding using the same document ID. Which cause is most consistent?
- The container partition key is unrelated to the customer lookup pattern.
- The application replaced items without an ETag-based conditional write.
- The new model emits vectors with different dimensions than the existing column.
- The workflow used an upsert operation where strict create-only semantics were required.
Explanation
Correct Answer
D:The workflow used an upsert operation where strict create-only semantics were required. The described symptom and this root cause fit together. Cosmos DB create differs from upsert: upsert can replace an existing item with the same key.
Incorrect Answers
A:The container partition key is unrelated to the customer lookup pattern. Here, the workflow used an upsert operation where strict create-only semantics were required.
B:The application replaced items without an ETag-based conditional write. Here, the workflow used an upsert operation where strict create-only semantics were required.
C:The new model emits vectors with different dimensions than the existing column. Here, the workflow used an upsert operation where strict create-only semantics were required.
Question 197
A web app stores user preferences in a NoSQL collection and wants optimistic updates without losing concurrent edits. What primary technical approach is best justified by these constraints?
- Use separate logical lease namespaces or lease containers for independent change feed processor groups.
- Use item ETags and conditional writes for concurrency control.
- Choose a partition key aligned with the customer identifier used in most requests.
- Use a pgvector HNSW index with the matching distance operator class.
Explanation
Correct Answer
B:Use item ETags and conditional writes for concurrency control. It directly addresses the architecture in this case. Optimistic concurrency makes a stale ETag fail rather than silently losing an update.
Incorrect Answers
A:Use separate logical lease namespaces or lease containers for independent change feed processor groups. Independent change feed processor groups need separate lease coordination when both must process all changes. Instead, use item ETags and conditional writes for concurrency control.
C:Choose a partition key aligned with the customer identifier used in most requests. Partition-aware queries avoid unnecessary fan-out when the application knows the partition value. Instead, use item ETags and conditional writes for concurrency control.
D:Use a pgvector HNSW index with the matching distance operator class. pgvector index use depends on matching the query distance operator and index operator class. Instead, use item ETags and conditional writes for concurrency control.
Question 198
A web app stores user preferences in a NoSQL collection and wants optimistic updates without losing concurrent edits. After deciding to use item ETags and conditional writes for concurrency control, what configuration is most relevant?
- Create a compatible 1536-dimensional vector policy with a matching supported vector-index type.
- Create a TransactionalBatch for the shared partition key with both item operations.
- Supply the expected ETag in an If-Match conditional replace request.
- Index tenant metadata alongside embeddings and include a tenant predicate in the KNN query.
Explanation
Correct Answer
C:Supply the expected ETag in an If-Match conditional replace request. This is the actionable setup step for the selected design. Optimistic concurrency makes a stale ETag fail rather than silently losing an update.
Incorrect Answers
A:Create a compatible 1536-dimensional vector policy with a matching supported vector-index type. Instead, supply the expected ETag in an If-Match conditional replace request.
B:Create a TransactionalBatch for the shared partition key with both item operations. Instead, supply the expected ETag in an If-Match conditional replace request.
D:Index tenant metadata alongside embeddings and include a tenant predicate in the KNN query. Instead, supply the expected ETag in an If-Match conditional replace request.
Question 199
A web app stores user preferences in a NoSQL collection and wants optimistic updates without losing concurrent edits. Which validation result is the strongest evidence that the intended behavior works?
- Read requests from the regional app prefer the configured healthy nearby replica.
- An attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings.
- ANN index benchmark results can be scored against the exact result IDs.
- A stale write is rejected rather than overwriting a newer preferences document.
Explanation
Correct Answer
D:A stale write is rejected rather than overwriting a newer preferences document. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Optimistic concurrency makes a stale ETag fail rather than silently losing an update.
Incorrect Answers
A:Read requests from the regional app prefer the configured healthy nearby replica. Here, a stale write is rejected rather than overwriting a newer preferences document.
B:An attempted duplicate ID in the same partition returns a conflict instead of overwriting existing embeddings. Here, a stale write is rejected rather than overwriting a newer preferences document.
C:ANN index benchmark results can be scored against the exact result IDs. Here, a stale write is rejected rather than overwriting a newer preferences document.
Question 200
A web app stores user preferences in a NoSQL collection and wants optimistic updates without losing concurrent edits. Production telemetry shows: Two concurrent users overwrite each other's updates without any conflict warning. Which underlying issue should be investigated first?
- The application replaced items without an ETag-based conditional write.
- The indexing policy includes fields that the application never filters or sorts on.
- The vector query omitted or misapplied the tenant filter.
- The vector-result cache is not invalidated after the underlying document changes.
Explanation
Correct Answer
A:The application replaced items without an ETag-based conditional write. The described symptom and this root cause fit together. Optimistic concurrency makes a stale ETag fail rather than silently losing an update.
Incorrect Answers
B:The indexing policy includes fields that the application never filters or sorts on. Here, the application replaced items without an ETag-based conditional write.
C:The vector query omitted or misapplied the tenant filter. Here, the application replaced items without an ETag-based conditional write.
D:The vector-result cache is not invalidated after the underlying document changes. Here, the application replaced items without an ETag-based conditional write.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests