DVA-C02 practice question · Development with AWS Services
A developer wants to reduce the number of separate GetItem calls needed to retrieve 50 specific items with known keys…
A developer wants to reduce the number of separate GetItem calls needed to retrieve 50 specific items with known keys from a DynamoDB table, compared to issuing 50 individual GetItem requests.
- AUse BatchGetItem to retrieve up to 100 items across one or more tables in a single request
- BUse Scan with a filter expression on 50 different attribute values
- CCreate 50 separate DynamoDB tables
- DIncrease the table's provisioned write capacity
Show the answer and explanation
Correct answer: A) Use BatchGetItem to retrieve up to 100 items across one or more tables in a single request
Why each option is right or wrong
- A) Correct. BatchGetItem lets you specify a list of keys and retrieve their items in far fewer round-trips than issuing a separate GetItem call for each one individually, up to the batch's item limit.
- B) Incorrect. Scan reads the entire table and filters afterward, which is much less efficient than BatchGetItem's direct key-based batch retrieval when the exact keys are already known.
- C) Incorrect. Splitting into many tables doesn't reduce the number of calls needed and adds significant unnecessary complexity.
- D) Incorrect. Write capacity has no bearing on the number of read calls needed to retrieve a known set of items; BatchGetItem is the relevant read-side batching tool.
- Exam domain
- Development with AWS Services · 32% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- A Lambda function needs to publish a custom CloudWatch metric, such as "OrdersProcessed", from within its handler code.Development with AWS Services
- A team wants to add cross-cutting functionality to their Lambda functions — like sending telemetry to a third-party…Development with AWS Services
- A developer wants a Step Functions state machine to run several independent branches of work — like calling three…Development with AWS Services
- A team needs to apply the same operation (such as copying or tagging) to millions of existing objects already in an S3…Development with AWS Services
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.