AZ-204 · Question #553
Drag and Drop Question You have an Azure Cosmos DB for NoSQL API account named account1 and a database named db1. An application named app1 will access db1 to perform read and write operations. You…
The correct answer is app1; account1. For read operations, the consistency level should be configured in app1 (the client/SDK level) because Azure Cosmos DB allows overriding the default consistency on a per-operation basis through the request options in the SDK, which satisfies the requirement to enforce…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- app1
- account1
Explanation
For read operations, the consistency level should be configured in app1 (the client/SDK level) because Azure Cosmos DB allows overriding the default consistency on a per-operation basis through the request options in the SDK, which satisfies the requirement to enforce consistency 'whenever possible' at the most granular level. For write operations, the consistency level must be configured at account1 (the account level) because Cosmos DB does not support overriding consistency levels for write operations on a per-request basis - the write consistency is always governed by the account-level default setting. The database (db1) itself has no consistency level configuration option in Azure Cosmos DB.
Topics
Community Discussion
No community discussion yet for this question.
