
Ultimate access to all questions.
A developer seeks a minimal-code solution to manage item expiration in a DynamoDB table, which previously used an application to find, archive, and delete items based on a timestamp attribute. What is the most efficient approach to replace this functionality as the application is being decommissioned?
A
Utilize DynamoDB TTL for automatic item deletion, implement a stream for change monitoring, and deploy a Lambda function triggered by the stream to handle post-deletion processing.
B
Deploy two Lambda functions for item deletion and processing, alongside a DynamoDB stream, employing the DeleteItem API for expiration-based deletions and the GetRecords API for stream-based item processing.
C
Establish two Lambda functions for deletion and processing tasks, integrate an EventBridge rule to manage function invocations, and apply the DeleteItem API and GetRecords API for expiration management and stream processing, respectively.
D
Activate DynamoDB TTL for item expiration, direct expired items to an SQS dead-letter queue, and use a Lambda function to process items from the queue.