Skip to main content

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)

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.