Azure Cosmos DB for NoSQL データベースがあり、その中に Container1 という名前のコンテナが存在します。 Container1の場合、DefaultTimeToLiveプロパティは-1です。 Container1にアイテムを挿入します。挿入されたアイテムのttlプロパティは1000です。 アイテムはいつ自動的に削除されますか?
正解:C
The item will be deleted after 1,000 seconds (approximately 16.7 minutes) from the time it was last modified. In Azure Cosmos DB, the Time to Live (TTL) logic follows a specific hierarchy of precedence: TTL Logic Breakdown Container Level (DefaultTimeToLive = -1): This setting enables TTL for the container but instructs Cosmos DB to never expire items by default. Item Level (ttl = 1000): When an individual item has a ttl property, it overrides the container-level setting. The Result: Because the item-level value is a positive integer, the system honors that specific duration for that specific item. Reference: https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-time-to-live