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 361 discussion

A developer is writing an application, which stores data in an Amazon DynamoDB table. The developer wants to query the DynamoDB table by using the partition key and a different sort key value. The developer needs the latest data with all recent write operations.

How should the developer write the DynamoDB query?

  • A. Add a local secondary index (LSI) during table creation. Query the LSI by using eventually consistent reads.
  • B. Add a local secondary index (LSI) during table creation. Query the LSI by using strongly consistent reads.
  • C. Add a global secondary index (GSI) during table creation. Query the GSI by using eventually consistent reads.
  • D. Add a global secondary index (GSI) during table creation. Query the GSI by using strongly consistent reads.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Anandesh
Highly Voted 8 months, 4 weeks ago
Selected Answer: B
GSI - diff part key and sort key | LSI - same part key and diff sort key Strongly consistent - most recent data
upvoted 7 times
...
tomchandler077
Most Recent 9 months ago
The correct answer is: B. Local Secondary Index (LSI): An LSI allows you to create an index with a different sort key for the same partition key as the base table. This lets you query the table using the same partition key but with a different sort key. LSIs are created at the same time as the table and cannot be added to an existing table. Strongly consistent reads ensure that you always receive the most up-to-date data after all previous write operations are acknowledged. This is important when the developer needs to ensure they are getting the latest data, as stated in the question.
upvoted 3 times
...
[Removed]
9 months ago
Selected Answer: B
Considering developer wants to query by using the same partition key and a different sort key value, so B it's the correct answer
upvoted 2 times
...
Alagong
9 months ago
Selected Answer: D
ANSWER IS D
upvoted 1 times
albert_kuo
6 months ago
you can only create LSI during table creation
upvoted 1 times
...
Alagong
9 months ago
ANSWER IS B... NOT D
upvoted 2 times
...
...
cachac
9 months, 1 week ago
Selected Answer: D
Strongly Consistent Reads
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