Question 885 of 1,730
Workload-Specific Database DesigneasyMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that the TimeToLiveSpecification enables DynamoDB to automatically delete items after the specified timestamp. This works by defining a TTL attribute—such as 'expire_time'—that stores an epoch timestamp value; when the current time surpasses that value, DynamoDB asynchronously and without consuming write capacity removes the item from the table. On the AWS Certified Database Specialty DBS-C01 exam, this concept tests your understanding of cost-effective data lifecycle management, often appearing in CloudFormation template analysis questions where a common trap is confusing TTL with conditional writes or forgetting that deleted items do not count against provisioned throughput. A reliable memory tip is to think of TTL as a "self-destruct timer" for each row: once the clock runs out, DynamoDB cleans house automatically, saving you from writing custom cleanup code.

DBS-C01 Workload-Specific Database Design Practice Question

This DBS-C01 practice question tests your understanding of workload-specific database design. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.

Consider the following CloudFormation template snippet:

Resources:
  MyDynamoDBTable:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: "UserSessions"
      AttributeDefinitions:
        - AttributeName: "user_id"
          AttributeType: "S"
        - AttributeName: "session_id"
          AttributeType: "S"
      KeySchema:
        - AttributeName: "user_id"
          KeyType: "HASH"
        - AttributeName: "session_id"
          KeyType: "RANGE"
      ProvisionedThroughput:
        ReadCapacityUnits: 5
        WriteCapacityUnits: 5
      TimeToLiveSpecification:
        AttributeName: "expire_time"
        Enabled: true

What is the purpose of the 'TimeToLiveSpecification' in this template?

Question 1easymultiple choice
Full question →

Exhibit

Refer to the exhibit.

Consider the following CloudFormation template snippet:

Resources:
  MyDynamoDBTable:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: "UserSessions"
      AttributeDefinitions:
        - AttributeName: "user_id"
          AttributeType: "S"
        - AttributeName: "session_id"
          AttributeType: "S"
      KeySchema:
        - AttributeName: "user_id"
          KeyType: "HASH"
        - AttributeName: "session_id"
          KeyType: "RANGE"
      ProvisionedThroughput:
        ReadCapacityUnits: 5
        WriteCapacityUnits: 5
      TimeToLiveSpecification:
        AttributeName: "expire_time"
        Enabled: true

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

It enables DynamoDB to automatically delete items after the specified timestamp

The 'TimeToLiveSpecification' in an AWS DynamoDB CloudFormation template enables DynamoDB's Time to Live (TTL) feature, which automatically deletes items when the current time exceeds the epoch timestamp value stored in the specified attribute (e.g., 'expire_time'). This is a cost-effective way to manage data retention without requiring custom delete logic or additional write capacity.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • It enables DynamoDB to automatically delete items after the specified timestamp

    Why this is correct

    TTL deletes items when the timestamp is reached.

    Related concept

    Read the scenario before looking for a memorised answer.

  • It enforces that the 'expire_time' attribute must be unique

    Why it's wrong here

    TTL does not enforce uniqueness.

  • It automatically updates the 'expire_time' attribute when an item is read

    Why it's wrong here

    TTL does not update attributes.

  • It creates a backup of items that have expired

    Why it's wrong here

    TTL deletes items; backups must be configured separately.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse TTL with a feature that actively manages or updates timestamps, when in reality TTL is a passive, background deletion mechanism that only reads the existing attribute value and never modifies it.

Detailed technical explanation

How to think about this question

Under the hood, DynamoDB TTL checks the epoch timestamp attribute (in seconds) and marks items for deletion once the timestamp is past. The actual deletion is a background process that typically occurs within 48 hours, not instantly. A subtle behavior is that TTL does not consume write capacity for deletions, making it ideal for large-scale data expiration, but you must ensure the attribute is a Number type with a valid Unix epoch timestamp to avoid unintended immediate deletion.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DBS-C01 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DBS-C01 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DBS-C01 question test?

Workload-Specific Database Design — This question tests Workload-Specific Database Design — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: It enables DynamoDB to automatically delete items after the specified timestamp — The 'TimeToLiveSpecification' in an AWS DynamoDB CloudFormation template enables DynamoDB's Time to Live (TTL) feature, which automatically deletes items when the current time exceeds the epoch timestamp value stored in the specified attribute (e.g., 'expire_time'). This is a cost-effective way to manage data retention without requiring custom delete logic or additional write capacity.

What should I do if I get this DBS-C01 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DBS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DBS-C01 exam.