QuestionQ42

Optimize an Azure Cosmos DB solution

The settings for a container in an Azure Cosmos DB Core (SQL) API account are configured as shown in the following exhibit.

Question Image

Which statement describes this container configuration?

  • A All items will be deleted after one year.
  • B Items stored in the collection will be retained always, regardless of the items time to live value.
  • C Items stored in the collection will expire only if the item has a time to live value.
  • D All items will be deleted after one hour.
Explanation

With Azure Cosmos DB container TTL set to On (no default), TTL is enabled with a default value of -1, so items do not expire by default. Only items configured with a positive item-level ttl value expire after their specified lifetime.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!