AWS Certified Developer Associate DVA-C02 Practice Question
A developer needs to retrieve a single item from an Amazon DynamoDB table by its primary key (partition key only). The function is called thousands of times per minute, so minimizing latency and read-capacity consumption is critical. Which DynamoDB API operation should the developer use to achieve the MOST efficient read performance?
Query a global secondary index that stores the partition key value.
Perform a Query operation using a KeyConditionExpression on the partition key.
Use the GetItem operation with the item's primary key.
Run a Scan operation and filter the results in the application.
GetItem is optimized for fetching one item by primary key and consumes the minimal read capacity needed for that item. Query can return multiple items that share the same partition key, which may consume more capacity than necessary. Scan examines every item in the table, so it is far less efficient. Reading through a secondary index is only useful when the requested attribute is not part of the primary key.
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 the difference between a query and a scan in Amazon DynamoDB?
Open an interactive chat with Bash
What are secondary indexes in DynamoDB, and when should they be used?
Open an interactive chat with Bash
How does DynamoDB's read capacity affect query and scan operations?
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 .