Which solution meets these requirements?
Configure a TTL attribute for the leaderboard data.
Use DynamoDB Streams to schedule and delete the leaderboard data
Use AWS Step Functions to schedule and delete the leaderboard data.
Set a higher write capacity when the scheduled delete job runs.
Explanations:
Configuring a TTL (Time to Live) attribute for the leaderboard data will automatically delete items after a specified time period (30 days). This eliminates the need for a manual delete job and optimizes write throughput by reducing the manual intervention required.
DynamoDB Streams capture changes to the data, but they are not designed to schedule and delete data. Streams are primarily used for tracking changes, not for implementing scheduled deletions.
AWS Step Functions can be used to automate workflows, but it is not the most efficient solution for simply deleting expired data in DynamoDB. TTL is a more appropriate and native solution for this requirement.
Increasing the write capacity temporarily during the scheduled delete job is a reactive solution, not an optimal long-term solution. It may still result in throttling if the write capacity is insufficient during high-demand periods, and it can incur additional costs.