10.7k views
5 votes
What is a primary use case of DynamoDB Time to Live (TTL)?

A) Automatically delete expired items from a DynamoDB table.
B) Encrypt data at rest in DynamoDB.
C) Create secondary indexes in DynamoDB.
D) Monitor DynamoDB table performance.

User Willise
by
8.0k points

1 Answer

5 votes

Final answer:

The primary use case of DynamoDB Time to Live (TTL) is to automatically delete expired items from a DynamoDB table.

Step-by-step explanation:

The primary use case of DynamoDB Time to Live (TTL) is to automatically delete expired items from a DynamoDB table. When you enable TTL on a DynamoDB table, you can specify a timestamp attribute for each item. After the specified timestamp has passed, DynamoDB automatically deletes the item.

For example, if you have a table that stores user sessions and you set the TTL attribute to be the session expiration time, DynamoDB will automatically delete the expired sessions and free up storage space.

This feature is useful for managing data retention and cleanup without the need for manual intervention.

User Rolan
by
8.8k points