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?
- A.Schedule a Lambda function every minute that performs a full Scan and rewrites the entire index
- B.Turn on CloudTrail management events for the table and parse UpdateTable calls for item values
- C.Enable DynamoDB Streams with new images and add a Lambda event source mapping that updates the index
- 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
- Step Functions Retry and Catch fields
- SQS FIFO message groups for ordering
- EventBridge Scheduler one-time invocations
- Explicit deny in policy evaluation
- Hardening S3 bucket access settings
- ApplyGuardrail API for any model
- Previewing stack updates with change sets
- Test traffic hook in ECS blue/green
- API Gateway REST canary release
- SQS visibility timeout for Lambda consumers
- Metric filters for log-based alarms