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 203 discussion

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

A company stores session history for its users in an Amazon DynamoDB table. The company has a large user base and generates large amounts of session data.
Teams analyze the session data for 1 week, and then the data is no longer needed. A database specialist needs to design an automated solution to purge session data that is more than 1 week old.
Which strategy meets these requirements with the MOST operational efficiency?

  • A. Create an AWS Step Functions state machine with a DynamoDB DeleteItem operation that uses the ConditionExpression parameter to delete items older than a week. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule that runs the Step Functions state machine on a weekly basis.
  • B. Create an AWS Lambda function to delete items older than a week from the DynamoDB table. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule that triggers the Lambda function on a weekly basis.
  • C. Enable Amazon DynamoDB Streams on the table. Use a stream to invoke an AWS Lambda function to delete items older than a week from the DynamoDB table
  • D. Enable TTL on the DynamoDB table and set a Number data type as the TTL attribute. DynamoDB will automatically delete items that have a TTL that is less than the current time.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
mbar94
Highly Voted 2 years, 9 months ago
Selected Answer: D
Textbook question for TTL - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html
upvoted 7 times
...
Pranava_GCP
Most Recent 1 year, 8 months ago
Selected Answer: D
D. Enable TTL on the DynamoDB table
upvoted 1 times
...
khun
2 years, 5 months ago
Selected Answer: D
D. TTL less effort
upvoted 1 times
...
Jiang_aws1
2 years, 6 months ago
This is wrong : delete items that have a TTL that is less than the current time. Most Voted they need to delete 1 week old , not old than current time
upvoted 1 times
aviathor
2 years ago
TTL is a misnomer in the case of DynamoDB. It is actually "the time after which an item is no longer needed"
upvoted 1 times
...
Germaneli
1 year, 8 months ago
Yes. The value would be set to the time in exactly one week. Then it expires automatically.
upvoted 2 times
...
...
SonamDhingra
2 years, 9 months ago
Selected Answer: D
D is correct
upvoted 1 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 ...