DBS-C01 · Question #276
A startup company is developing electric vehicles. These vehicles are expected to send real-time data to the AWS Cloud for data analysis. This data will include trip metrics, trip duration, and…
The correct answer is C. Turn on the TTL feature for the DynamoDB table. Use the TTL attribute as a timestamp and set. To automatically delete data from Amazon DynamoDB after 15 days with the least operational overhead, enable the Time to Live (TTL) feature on the table.
Question
A startup company is developing electric vehicles. These vehicles are expected to send real-time data to the AWS Cloud for data analysis. This data will include trip metrics, trip duration, and engine temperature. The database team decides to store the data for 15 days using Amazon DynamoDB. How can the database team achieve this with the LEAST operational overhead?
Options
- AImplement Amazon DynamoDB Accelerator (DAX) on the DynamoDB table. Use Amazon
- BTurn on DynamoDB Streams for the DynamoDB table to push the data from DynamoDB to
- CTurn on the TTL feature for the DynamoDB table. Use the TTL attribute as a timestamp and set
- DCreate an AWS Lambda function to poll the list of DynamoDB tables every 15 days. Drop the
How the community answered
(33 responses)- A18% (6)
- B3% (1)
- C73% (24)
- D6% (2)
Why each option
To automatically delete data from Amazon DynamoDB after 15 days with the least operational overhead, enable the Time to Live (TTL) feature on the table.
DynamoDB Accelerator (DAX) is an in-memory cache for DynamoDB and does not provide functionality for data lifecycle management or automatic item deletion.
DynamoDB Streams captures item-level modifications but does not automatically delete old data based on a time limit; it's used for triggering other processes based on data changes.
DynamoDB's Time to Live (TTL) feature allows you to define a timestamp attribute on your items, and DynamoDB will automatically delete expired items from the table at no additional cost. This provides an efficient, fully managed solution for data retention policies with minimal operational overhead, perfectly meeting the requirement to store data for 15 days.
Creating and managing an AWS Lambda function to poll and delete old items from DynamoDB would introduce significant operational overhead, including development, scheduling, monitoring, and error handling, compared to the native TTL feature.
Concept tested: DynamoDB Time to Live (TTL) for data expiration
Source: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html
Topics
Community Discussion
No community discussion yet for this question.