Developing AI Cloud Solutions on Azure AI-200 Practice Test 19
Question 180
A semantic retrieval workflow sends a query vector produced by a different embedding model with incompatible dimensions. After the planned remediation, which result should an engineer record after the change?
- Stored vectors and query vectors share dimensions and produce relevant authorized results
- Query metrics show improved indexed execution and acceptable RU consumption
- Authorized query retrieves the expected nearest neighbors without cross-tenant records
- A tenant-scoped SDK query returns only matching records with lower cross-partition RU usage
Explanation
Correct Answer
A:Stored vectors and query vectors share dimensions and produce relevant authorized results. This directly verifies that the required change, Generate query embeddings with a compatible model and validate the configured vector dimensions, produced the specified outcome.
Incorrect Answers
B:Query metrics show improved indexed execution and acceptable RU consumption. The decisive condition here is different: stored vectors and query vectors share dimensions and produce relevant authorized results.
C:Authorized query retrieves the expected nearest neighbors without cross-tenant records. In this question, stored vectors and query vectors share dimensions and produce relevant authorized results.
D:A tenant-scoped SDK query returns only matching records with lower cross-partition RU usage. This does not establish the required control: stored vectors and query vectors share dimensions and produce relevant authorized results.
Question 181
An AI indexing service must react to new Cosmos DB documents but periodically polling the entire container is too expensive. A reviewer recommends: Use the Cosmos DB change feed processor with lease management and an idempotent handler. What is the key mechanism behind this approach?
- Processor checkpoint state determines restart position and historic replay requirements
- Parameterized queries separate query structure from untrusted values
- Session consistency offers session-scoped read-your-writes without global strong-consistency overhead
- Change feed checkpoints track incremental item changes and permit distributed processing
Explanation
Correct Answer
D:Change feed checkpoints track incremental item changes and permit distributed processing. This is the behavior that makes Use the Cosmos DB change feed processor with lease management and an idempotent handler appropriate for the given scenario.
Incorrect Answers
A:Processor checkpoint state determines restart position and historic replay requirements. The decisive condition here is different: change feed checkpoints track incremental item changes and permit distributed processing.
B:Parameterized queries separate query structure from untrusted values. In this question, change feed checkpoints track incremental item changes and permit distributed processing.
C:Session consistency offers session-scoped read-your-writes without global strong-consistency overhead. This does not establish the required control: change feed checkpoints track incremental item changes and permit distributed processing.
Question 182
An AI indexing service must react to new Cosmos DB documents but periodically polling the entire container is too expensive. A team instead suggests: "Run a full container SELECT query every five seconds." What important requirement remains unmet?
- Change feed checkpoints track incremental item changes and permit distributed processing
- Cross-partition fan-out generally increases query work
- Management-plane Reader is not sufficient for Cosmos DB data operations
- Repeated broad queries waste RUs and can miss efficient processing requirements
Explanation
Correct Answer
D:Repeated broad queries waste RUs and can miss efficient processing requirements. The proposal Run a full container SELECT query every five seconds cannot meet the requirement; Use the Cosmos DB change feed processor with lease management and an idempotent handler is the targeted remediation.
Incorrect Answers
A:Change feed checkpoints track incremental item changes and permit distributed processing. In this question, repeated broad queries waste RUs and can miss efficient processing requirements.
B:Cross-partition fan-out generally increases query work. This does not establish the required control: repeated broad queries waste RUs and can miss efficient processing requirements.
C:Management-plane Reader is not sufficient for Cosmos DB data operations. The decisive condition here is different: repeated broad queries waste RUs and can miss efficient processing requirements.
Question 183
An AI indexing service must react to new Cosmos DB documents but periodically polling the entire container is too expensive. After the planned remediation, which test result would demonstrate the requirement is satisfied?
- An equivalent query targets the tenant partition and reports reduced RUs
- An insert triggers one logical indexing update and the lease checkpoint advances
- A managed-identity client reads the intended container but cannot access others
- Controlled restart resumes from the documented checkpoint without dropping updates
Explanation
Correct Answer
B:An insert triggers one logical indexing update and the lease checkpoint advances. This directly verifies that the required change, Use the Cosmos DB change feed processor with lease management and an idempotent handler, produced the specified outcome.
Incorrect Answers
A:An equivalent query targets the tenant partition and reports reduced RUs. This does not establish the required control: an insert triggers one logical indexing update and the lease checkpoint advances.
C:A managed-identity client reads the intended container but cannot access others. In this question, an insert triggers one logical indexing update and the lease checkpoint advances.
D:Controlled restart resumes from the documented checkpoint without dropping updates. This does not establish the required control: an insert triggers one logical indexing update and the lease checkpoint advances.
Question 184
An AI indexing service must react to new Cosmos DB documents but periodically polling the entire container is too expensive. Which change should the developer make?
- Use the Cosmos DB change feed processor with lease management and an idempotent handler
- Run a full container SELECT query every five seconds
- Add an explicit tenant filter to the vector query and enforce authorization at the application boundary
- Make downstream indexing updates idempotent using item identity and version
Explanation
Correct Answer
A:Use the Cosmos DB change feed processor with lease management and an idempotent handler. Change feed checkpoints track incremental item changes and permit distributed processing. Evidence: an insert triggers one logical indexing update and the lease checkpoint advances.
Incorrect Answers
B:Repeated broad queries waste RUs and can miss efficient processing requirements. In this question, use the Cosmos DB change feed processor with lease management and an idempotent handler.
C:Add an explicit tenant filter to the vector query and enforce authorization at the application boundary. This does not establish the required control: use the Cosmos DB change feed processor with lease management and an idempotent handler.
D:Make downstream indexing updates idempotent using item identity and version. The decisive condition here is different: use the Cosmos DB change feed processor with lease management and an idempotent handler.
Question 185
A Cosmos change feed processor processes a document, crashes before committing its lease checkpoint and then sees the document again. A team instead suggests: "Assume change feed delivery is exactly once and allow duplicate side effects." What is the decisive flaw in that proposal?
- Exactly-once side effects are not guaranteed by redelivery semantics
- Excluding the filter path can force expensive scans
- At-least-once processing can redeliver changes after a failure before checkpointing
- Busy-loop retries can amplify RU throttling and increase load
Explanation
Correct Answer
A:Exactly-once side effects are not guaranteed by redelivery semantics. The proposal Assume change feed delivery is exactly once and allow duplicate side effects cannot meet the requirement; Make downstream indexing updates idempotent using item identity and version is the targeted remediation.
Incorrect Answers
B:Excluding the filter path can force expensive scans. This does not establish the required control: exactly-once side effects are not guaranteed by redelivery semantics.
C:At-least-once processing can redeliver changes after a failure before checkpointing. The decisive condition here is different: exactly-once side effects are not guaranteed by redelivery semantics.
D:Busy-loop retries can amplify RU throttling and increase load. In this question, exactly-once side effects are not guaranteed by redelivery semantics.
Question 186
A Cosmos change feed processor processes a document, crashes before committing its lease checkpoint and then sees the document again. After the planned remediation, what observable outcome would validate the solution?
- A quote-containing test input remains a literal parameter and returns the expected records
- The indexed container executes VectorDistance queries on 1536-dimensional vectors
- Crash/replay testing produces one final index record for the document version
- Authorized query retrieves the expected nearest neighbors without cross-tenant records
Explanation
Correct Answer
C:Crash/replay testing produces one final index record for the document version. This directly verifies that the required change, Make downstream indexing updates idempotent using item identity and version, produced the specified outcome.
Incorrect Answers
A:A quote-containing test input remains a literal parameter and returns the expected records. This does not establish the required control: crash/replay testing produces one final index record for the document version.
B:The indexed container executes VectorDistance queries on 1536-dimensional vectors. The decisive condition here is different: crash/replay testing produces one final index record for the document version.
D:Authorized query retrieves the expected nearest neighbors without cross-tenant records. This does not establish the required control: crash/replay testing produces one final index record for the document version.
Question 187
A Cosmos change feed processor processes a document, crashes before committing its lease checkpoint and then sees the document again. What is the most defensible next technical step?
- Include the tenant partition key in query requests and inspect query metrics
- Investigate logical partition key distribution and redesign a hot key or workload routing
- Assume change feed delivery is exactly once and allow duplicate side effects
- Make downstream indexing updates idempotent using item identity and version
Explanation
Correct Answer
D:Make downstream indexing updates idempotent using item identity and version. At-least-once processing can redeliver changes after a failure before checkpointing. Evidence: crash/replay testing produces one final index record for the document version.
Incorrect Answers
A:Include the tenant partition key in query requests and inspect query metrics. The decisive condition here is different: make downstream indexing updates idempotent using item identity and version.
B:Investigate logical partition key distribution and redesign a hot key or workload routing. In this question, make downstream indexing updates idempotent using item identity and version.
C:Exactly-once side effects are not guaranteed by redelivery semantics. This does not establish the required control: make downstream indexing updates idempotent using item identity and version.
Question 188
A Cosmos change feed processor processes a document, crashes before committing its lease checkpoint and then sees the document again. A reviewer recommends: Make downstream indexing updates idempotent using item identity and version. Which underlying behavior justifies the implementation?
- At-least-once processing can redeliver changes after a failure before checkpointing
- A hot logical partition can throttle independently of aggregate throughput availability
- Vector distance requires matching vector shape and a meaningful shared embedding space
- Partition-aware queries reduce cross-partition work and constrain tenant access at the query layer
Explanation
Correct Answer
A:At-least-once processing can redeliver changes after a failure before checkpointing. This is the behavior that makes Make downstream indexing updates idempotent using item identity and version appropriate for the given scenario.
Incorrect Answers
B:A hot logical partition can throttle independently of aggregate throughput availability. This does not establish the required control: at-least-once processing can redeliver changes after a failure before checkpointing.
C:Vector distance requires matching vector shape and a meaningful shared embedding space. The decisive condition here is different: at-least-once processing can redeliver changes after a failure before checkpointing.
D:Partition-aware queries reduce cross-partition work and constrain tenant access at the query layer. In this question, at-least-once processing can redeliver changes after a failure before checkpointing.
Question 189
Two Cosmos DB change feed workers are given the same lease container and must divide partition ranges without duplicate uncontrolled polling. After the planned remediation, which test result would demonstrate the requirement is satisfied?
- Query metrics show improved indexed execution and acceptable RU consumption
- Stored vectors and query vectors share dimensions and produce relevant authorized results
- Workers redistribute leases after failure and continue from stored checkpoints
- An insert triggers one logical indexing update and the lease checkpoint advances
Explanation
Correct Answer
C:Workers redistribute leases after failure and continue from stored checkpoints. This directly verifies that the required change, Use the change feed processor's lease coordination and configure a stable processor identity, produced the specified outcome.
Incorrect Answers
A:Query metrics show improved indexed execution and acceptable RU consumption. This does not establish the required control: workers redistribute leases after failure and continue from stored checkpoints.
B:Stored vectors and query vectors share dimensions and produce relevant authorized results. The decisive condition here is different: workers redistribute leases after failure and continue from stored checkpoints.
D:An insert triggers one logical indexing update and the lease checkpoint advances. This does not establish the required control: workers redistribute leases after failure and continue from stored checkpoints.
Question 190
Two Cosmos DB change feed workers are given the same lease container and must divide partition ranges without duplicate uncontrolled polling. Which design best meets the requirement?
- Use the change feed processor's lease coordination and configure a stable processor identity
- Investigate logical partition key distribution and redesign a hot key or workload routing
- Have both workers independently scan every partition on a timer
- Review and configure an indexing policy that covers frequently filtered paths
Explanation
Correct Answer
A:Use the change feed processor's lease coordination and configure a stable processor identity. Lease ownership coordinates partition processing and continuation positions. Evidence: workers redistribute leases after failure and continue from stored checkpoints.
Incorrect Answers
B:Investigate logical partition key distribution and redesign a hot key or workload routing. In this question, use the change feed processor's lease coordination and configure a stable processor identity.
C:Uncoordinated scans duplicate work and abandon managed checkpointing. This does not establish the required control: use the change feed processor's lease coordination and configure a stable processor identity.
D:Review and configure an indexing policy that covers frequently filtered paths. The decisive condition here is different: use the change feed processor's lease coordination and configure a stable processor identity.