account1 という名前の Azure Cosmos DB for NoSQL アカウントに、container1 という名前のコンテナーがあり、セッションの既定の整合性レベルに設定されています。コンテナ 1 内のアイテムの平均サイズは 20 KB です。 Azure Cosmos DB SDK を使用し、container1 内の同じ項目セットに対して毎分ポイント読み取りを実行する App1 という名前のアプリケーションがあります。 App1 による読み取りに関連付けられた要求ユニット (RU) の消費を最小限に抑える必要があります。あなたは何をするべきか?
正解:C
The cost of a point read for a 1 KB item is 1 RU. The cost of other operations depends on factors such as item size, indexing policy, consistency level, and query complexity1. To minimize the consumption of RUs, you can optimize these factors according to your application needs. For your scenario, one possible way to minimize the consumption of RUs associated to the reads by App1 is to change the consistency level of read requests to consistent prefix. Consistent prefix is a lower consistency level than session, which is the default consistency level for Azure Cosmos DB. Lower consistency levels consume fewer RUs than higher consistency levels2. Consistent prefix guarantees that reads never see out-of-order writes and that monotonic reads are preserved1. This may be suitable for your application if you can tolerate some eventual consistency.