Azure Cosmos DB for NoSQL アカウントにコンテナがあります。このコンテナには家族に関するデータが格納されています。親、子供、ペットに関するデータは、それぞれ別のドキュメントとして保存されます。 各文書には、各家族の住所が記載されています。同じ家族のメンバーは、familyId という名前の同じパーティションキーを共有します。 同じ住所を共有する同一家族のメンバー全員の住所を更新する必要があります。解決策は以下の要件を満たす必要があります。 - 原子性、一貫性、分離性、耐久性(ACID)を備えていること。 - 最低遅延を実現します。 あなたはどうすべきですか?
正解:C
Each transaction provides ACID (Atomicity, Consistency, Isolation, Durability) property guarantees. Transactional batch operations offer reduced latency on equivalent operations. Note: Transactional batch describes a group of point operations that need to either succeed or fail together with the same partition key in a container. In the .NET SDK, the TransactionalBatch class is used to define this batch of operations. If all operations succeed in the order they are described within the transactional batch operation, the transaction will be committed. However, if any operation fails, the entire transaction is rolled back. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/transactional-batch