Để đọc dữ liệu, sử dụng lệnh get-item và tham số **consistent-read thể hiện strongly consistent reads.
Mặc định của AWS DynamoDB là eventually consistent reads.
aws dynamodb get-item --consistent-read \
--table-name Music \
--key '{ "Artist": {"S": "Acme Band"}, "SongTitle": {"S": "Happy Day"}}'
{
"Item": {
"AlbumTitle": {
"S": "Songs About Life"
},
"Awards": {
"N": "10"
},
"Artist": {
"S": "Acme Band"
},
"SongTitle": {
"S": "Happy Day"
}
}
}