AWS Certified Database – Specialty — Question 189
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?
Answer options
- A. Implement Amazon DynamoDB Accelerator (DAX) on the DynamoDB table. Use Amazon EventBridge (Amazon CloudWatch Events) to poll the DynamoDB table and drop items after 15 days
- B. Turn on DynamoDB Streams for the DynamoDB table to push the data from DynamoDB to another storage location. Use AWS Lambda to poll and terminate items older than 15 days.
- C. Turn on the TTL feature for the DynamoDB table. Use the TTL attribute as a timestamp and set the expiration of items to 15 days
- D. Create an AWS Lambda function to poll the list of DynamoDB tables every 15 days. Drop the existing table and create a new table
Correct answer: C
Explanation
The correct answer is C because enabling the TTL feature on a DynamoDB table allows for automatic expiration of items after a specified time, in this case, 15 days, with minimal operational overhead. Options A and B involve additional components and processes that increase complexity and management efforts, while option D requires unnecessary manual intervention by creating and deleting tables.