A developer is implementing an application that requires frequent retrieval of items from an Amazon DynamoDB table. To optimize performance, the application needs to minimize latency and reduce the number of network calls. Given the need for efficient data access patterns, which method should the developer use when implementing code that interacts with the DynamoDB table using the AWS SDK?
Employ a Scan
operation to fetch all table items and filter as needed.
Use PutItem
calls with a filter to only insert the desired items.
Perform individual GetItem
operations for each item.
Utilize BatchGetItem
for batch retrieval of items.