Data Store Management
A DynamoDB table uses a correctly configured TTL attribute, but expired items sometimes remain readable for several days. How should an application prevent these items from appearing in Query results?
Show the answer
Correct answerC. Filter results using the TTL attribute and current time.
AWhy not this: Point-in-time recovery supports restoration, not exclusion of expired query results.
BWhy not this: DynamoDB TTL requires a Number containing Unix epoch time in seconds, not an ISO 8601 string.
CWhy this is right: Comparing the expiration timestamp with current time excludes expired items awaiting deletion.
DWhy not this: Strong consistency does not hide expired items that still exist in the table.
DynamoDB TTL deletion is asynchronous, so applications should filter out items whose expiration time has passed. Strongly consistent reads can still return expired items that have not yet been deleted.