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 DVA-C02 Exam - Topic 7 Question 23 Discussion

Posted by Lauran on Apr 09, 2024 at 08:01 PM

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?

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

Get Premium DVA-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
44 comments · newest first
WI
Willard 11 months ago
Sounds too easy, what's the catch with option A?
MI
Miesha 11 months ago
Wow, I didn't know TTL could handle this automatically!
IV
Ivory 11 months ago
Not sure about A, using a stream feels like overkill for TTL.
SH
Shayne 11 months ago
I agree, A looks like the least amount of code to manage.
AS
Ashley 12 months ago
Option A seems the simplest with TTL and Lambda.
TH
Theresia 12 months ago
I’m a bit confused about the differences between the options, but I think using EventBridge might complicate things more than needed.
GO
Goldie 1 year ago
I practiced a similar question where we had to automate item deletion, and I feel like option A is the most straightforward approach.
RE
Reuben 1 year ago
I'm not entirely sure, but I think using a DynamoDB stream with Lambda functions might add unnecessary complexity.
TH
Therese 1 year ago
I remember studying about TTL in DynamoDB, and it seems like enabling it on the expirationDate attribute could be the simplest solution.
VI
Vilma 1 year ago
Option C looks like it might be the easiest to implement, as it uses a combination of Lambda functions and EventBridge to handle the deletion and processing of the items. The scheduled rule could make it more reliable than relying on a stream.
JA
Jacki 1 year ago
I'm a bit confused by the different options. I'm not sure if I fully understand the differences between using a DynamoDB stream versus an EventBridge scheduled rule. I'll need to review the details of each approach more carefully.
KA
Kara 1 year ago
This seems like a straightforward question, and I think option A is the best solution. It's the most comprehensive approach that leverages DynamoDB's built-in features to handle the expiration and processing of the items.
DE
Denise 1 year ago
I'm leaning towards option D. Enabling TTL and using a dead-letter queue seems like the simplest solution that requires the least amount of custom code. The Lambda function to process the items would be straightforward to implement.
CA
Cammy 1 year ago
Hmm, I'm a bit confused by the timing of the setTimeout and setInterval calls. I'll need to carefully trace the execution of the code to make sure I understand what's being logged.
JO
Johnna 1 year ago
Okay, I think I've got a handle on this. Building a Cloud Function to leverage the Data Loss Prevention API seems like the most robust and scalable solution to address the data privacy requirements.
AN
Anissa 1 year ago
Okay, let me think this through step-by-step. Data origin authentication is about ensuring the data comes from a trusted source, so it's likely related to authentication and authorization mechanisms. Security tokens or SAML claims both seem plausible, but I'll have to weigh the options carefully.
ME
Melda 1 year ago
This is a good question to test our knowledge of MPLS label distribution and optimization. I'll carefully review the configuration options and select the one that best meets the requirements.
IN
Inocencia 1 year ago
Okay, I've got this. The dial-in configuration is used for connection multiplexing and two-way streaming in gRPC, so it's likely related to the encoding used for those features. I'll go with option D.
NA
Nada 2 years ago
Option D seems simpler to me, just enabling TTL and using SQS for processing items
FR
France 2 years ago
I prefer option C, using Amazon EventBridge for scheduling the Lambda functions
SE
Selene 2 years ago
I agree, using a DynamoDB stream with a Lambda function is efficient
AR
Ariel 2 years ago
I think the best option is A
MA
Maile 2 years ago
That's true, It might be beneficial to use different Lambda functions for deleting and processing items.
SK
Skye 2 years ago
Option C also seems viable. Using Amazon EventBridge for scheduled rules could be a good alternative.
JA
Javier 2 years ago
I agree with Creating a DynamoDB stream and Lambda function for deleted items seems like a good approach.
MA
Maile 2 years ago
I think option A sounds like the best solution. Enabling TTL on the attribute seems simple and efficient.
LE
Lelia 2 years ago
↳ replying to Maile
I think option B could work too, creating two Lambda functions and using a DynamoDB stream for processing items.
MA
Martin 2 years ago
↳ replying to Maile
Yes, enabling TTL on the attribute and setting up a DynamoDB trigger with a Lambda function sounds like a simple solution.
CA
Carlee 2 years ago
↳ replying to Maile
I agree, option A seems like the most efficient choice.
JU
Juliana 3 years 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?
MA
Margo 3 years 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*
MI
Michell 3 years 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.
KE
Keena 3 years 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.
LU
Lura 3 years 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.
CA
Callie 3 years ago
↳ replying to Lura
Definitely, no need to overcomplicate things with multiple Lambda functions
SH
Shannon 3 years ago
↳ replying to Lura
Agreed, enabling TTL and using SQS seems like the most straightforward solution
VI
Virgie 3 years ago
↳ replying to Lura
Yeah, less code to write and maintain with option D
RE
Rebecka 3 years ago
↳ replying to Lura
That sounds like a good idea, keeping it simple with just the SQS dead-letter queue
CH
Chu 3 years ago
↳ replying to Lura
D) Enable TTL on the expirationDate attribute in the table Specify an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as the target to delete the items Create an AWS Lambda function to process the items
HU
Huey 3 years 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.
JO
Johanna 3 years 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.
TA
Tamala 3 years 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.
LY
Lynna 3 years 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.
DO
Dorthy 3 years 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.
0/2000 characters

Save Cancel