AWS Certified Developer – Associate (DVA-C02) — Question 73
A developer is building an application that uses Amazon DynamoDB. The developer wants to retrieve multiple specific items from the database with a single API call.
Which DynamoDB API call will meet these requirements with the MINIMUM impact on the database?
Answer options
- A. BatchGetItem
- B. GetItem
- C. Scan
- D. Query
Correct answer: A
Explanation
The BatchGetItem API call is designed to retrieve multiple items in a single request, making it the most efficient choice with the least impact on the database. GetItem is meant for a single item retrieval, while Scan examines every item in the table, and Query retrieves items based on a partition key, which does not align with the requirement for multiple specific items.