CertKeen

AWS Developer Associate (DVA-C03) · Free practice question 3 of 12

DynamoDB Streams for change processing

Whenever an item in a DynamoDB customers table is modified at Larkhill Insurance, a search index must be updated with the new values. The team wants this to happen automatically from the table's changes. What should they use?

  1. A.Schedule a Lambda function every minute that performs a full Scan and rewrites the entire index
  2. B.Turn on CloudTrail management events for the table and parse UpdateTable calls for item values
  3. C.Enable DynamoDB Streams with new images and add a Lambda event source mapping that updates the index
  4. D.Enable point-in-time recovery and restore the table into the search service after each change
Show answer and explanation

Correct answer: C. Enable DynamoDB Streams with new images and add a Lambda event source mapping that updates the index

Why: DynamoDB Streams captures item-level changes, and with a NEW_IMAGE or NEW_AND_OLD_IMAGES view type a Lambda event source mapping can process each change to update the index. Periodic full scans are expensive and delayed. PITR is for backups and restores. CloudTrail management events cover control-plane calls such as UpdateTable, not item contents.

More free AWS Developer Associate (DVA-C03) questions