Complete the code to specify the TTL attribute name in DynamoDB.
ttl_spec = {"AttributeName": "[1]", "Enabled": true}The TTL attribute name is usually set to "TTL" in DynamoDB to mark the expiration timestamp.
Complete the code to enable TTL on a DynamoDB table using AWS CLI.
aws dynamodb update-time-to-live --table-name MyTable --time-to-live-specification Enabled=[1],AttributeName=TTLTo enable TTL, the Enabled flag must be set to true.
Fix the error in the TTL attribute value type for DynamoDB items.
item = {"UserId": "123", "TTL": [1]The TTL attribute must be a number representing the Unix epoch time in seconds.
Fill both blanks to explain when expired items are deleted by DynamoDB TTL.
Expired items are typically deleted within [1] hours, but actual deletion can take up to [2] hours.
DynamoDB usually deletes expired items within 24 hours, but it can take up to 72 hours in some cases.
Fill all three blanks to describe TTL behavior and timing in DynamoDB.
TTL attribute must be a [1] representing epoch time in seconds. DynamoDB checks for expired items approximately every [2] minutes. Deletion of expired items can take up to [3] hours.
The TTL attribute is a number (epoch seconds). DynamoDB scans for expired items roughly every 5 minutes. Deletion can take up to 48 hours.