nerdexam
Amazon

DBS-C01 · Question #213

A company stores session history for its users in an Amazon DynamoDB table. The company has a large user base and generates large amounts of session data. Teams analyze the session data for 1 week…

The correct answer is D. Enable TTL on the DynamoDB table and set a Number data type as the TTL attribute. Textbook question for TTL - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html

Submitted by priya_blr· Mar 6, 2026Management and Operations

Question

A company stores session history for its users in an Amazon DynamoDB table. The company has a large user base and generates large amounts of session data. Teams analyze the session data for 1 week, and then the data is no longer needed. A database specialist needs to design an automated solution to purge session data that is more than 1 week old. Which strategy meets these requirements with the MOST operational efficiency?

Options

  • ACreate an AWS Step Functions state machine with a DynamoDB DeleteItem operation that uses
  • BCreate an AWS Lambda function to delete items older than a week from the DynamoDB table.
  • CEnable Amazon DynamoDB Streams on the table. Use a stream to invoke an AWS Lambda
  • DEnable TTL on the DynamoDB table and set a Number data type as the TTL attribute.

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    14% (5)
  • D
    74% (26)

Explanation

Textbook question for TTL - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html

Topics

#DynamoDB TTL#Data lifecycle management#Automated data purging#Operational efficiency

Community Discussion

No community discussion yet for this question.

Full DBS-C01 Practice