Final answer:
The GetItem query in AWS DynamoDB can query by either Primary key attributes or sort key attributes of a table.
Step-by-step explanation:
The GetItem query in AWS DynamoDB can query by either Primary key attributes or sort key attributes of a table.
If you provide the primary key only, DynamoDB will return the item with the specified primary key attributes. If you provide both the primary key and sort key, DynamoDB will return the item with matching values for both attributes.
However, it's important to note that you cannot query by any attribute in the table, you can only query by the primary key attributes or sort key attributes.