Which of the following is an example of a good DynamoDB hash key schema for provisioned throughput
efficiency?
A.
User ID, where the application has many different users.
B.
Status Code where most status codes are the same
C.
Device ID, where one is by far more popular than all the others.
D.
Game Type, where there are three possible game types
A
http://www.aiotestking.com/amazon/which-of-the-following-is-an-example-of-a-good-dynamodb-hash-key-schema-for-provisioned-throughput-efficiency/
https://acloud.guru/forums/aws-certified-developer-associate/discussion/-KSDEODhihemZvHwcmg2/hash-key-for-efficiency
If there is no range key to combine with the hash key then the hash key must be unique as it is the hash/primary key. All the rest of the answers have repeating values.
This one got me for a second but after you play “which one is not like the others” you should see only one stands out.
A.
User ID, where the application has many different users.
Absolutely A.
Ref: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html
a