AWS Certified Developer Associate DVA-C02 Practice Question
Which approach should be used to retrieve an item from an Amazon DynamoDB table based on a unique hash key to ensure the MOST efficient read performance?
Perform a query operation using the table's primary key.
Search using a secondary index that contains the unique hash key.
Perform a scan operation and then filter the results to find the specific item.
Enable continuous backup and restore to retrieve the item quickly.
A query operation is the correct choice for efficiently retrieving an item using a unique hash key from an Amazon DynamoDB table because a query allows you to specify the hash key and, optionally, a range key to quickly locate the data. Scan operations, in contrast, read every item in a table and filter out results afterwards, which consumes more read capacity and increases latency. Secondary index searches are only necessary when querying on non-primary key attributes, and continuous backup is a durability feature, not related to data retrieval performance.
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 are the main differences between a query and a scan operation in DynamoDB?
Open an interactive chat with Bash
What is a secondary index and when should it be used in DynamoDB?
Open an interactive chat with Bash
What is the significance of enabling continuous backup 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...
IT & Cybersecurity Package Join Premium for Full Access