Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
AWS Certified Developer - Associate · AWS
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
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.
B is the correct answer.
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.