DVA-C02 · Question #145
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
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #145. The question stem and answer options stay visible for context.
Question
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
- APerform a BatchGetltem operation that returns items from the two tables. Use the list of
- BCreate a local secondary index (LSI) on the songs table that uses artistName as the partition key.
- CPerform a BatchGetitem operation on the songs table that uses the songName/artistName keys.
- DPerform a Scan operation on each table that filters by the list of songName/artistName for the
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.