AWS Certified Developer Associate DVA-C02 Practice Question
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?
You selected this option
Perform individual GetItem operations for each item.
You selected this option
Use PutItem calls with a filter to only insert the desired items.
You selected this option
Employ a Scan operation to fetch all table items and filter as needed.
You selected this option
Utilize BatchGetItem for batch retrieval of items.
Using the batch operations API of AWS SDKs, such as BatchGetItem in the case of Amazon DynamoDB, allows the application to retrieve up to 100 items from one or more DynamoDB tables in a single operation. This reduces the number of network calls compared to individual GetItem requests for each item and results in less network latency. The use of Query or Scan would not be as efficient because they are designed for different purposes. Query is used to retrieve items using a key condition expression, and Scan reads every item in a table, which can be less efficient for frequently accessed individual items. While PutItem is used for data insertion, not retrieval, hence it is not suitable for the scenario given.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is `BatchGetItem` and how does it work in DynamoDB?
Open an interactive chat with Bash
What are the differences between `GetItem`, `Query`, and `Scan` in DynamoDB?
Open an interactive chat with Bash
Why is `Scan` not recommended for frequently accessed individual items?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access