exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 88 discussion

A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table.

What is the simplest way to do this?

  • A. Write a script that deletes old records; schedule the script as a cron job on an Amazon EC2 instance.
  • B. Add an attribute with the expiration time; enable the Time To Live feature based on that attribute.
  • C. Each day, create a new table to hold session data; delete the previous day's table.
  • D. Add an attribute with the expiration time; name the attribute ItemExpiration.
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
Dushank
Highly Voted 1 year, 1 month ago
Selected Answer: B
The simplest way to automatically delete old items from an Amazon DynamoDB table is to use DynamoDB's Time to Live (TTL) feature. This feature allows you to define an attribute that stores the expiration time for each item. Once the specified time has passed, DynamoDB automatically deletes the expired items, freeing up storage and reducing costs without the need for custom scripts or manual intervention.
upvoted 6 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: B
A) Eliminated - no automation C) Eliminated - Constantly creating and deleting tables is not practical and can lead to management and scaling issues. D) Eliminated - Without enabling TTL, merely adding the attribute does not automate item deletion.
upvoted 1 times
...
65703c1
5 months, 1 week ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
catcatpunch
1 year, 5 months ago
https://docs.aws.amazon.com/ko_kr/amazondynamodb/latest/developerguide/TTL.html
upvoted 2 times
...
zodraz
1 year, 5 months ago
Selected Answer: B
https://www.examtopics.com/discussions/amazon/view/7225-exam-aws-certified-developer-associate-topic-1-question-107/
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago