
AWS Certified Developer - Associate
Get started today
Ultimate access to all questions.
A company utilizes AWS for its website operations, featuring daily polls with results posted the following day. User responses are stored in a DynamoDB table, which the company wishes to cleanse of old data post-publication. To facilitate automatic data removal, a new 'expiration_date' attribute has been added to the table. Identify the solution requiring the least development effort to automate the deletion of outdated responses based on this attribute.
A company utilizes AWS for its website operations, featuring daily polls with results posted the following day. User responses are stored in a DynamoDB table, which the company wishes to cleanse of old data post-publication. To facilitate automatic data removal, a new 'expiration_date' attribute has been added to the table. Identify the solution requiring the least development effort to automate the deletion of outdated responses based on this attribute.
Explanation:
The correct answer is D. Enabling TTL (Time to Live) on the DynamoDB table and specifying the expiration_date attribute allows DynamoDB to automatically manage and delete expired items, thereby minimizing development effort. This is a built-in feature specifically designed for such automated expiration and cleanup tasks, which does not require the additional setup or management of Lambda functions, Fargate tasks, or Glue jobs.