Complete the code to define the partition key attribute name in a DynamoDB table.
KeySchema=[{"AttributeName": "[1]", "KeyType": "HASH"}]The partition key attribute name is typically a unique identifier like UserId.
Complete the code to specify the attribute type for the partition key in DynamoDB.
AttributeDefinitions=[{"AttributeName": "UserId", "AttributeType": "[1]"}]The partition key attribute type is usually a string, represented by S in DynamoDB.
Fix the error in the partition key definition by completing the missing part.
KeySchema=[{"AttributeName": "UserId", "KeyType": "[1]"}]The partition key must have the key type HASH in DynamoDB.
Fill both blanks to define a composite key with partition and sort keys.
KeySchema=[{"AttributeName": "[1]", "KeyType": "HASH"}, {"AttributeName": "[2]", "KeyType": "RANGE"}]The partition key is UserId and the sort key is Timestamp to order items.
Fill all three blanks to define attribute definitions for a composite key.
AttributeDefinitions=[{"AttributeName": "[1]", "AttributeType": "S"}, {"AttributeName": "[2]", "AttributeType": "[3]"}]UserId is a string (S) and Timestamp is a number (N) attribute type.
