Question 100
A recommendation API queries tenant-specific records without a partition predicate and sees expensive fan-out. Which engineering change is the most direct response to the stated failure and constraint?
Explanation
Correct Answer
This remedy fits the observed case: A recommendation API queries tenant-specific records without a partition predicate and sees expensive fan-out. Add the trusted partition-key value to queries and align tenant routing with the partition design. The underlying issue is Missing partition predicates force cross-partition scans. Direct acceptance evidence is Query metrics show fewer partition ranges and lower RU charge for equivalent results.
Incorrect Answers
Losing the session context can violate expected session read-your-writes behavior. This is a separate requirement; the current case instead hinges on: Missing partition predicates force cross-partition scans. The matching answer is: Add the trusted partition-key value to queries and align tenant routing with the partition design.
The alternative addresses: A no-index policy forces queries to scan without the necessary indexed paths. The reported constraint here is different: Missing partition predicates force cross-partition scans. The case-specific choice is: Add the trusted partition-key value to queries and align tenant routing with the partition design.
Unnecessarily strong consistency can impose avoidable latency or throughput costs. By contrast, the relevant technical condition here is: Missing partition predicates force cross-partition scans. The appropriate selection is: Add the trusted partition-key value to queries and align tenant routing with the partition design.