exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 153 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 153
Topic #: 1
[All AWS Certified Database - Specialty Questions]

A company released a mobile game that quickly grew to 10 million daily active users in North America. The game's backend is hosted on AWS and makes extensive use of an Amazon DynamoDB table that is configured with a TTL attribute.
When an item is added or updated, its TTL is set to the current epoch time plus 600 seconds. The game logic relies on old data being purged so that it can calculate rewards points accurately. Occasionally, items are read from the table that are several hours past their TTL expiry.
How should a database specialist fix this issue?

  • A. Use a client library that supports the TTL functionality for DynamoDB.
  • B. Include a query filter expression to ignore items with an expired TTL.
  • C. Set the ConsistentRead parameter to true when querying the table.
  • D. Create a local secondary index on the TTL attribute.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
toppic26
Highly Voted 3 years, 6 months ago
Answer is B https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html
upvoted 8 times
...
Satprave
Most Recent 2 years, 7 months ago
Selected Answer: B
B Items that have expired, but haven’t yet been deleted by TTL, still appear in reads, queries, and scans. If you do not want expired items in the result set, you must filter them out. To do this, use a filter expression that returns only items where the Time to Live expiration value is greater than the current time in epoch format. For more information, see Filter expressions for scan.
upvoted 2 times
...
novice_expert
3 years, 1 month ago
Selected Answer: B
TTL expires recs, but delete process may run later
upvoted 1 times
...
tugboat
3 years, 3 months ago
Selected Answer: B
async deletes via tel
upvoted 2 times
...
GMartinelli
3 years, 6 months ago
Selected Answer: B
option B
upvoted 2 times
...
jove
3 years, 6 months ago
Selected Answer: B
Answer is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...