exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 117 discussion

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?

  • A. Set up a cron job on an Amazon EC2 instance. Run a script every hour to query the table for changes and process the documents.
  • B. Enable a DynamoDB stream on the table. Invoke an AWS Lambda function to process the documents.
  • C. Update the application to send a PutEvents request to Amazon EventBridge. Create an EventBridge rule to invoke an AWS Lambda function to process the documents.
  • D. Update the application to synchronously process the documents directly after the DynamoDB write.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
MrTee
Highly Voted 1 year, 6 months ago
Selected Answer: B
Option B is the best solution because it proposes enabling a DynamoDB stream on the table, which allows the developer to capture document-level changes in near-real time without modifying the application code. Then, the stream can be configured to invoke an AWS Lambda function to process the documents in near-real time. This solution requires minimal changes to the existing application code, and the Lambda function can be developed and deployed separately, enabling the developer to easily maintain and update it as needed.
upvoted 10 times
...
loctong
Highly Voted 1 year, 5 months ago
Selected Answer: B
To implement near-real-time processing on documents added or updated in a DynamoDB table with the least amount of change to the existing application code, the developer should: B. Enable a DynamoDB stream on the table and invoke an AWS Lambda function to process the documents. Enabling a DynamoDB stream on the table allows capturing and processing of the changes made to the table in near-real-time. The stream provides an ordered sequence of item-level modifications (inserts, updates, and deletes) that can be consumed by other AWS services, such as AWS Lambda.
upvoted 5 times
...
sumanshu
Most Recent 3 months, 4 weeks ago
Selected Answer: B
A DynamoDB stream is a feature that automatically tracks changes (inserts, updates, deletes) to items in a table. Whenever a document is added or updated, the change is recorded in the stream. A) Eliminated - Querying the DynamoDB table every hour introduces a delay, so it's not near-real-time. C) Eliminated - To use EventBridge, you would need to modify the application code to explicitly send events (PutEvents) every time a change is made in DynamoDB. D) Eliminated - require significant changes to the existing application code.
upvoted 1 times
...
65703c1
5 months ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
SerialiDr
9 months, 2 weeks ago
Selected Answer: B
GPT To implement near-real-time processing of documents when they are added or updated in an Amazon DynamoDB table with the least amount of change to the existing application code, let's evaluate the options: A. Set up a cron job on an Amazon EC2 instance. Run a script every hour to query the table for changes and process the documents: This approach introduces additional complexity and is not near-real time. Running a script periodically to check for updates is inefficient and does not meet the requirement for immediate processing upon document addition or update. B. Enable a DynamoDB stream on the table. Invoke an AWS Lambda function to process the documents: This is the most efficient and least intrusive option. DynamoDB Streams capture changes to items in the DynamoDB table as they occur in near-real time and can trigger an AWS Lambda function automatically. This setup requires minimal changes to the existing application code, as the processing logic is moved to the Lambda function, which is triggered by the stream events.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago