ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 187 - DVA-C02 discussion

Report
Export

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
Answers
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.
Answers
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.
Answers
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
Answers
D.
Update the application to synchronously process the documents directly after the DynamoDB write
Suggested answer: B

Explanation:

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/

asked 16/09/2024
HC KONG
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first