Development with AWS Services
Which attribute data types can be used for a DynamoDB table's partition key? (Choose two.)
Choose 2 answers
Show the answer
Correct answersC. StringD. Number
AWhy not this: Boolean is a scalar type, but DynamoDB does not support it for key attributes.
BWhy not this: String set is a set type, not a supported scalar key type.
CWhy this is right: String is a supported scalar type for partition and sort key attributes.
DWhy this is right: Number is a supported scalar type for partition and sort key attributes.
EWhy not this: List is a document type and cannot be used for a key attribute.
FWhy not this: Map is a document type and cannot be used for a key attribute.
DynamoDB key attributes must have a String, Number, or Binary scalar type. Boolean is also a scalar type, but it is not supported for key attributes.