exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 511 discussion

A company runs an application on a large fleet of Amazon EC2 instances. The application reads and write entries into an Amazon DynamoDB table. The size of the DynamoDB table continuously grows, but the application needs only data from the last 30 days. The company needs a solution that minimizes cost and development effort.
Which solution meets these requirements?

  • A. Use an AWS CloudFormation template to deploy the complete solution. Redeploy the CloudFormation stack every 30 days, and delete the original stack.
  • B. Use an EC2 instance that runs a monitoring application from AWS Marketplace. Configure the monitoring application to use Amazon DynamoDB Streams to store the timestamp when a new item is created in the table. Use a script that runs on the EC2 instance to delete items that have a timestamp that is older than 30 days.
  • C. Configure Amazon DynamoDB Streams to invoke an AWS Lambda function when a new item is created in the table. Configure the Lambda function to delete items in the table that are older than 30 days.
  • D. Extend the application to add an attribute that has a value of the current timestamp plus 30 days to each new item that is created in the table. Configure DynamoDB to use the attribute as the TTL attribute.
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
FF11
Highly Voted 3 years, 5 months ago
Selected Answer: D
D is correct. Amazon DynamoDB Time to Live (TTL) allows you to define a per-item timestamp to determine when an item is no longer needed. Shortly after the date and time of the specified timestamp, DynamoDB deletes the item from your table without consuming any write throughput. TTL is provided at no extra cost as a means to reduce stored data volumes by retaining only the items that remain current for your workload’s needs. TTL is useful if you store items that lose relevance after a specific time. The following are example TTL use cases: Remove user or sensor data after one year of inactivity in an application. Archive expired items to an Amazon S3 data lake via Amazon DynamoDB Streams and AWS Lambda. Retain sensitive data for a certain amount of time according to contractual or regulatory obligations. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html
upvoted 22 times
...
SDikeman62
Highly Voted 3 years, 1 month ago
Well folks let me tell you. Took test and lots of questions came from these sets of questions. Scored 962. Good luck everybody.
upvoted 20 times
miles3719
2 years, 9 months ago
Hey mate, that is great to hear. Did you have problems memorising so many of these 577 queestions?. Again, thanks for reaffirmation that this is time well spent!
upvoted 2 times
...
...
rude7
Most Recent 2 years, 9 months ago
Selected Answer: D
https://docs.amazonaws.cn/en_us/amazondynamodb/latest/developerguide/time-to-live-ttl-before-you-start.html
upvoted 1 times
...
queen101
2 years, 10 months ago
DDDDDDDDDD
upvoted 1 times
...
Alfene
2 years, 10 months ago
I can now go with D
upvoted 1 times
...
marklovesaws143
2 years, 10 months ago
Selected Answer: D
DDDDDDDDDDDDDDDDDDD
upvoted 2 times
...
slcheng
2 years, 11 months ago
Selected Answer: D
Agreed with D
upvoted 1 times
...
jina22112
3 years, 4 months ago
Selected Answer: D
Answer: D
upvoted 1 times
...
jj22222
3 years, 5 months ago
Selected Answer: D
DDDDDDDDDDDDDD
upvoted 1 times
...
vuongckc
3 years, 5 months ago
Selected Answer: D
Amazon DynamoDB Time to Live (TTL) allows you to define a per-item timestamp to determine when an item is no longer needed. Shortly after the date and time of the specified timestamp, DynamoDB deletes the item from your table without consuming any write throughput
upvoted 2 times
...
Spacer
3 years, 5 months ago
Should be D. Because the question is asking retain data for 30 days. Using TTL attribute is best option here. A Wrong, nothing to do with cfn. B Wrong, no need to use EC2 C Wrong, no need to use lambda.
upvoted 4 times
...
daddycool
3 years, 5 months ago
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html D - This document talks about using TTL to expire items. It is also not charged.
upvoted 1 times
...
jcesarguedes
3 years, 5 months ago
Selected Answer: D
Resposta correta
upvoted 1 times
rubiorubio1
3 years, 5 months ago
also think so
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 ...