nerdexam
Microsoft

DP-420 · Question #16

The settings for a container in an Azure Cosmos DB for NoSQL account are configured as shown in the following exhibit. Which statement describes the configuration of the container?

The correct answer is C. Items stored in the collection will expire only if the item has a time to live value. The correct answer is C: Items will expire only if the item has a time to live value. This behavior occurs when the container's TTL is set to 'On (no default)' - meaning TTL is enabled at the container level, but no default expiration is set. Under this configuration, items…

Design and implement data models

Question

The settings for a container in an Azure Cosmos DB for NoSQL account are configured as shown in the following exhibit. Which statement describes the configuration of the container?

Exhibit

DP-420 question #16 exhibit

Options

  • AAll items will be deleted after one year.
  • BItems stored in the collection will be retained always, regardless of the items time to live value.
  • CItems stored in the collection will expire only if the item has a time to live value.
  • DAll items will be deleted after one hour.

How the community answered

(31 responses)
  • A
    3% (1)
  • C
    90% (28)
  • D
    6% (2)

Explanation

The correct answer is C: Items will expire only if the item has a time to live value. This behavior occurs when the container's TTL is set to 'On (no default)' - meaning TTL is enabled at the container level, but no default expiration is set. Under this configuration, items without an individual ttl property are retained indefinitely, while items that explicitly include a ttl property will be deleted after that many seconds. Option A (deleted after one year) and D (deleted after one hour) would both require a specific default TTL value to be configured on the container. Option B describes the behavior when TTL is completely disabled.

Topics

#Azure Cosmos DB#Time to Live (TTL)#Container settings#Data lifecycle

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice