A Lambda function transforms Kinesis records and writes derived features to a database. Retried batches sometimes apply the same feature update twice. Which change BEST prevents duplicate effects?
Show the answer
Correct answerC. Make writes idempotent using a stable event identifier.
AWhy not this: Longer retention increases replay availability rather than preventing duplicate updates.
BWhy not this: Reserved concurrency controls available execution capacity, not duplicate effects from retried records.
CWhy this is right: A stable event identifier lets the destination recognize an already-applied update and avoid applying it again.
DWhy not this: A larger batch changes invocation grouping but does not prevent records from being processed again.
Kinesis event source mappings provide at-least-once processing, so the same record can be processed again. Idempotent writes prevent repeated processing from applying an update twice; changing batch size does not eliminate retries.