exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 551 discussion

An application includes an Amazon DynamoDB table that is named orders. The table has a primary partition key of id and a global secondary index (GSI) that is named an accountIndex. The GSI has a partition key of accountId and a sort key of orderDateTime.

A developer needs to create an AWS Lambda function to retrieve the orders that have an accountId of 100.

Which solution will meet this requirement by using the LEAST read capacity?

  • A. Define a DynamoDB API request for the GetItem action with the following parameters:

  • B. Define a DynamoDB API request for the BatchGetItem action with the following parameters:

  • C. Define a DynamoDB API request for the Scan action with the following parameters:

  • D. Define a DynamoDB API request for the Query action with the following parameters:
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
e886835
1 day, 11 hours ago
Selected Answer: D
The Query action is the most efficient for retrieving items from DynamoDB when you want to retrieve data based on a partition key or both a partition key and sort key
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago