nerdexam
MicrosoftMicrosoft

DP-420 · Question #16

DP-420 Question #16: Real Exam Question with Answer & Explanation

The correct answer is C: Items stored in the collection will expire only if the item has a time to live value.. {"question_number": 4, "question_summary": "Understanding a Cosmos DB container TTL configuration from an exhibit", "correct_answer": "C", "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

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?

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.

Explanation

{"question_number": 4, "question_summary": "Understanding a Cosmos DB container TTL configuration from an exhibit", "correct_answer": "C", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

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

Community Discussion

No community discussion yet for this question.

Full DP-420 PracticeBrowse All DP-420 Questions