Get startedGet started for free

Choosing an idempotency key

A Lambda function consumes DynamoDB Streams records and updates a downstream system. Because Lambda processes stream records with at-least-once semantics, retries occasionally cause the same record to be processed more than once. The team wants to make the consumer idempotent by tracking which records have already been handled.

Which attribute is the BEST choice to use as the idempotency key?

This exercise is part of the course

Developing applications on AWS

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise