A company keeps trial signup records in a DynamoDB table and tracks trial data in a spreadsheet. They want the spreadsheet automatically updated whenever an individual trial starts, is updated, or ends. Which solution accomplishes this?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable a DynamoDB stream on the table with view type NEW_IMAGE, create a Lambda that consumes the stream and updates the spreadsheet, and subscribe the Lambda to the stream..
Why this is the answer
DynamoDB Streams provide a time-ordered sequence of item-level modifications in a DynamoDB table. By enabling a stream with the NEWIMAGE view type, the stream records the complete item as it appears after it was modified. A Lambda function can then be configured to automatically trigger and process these stream records, extracting the new trial data and using it to update the spreadsheet. This creates an event-driven architecture that automatically reflects changes in the DynamoDB table in the spreadsheet. DAX (DynamoDB Accelerator) is a caching service that improves read performance for DynamoDB tables. It does not provide event notifications for data changes, making it unsuitable for this requirement. Using OLDIMAGE would provide the item's state before modification, which is not what's needed for updating with the current trial data.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed