Question 60
In an Azure AI application: A multitenant document-retrieval API queries every item using tenantId but stores all customers in one logical partition. What underlying service behavior is most relevant?
Explanation
Correct Answer
A suitable Cosmos DB partition key distributes load and enables efficient tenant-scoped queries across physical partitions. The scenario specifically states: A multitenant document-retrieval API queries every item using tenantId but stores all customers in one logical partition. A suitable Cosmos DB partition key distributes load and enables efficient tenant-scoped queries across physical partitions. The stated requirement hinges on the exact service behavior, not a different component. The decisive evidence to inspect is Review partition key definition, logical-partition sizes and query RU per tenant. The important remaining qualification is: A poor tenant distribution can create hot partitions even when requests specify the key.
Incorrect Answers
Cosmos DB transactional batches are atomic within one logical partition key. In the present case the governing issue is A suitable Cosmos DB partition key distributes load and, which this does not resolve.
Vector search must combine similarity ranking with application authorization and tenant-scoped filters. That observation may hold without resolving the relevant issue: A suitable Cosmos DB partition key distributes load and.
Cosmos DB point reads use id plus partition key and are typically cheaper than SQL queries for exact items. It does not verify the requested outcome; here the decisive check concerns A suitable Cosmos DB partition key distributes load and.