AWS Developer DVA-C02 · Development with AWS Services · medium

Whenever a user updates their shipping address in an Amazon DynamoDB Customers table, a downstream AWS Lambda function must be triggered within milliseconds to sync both the previous address (OldImage) and the updated address (NewImage) to an external CRM. The stream events must be delivered in exact item-level sequence with zero duplicates for 24 hours. Which DynamoDB feature should be enabled?

Published · Last updated · checked before publication — how we verify questions

Options

  • ADynamoDB Time to Live (TTL) configured with the KEYS_ONLY index projection
  • BScheduled Amazon Athena SQL scans running once every 6 hours over S3 exports
  • CDynamoDB Global Tables with OLD_IMAGE disabled across secondary regions
  • DAmazon DynamoDB Streams enabled with the NEW_AND_OLD_IMAGES view typeCorrect answer

Answer: D. Amazon DynamoDB Streams enabled with the NEW_AND_OLD_IMAGES view type

Amazon DynamoDB Streams captures a time-ordered sequence of item-level modifications (INSERT, MODIFY, REMOVE) in a table for 24 hours with zero duplicates. Selecting stream view type NEW_AND_OLD_IMAGES provides both the before (OldImage) and after (NewImage) states of the modified item to the subscribed Lambda Event Source Mapping.

Why the other options are wrong

  • A. DynamoDB Time to Live (TTL) configured with the KEYS_ONLY index projection — TTL automatically deletes expired items; it does not stream general MODIFY address updates.
  • B. Scheduled Amazon Athena SQL scans running once every 6 hours over S3 exports — 6-hour batch scans cannot meet the millisecond real-time trigger requirement.
  • C. DynamoDB Global Tables with OLD_IMAGE disabled across secondary regions — Global Tables provide multi-region replication; NEW_AND_OLD_IMAGES on DynamoDB Streams is what passes both states to Lambda.

All Development with AWS Services questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.