Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 7 Question 23 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 23
Topic #: 7
[All DVA-C02 Questions]

A developer supports an application that accesses data in an Amazon DynamoDB table. One of the item attributes is expirationDate in the timestamp format. The application uses this attribute to find items, archive them, and remove them from the table based on the timestamp value

The application will be decommissioned soon, and the developer must find another way to implement this functionality. The developer needs a solution that will require the least amount of code to write.

Which solution will meet these requirements?

Show Suggested Answer Hide Answer
Suggested Answer: A

TTL for Automatic Deletion:DynamoDB's Time-to-Live effortlessly deletes expired items without manual intervention.

DynamoDB Stream:Captures changes to the table, including deletions of expired items, triggering downstream actions.

Lambda for Processing:A Lambda function connected to the stream provides custom logic for handling the deleted items.

Code Efficiency:This solution leverages native DynamoDB features and stream-based processing, minimizing the need for custom code.


DynamoDB TTL Documentation:https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html

DynamoDB Streams Documentation:https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html

Contribute your Thoughts:

Juliana
11 days ago
Hmm, I'm not sure. All of these options have their pros and cons. I think I need to think about it a bit more before I commit to an answer. Anyone else struggling with this one?
upvoted 0 times
...
Margo
11 days ago
What, no option to just write a cron job to delete the expired items? That would be the least amount of code, right? *chuckles*
upvoted 0 times
...
Michell
12 days ago
I agree, option D does seem the most straightforward. Although, if you're not familiar with TTL or SQS, that could make it a bit more complex than it appears.
upvoted 0 times
...
Keena
13 days ago
I'm leaning towards option C. Using EventBridge to trigger the Lambda functions seems like a cleaner approach than using a DynamoDB stream. And we still get the benefit of the least amount of code to write.
upvoted 0 times
...
Lura
13 days ago
Hmm, I'm leaning towards option D. Enabling TTL and using an SQS dead-letter queue seems like the simplest approach. No need for all those Lambda functions and streams.
upvoted 0 times
...
Huey
14 days ago
I'm not sure about this question. It seems to be asking for the least amount of code to write, but there are a lot of moving parts to consider here.
upvoted 0 times
...
Johanna
14 days ago
I'm not a big fan of option B. Creating two separate Lambda functions and using the DynamoDB stream seems overkill. We should aim for the simplest solution possible, and I think option A or C are better choices.
upvoted 0 times
...
Tamala
15 days ago
I agree with Dorthy, option A seems like the way to go. It's the simplest solution and it should get the job done without too much extra code. Plus, using a DynamoDB stream is a common pattern, so it's not too crazy.
upvoted 0 times
...
Lynna
17 days ago
Option A does sound like the easiest solution, but I'm not sure if I like the idea of using a DynamoDB stream. That adds an extra layer of complexity that we might not need. I'm curious to hear what the other candidates think.
upvoted 0 times
...
Dorthy
18 days ago
This is a tricky question. We need to find the solution that requires the least amount of code while still meeting the requirements. I'm leaning towards option A, as it seems the most straightforward - enabling TTL on the expirationDate attribute and using a Lambda function to process the deleted items.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77