AWS Certified Developer – Associate (DVA-C02) — Question 340

A developer is creating a new application for a pet store. The application will manage customer rewards points. The developer will use Amazon DynamoDB to store the data for the application. The developer needs to optimize query performance and limit partition overload before actual performance analysis.

Which option should the developer use for a partition key to meet these requirements?

Answer options

Correct answer: A

Explanation

Using a randomly generated universally unique identifier (UUID) as the partition key provides high cardinality, which distributes read and write requests evenly across DynamoDB partitions to avoid hot partitions. Attributes like sign-up dates or pet names have lower cardinality and can lead to partition overload due to uneven data distribution. While a customer's full name has more variation, it is still far less distributed and unique than a UUID.