
Answer-first summary for fast verification
Answer: BatchGetItem - Efficient for fetching multiple items with known primary keys across one or more tables.
The correct answer is A: BatchGetItem. This API call is designed to retrieve multiple specific items in a single request by using their primary keys, making it efficient and minimizing the impact on the database. Other options like GetItem, Scan, and Query are not suited for retrieving multiple specific items efficiently. GetItem is used for fetching a single item, Scan reads the entire table which is inefficient for specific items, and Query retrieves items based on partition keys but is not optimal for varied primary key combinations in one call.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In Amazon DynamoDB, which API call is optimal for retrieving multiple specific items with minimal database impact using a single request?
A
BatchGetItem - Efficient for fetching multiple items with known primary keys across one or more tables.
B
GetItem - Intended for retrieving a single item using its primary key, not designed for multiple items.
C
Scan - Scans the entire table, inefficient for specific items and can cause higher load.
D
Query - Retrieves items based on a partition key, not suitable for varied primary key combinations in one call.