A developer is building a new application that uses an Amazon DynamoDB table. The specification states that all items that are older than 48 hours must be removed. Which solution will meet this requirement?
A) Create a new attribute that has the Number data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
B) Create a new attribute that has the String data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
C) Create a new attribute that has the Number data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
D) Create a new attribute that has the String data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Correct Answer:
Verified
Q418: A company has a two-tier application running
Q419: A developer is building an application integrating
Q420: Q421: A company is using an AWS Lambda Q422: A developer is writing a new AWS Q424: A developer is creating a serverless ecommerce Q425: A developer wants to secure sensitive configuration Q426: A company is adding stored value (or Q427: A company processes incoming documents from an Q428: A developer has built an application using
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents