New Year Sale 2026! 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 2 Question 21 Discussion

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

A developer maintains a critical business application that uses Amazon DynamoDB as the primary data store The DynamoDB table contains millions of documents and receives 30-60 requests each minute The developer needs to perform processing in near-real time on the documents when they are added or updated in the DynamoDB table

How can the developer implement this feature with the LEAST amount of change to the existing application code?

Show Suggested Answer Hide Answer
Suggested Answer: B

DynamoDB Streams:Capture near real-time changes to DynamoDB tables, triggering downstream actions.

Lambda for Processing:Lambda functions provide a serverless way to execute code in response to events like DynamoDB Stream updates.

Minimal Code Changes:This solution requires the least modifications to the existing application.


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

AWS Lambda:https://aws.amazon.com/lambda/

Contribute your Thoughts:

0/2000 characters
Shalon
3 months ago
C sounds interesting, but it seems like more work than necessary.
upvoted 0 times
...
Sabra
3 months ago
Wait, can Lambda really handle that many requests efficiently?
upvoted 0 times
...
Merlyn
3 months ago
Definitely going with B, it requires minimal changes!
upvoted 0 times
...
Jerry
4 months ago
I think A is too slow for real-time processing.
upvoted 0 times
...
Wilburn
4 months ago
Option B is the best choice! DynamoDB streams are perfect for this.
upvoted 0 times
...
Alison
4 months ago
Option D seems risky since synchronously processing could lead to performance issues, but I can't recall the exact implications.
upvoted 0 times
...
Jerry
4 months ago
I practiced a question similar to this, and I think option C might be overcomplicating things with EventBridge when Lambda can work directly with streams.
upvoted 0 times
...
Marshall
4 months ago
I'm not entirely sure, but I feel like using a cron job like in option A would be too slow for near-real-time processing.
upvoted 0 times
...
Janna
5 months ago
I think option B sounds familiar; I remember studying DynamoDB streams and how they can trigger Lambda functions for real-time processing.
upvoted 0 times
...
Estrella
5 months ago
Synchronously processing the documents after the DynamoDB write seems like the simplest solution, but I'm worried about the impact on the application's performance.
upvoted 0 times
...
Mollie
5 months ago
I think the DynamoDB stream option sounds promising. That way, we can react to changes as they happen without having to poll the table.
upvoted 0 times
...
Stefany
5 months ago
Hmm, this is a tricky one. I'm not sure if a cron job would be the best approach given the need for near-real-time processing.
upvoted 0 times
...
Darci
5 months ago
Updating the application to use EventBridge could work, but it might require more changes to the existing code than I'm comfortable with.
upvoted 0 times
...
Gilma
5 months ago
Hmm, this seems like a tricky one. I'll need to carefully consider the different options and the implications of each.
upvoted 0 times
...
Julio
5 months ago
Okay, let me think this through. The question is asking about processes used once or at predefined points, not ongoing processes. I'm leaning towards C, Control Schedule and Conduct Procurements, since those are things that happen at specific milestones.
upvoted 0 times
...
Lura
2 years ago
Candidate 6: Agreed, I think I would go with option B as well to ensure efficient processing of documents without complicating the existing application too much.
upvoted 0 times
...
Valda
2 years ago
Candidate 5: Overall, it seems like the majority prefers option B for implementing near-real time processing with the least amount of code changes.
upvoted 0 times
...
Linwood
2 years ago
Candidate 4: I think option D would require the most changes to the existing code since we would need to update the application to process documents synchronously after every write.
upvoted 0 times
...
Jerry
2 years ago
Candidate 3: Option C could also work, but it involves updating the application code to send PutEvents requests to EventBridge, which might require more changes than option B.
upvoted 0 times
...
Glenna
2 years ago
Candidate 2: I agree with that, setting up a cron job with option A seems like it would introduce unnecessary delays in processing the documents.
upvoted 0 times
...
Stephaine
2 years ago
Candidate 1: I think option B is the best choice because enabling a DynamoDB stream will allow us to process documents in near-real time with minimal code changes.
upvoted 0 times
...
Leonora
2 years ago
I see your point, but we also need to consider the cost implications of setting up and maintaining a DynamoDB stream and Lambda function in option B.
upvoted 0 times
...
Myra
2 years ago
I still think option B is the way to go since it offers a more scalable and reliable solution for near-real time processing.
upvoted 0 times
...
Hillary
2 years ago
That's true, but processing documents synchronously could potentially impact the performance of the application during peak times.
upvoted 0 times
...
Ronnie
2 years ago
But wouldn't option D be simpler since we can just update the application code to process the documents synchronously after the write?
upvoted 0 times
...
Carmelina
2 years ago
I agree, setting up a DynamoDB stream to trigger a Lambda function is a more efficient way to handle real-time processing.
upvoted 0 times
...
Viva
2 years ago
I think option B is the best choice because it allows for near-real time processing without changing much of the existing application code.
upvoted 0 times
...
James
2 years ago
I'm leaning towards option C. Sending a PutEvents request to EventBridge and using a rule to trigger a Lambda function could be a nice, event-driven solution. And it doesn't require too many changes to the existing code.
upvoted 0 times
Kendra
2 years ago
And it keeps the application code more streamlined without the need for frequent script executions.
upvoted 0 times
...
Lizette
2 years ago
It's definitely a more efficient way to handle near-real-time processing of documents in DynamoDB.
upvoted 0 times
...
Lisha
2 years ago
I agree. Using EventBridge to trigger a Lambda function seems like a clean solution.
upvoted 0 times
...
Carline
2 years ago
Option C sounds like a good choice. It allows for event-driven processing with minimal code changes.
upvoted 0 times
...
...
Elina
2 years ago
Ah, the age-old dilemma of 'least amount of change' versus 'most efficient solution'. Option D may be the fastest, but it could also slow down the main application, so that's probably not the way to go.
upvoted 0 times
...
Vinnie
2 years ago
I think option B is the best choice here. Enabling a DynamoDB stream and invoking a Lambda function to process the documents seems like the most straightforward approach.
upvoted 0 times
...
Franchesca
2 years ago
This question is a bit tricky. The key is to find the solution that requires the least amount of change to the existing application code.
upvoted 0 times
...

Save Cancel