Q: 12
A developer is working on a web application that uses Amazon DynamoDB as its data store The
application has two DynamoDB tables one table that is named artists and one table that is named
songs The artists table has artistName as the partition key. The songs table has songName as the
partition key and artistName as the sort key
The table usage patterns include the retrieval of multiple songs and artists in a single database
operation from the webpage. The developer needs a way to retrieve this information with minimal
network traffic and optimal application performance.
Which solution will meet these requirements'?
Options
Discussion
Its A, pretty sure. BatchGetItem lets you fetch from both tables in one call, so that cuts down network chattiness. The others either require extra queries or scans which isn't efficient. Bit confused if there's a smarter way but this matches what I've seen in practice exams. Anyone else get stuck on this?
Be respectful. No spam.