Question: Which statement retrieves an item from the MusicCollection table in DynamoDB?

  1. aws dynamodb query --table-name MusicCollection --key file://key.json
  2. aws dynamodb get-item --table-name MusicCollection --key file://key.json
  3. aws dynamodb select --table-name MusicCollection --key file://key.json
  4. aws dynamodb put-item --table-name MusicCollection --key file://key.json

Answer: The correct answer of the above question is Option B:aws dynamodb get-item --table-name MusicCollection --key file://key.json