Question 360
An API stores a Cosmos DB account key in a Python config file and wants the app to authenticate without static account keys. After implementing the targeted fix, which observation is the strongest direct acceptance evidence?
Explanation
Correct Answer
This is a direct, observable acceptance check for the case: An API stores a Cosmos DB account key in a Python config file and wants the app to authenticate without static account keys. The intended corrective action is Use supported Microsoft Entra identity authentication with suitable Cosmos DB data-plane roles. The specific verification is The app queries only its authorized containers using an identity token and no account key.
Incorrect Answers
Repeated client construction defeats intended SDK connection reuse. This is a separate requirement; the current case instead hinges on: This is a direct, observable acceptance check for the case: An API stores a Cosmos DB account key in a Python config file and wants the app to authenticate without static account keys. The matching answer is: The app queries only its authorized containers using an identity token and no account key.
The alternative addresses: The client treats a single response page as the entire logical query result. The reported constraint here is different: This is a direct, observable acceptance check for the case: An API stores a Cosmos DB account key in a Python config file and wants the app to authenticate without static account keys. The case-specific choice is: The app queries only its authorized containers using an identity token and no account key.
The request rate briefly exceeds available RU/s capacity. By contrast, the relevant technical condition here is: This is a direct, observable acceptance check for the case: An API stores a Cosmos DB account key in a Python config file and wants the app to authenticate without static account keys. The appropriate selection is: The app queries only its authorized containers using an identity token and no account key.