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?
Employ a Scan operation to fetch all table items and filter as needed.
Perform individual GetItem operations for each item.
Utilize BatchGetItem for batch retrieval of items.
Use PutItem calls with a filter to only insert the desired 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 that requires a specific partition key, and Scan reads every item in a table, which can be less efficient for frequently accessed individual items. PutItem is used for data insertion, not retrieval, and therefore is not suitable for the scenario described.
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` in DynamoDB?
Open an interactive chat with Bash
How does `BatchGetItem` differ from `GetItem` in DynamoDB?
Open an interactive chat with Bash
Why is `Scan` less efficient for frequent data retrieval in DynamoDB?
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
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .