AZ-204 · Question #477
You are updating an application that stores data on Azure and uses Azure Cosmos DB for storage. The application stores data in multiple documents associated with a single username. The application…
The correct answer is C. Create an unsharded collection to store documents. D. Configure Azure Cosmos DB to use the MongoDB API. To update multiple documents for a username in a single ACID operation in Azure Cosmos DB, you need to ensure that the documents are stored in the same logical partition. To do this, you should perform the following actions: Create an unsharded collection to store documents…
Question
Options
- ACreate a collection sharded on username to store documents.
- BConfigure Azure Cosmos DB to use the Gremlin API.
- CCreate an unsharded collection to store documents.
- DConfigure Azure Cosmos DB to use the MongoDB API.
How the community answered
(29 responses)- A14% (4)
- B3% (1)
- C83% (24)
Explanation
To update multiple documents for a username in a single ACID operation in Azure Cosmos DB, you need to ensure that the documents are stored in the same logical partition. To do this, you should perform the following actions: Create an unsharded collection to store documents. This will ensure that all documents are stored in the same logical partition. Configure Azure Cosmos DB to use the MongoDB API. The MongoDB API supports multi- document ACID transactions, which allow you to update multiple documents in a single atomic https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/use-multi-document- transactions#requirements
Topics
Community Discussion
No community discussion yet for this question.