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
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.
More Development with AWS Services questions
- An Amazon API Gateway REST API fronts a legacy product-catalog backend that takes 800 ms per query. Because 90% of…
- A customer-facing checkout API built on AWS Lambda (Java 21 runtime) experiences a 3.2-second cold-start latency spike…
- An AWS Lambda function polls an Amazon SQS standard queue via an Event Source Mapping with a batch size of 10…
- An order-fulfillment workflow coordinates 6 sequential and parallel steps: reserve inventory, charge credit card…
- Five different AWS Lambda functions written in Python 3.12 share the same 45 MB internal cryptography and…
- A photo-sharing platform stores private user photos in an Amazon S3 bucket (Block Public Access = ON). When an…
- A web application hosted on https://app.example.com makes an XMLHttpRequest / fetch() POST call (with a custom…
- A financial ledger uses Amazon SQS FIFO (First-In-First-Out) queues (orders.fifo) to guarantee strict message ordering…
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.