exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 52 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 52
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company runs an e-commerce website that uses Amazon DynamoDB where pricing for items is dynamically updated in real time. At any given time, multiple updates may occur simultaneously for pricing information on a particular product. This is causing the original editor's changes to be overwritten without a proper review process.
Which DynamoDB write option should be selected to prevent this overwriting?

  • A. Concurrent writes
  • B. Conditional writes
  • C. Atomic writes
  • D. Batch writes
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
jonnalagadda
Highly Voted 3 years, 5 months ago
Ans: B DynamoDB optionally supports conditional writes for these operations. A conditional write succeeds only if the item attributes meet one or more expected conditions. Otherwise, it returns an error. Conditional writes are helpful in many situations. For example, you might want a PutItem operation to succeed only if there is not already an item with the same primary key. Or you could prevent an UpdateItem operation from modifying an item if one of its attributes has a certain value. Conditional writes are helpful in cases where multiple users attempt to modify the same item.
upvoted 18 times
...
saeidp
Highly Voted 3 years, 5 months ago
B is the correct answere There are two ways to ensure that lost updates phenomenon does not happen in DynamoDB tables: using Conditional Writes in DyanmoDB using Optimistic Locking using @Version support In this scenario optimistic locking is not mentioned
upvoted 10 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
B) Correct - Conditional writes allow you to prevent overwriting an item unless certain conditions are met. This ensures that concurrent updates are managed properly and that updates are only applied if the item has not been modified by another process in the meantime. This is ideal in scenarios where multiple users or processes are updating the same data concurrently, such as with the pricing information in this e-commerce application
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
Yep, it may happen that if we update the price for a specific product at the same time, we have an inconsistent data. DynamoDB allows us to specify a condition to be satisfied before update the information. We obtain this with conditional writes and we can use the Primary key or the version as condition in order to be sure to update the specific item on the table
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
AwsMahesh
3 years, 5 months ago
B. Conditional Writes in DynamoDB called as Optimistic locking technique in DB where you check if the record was updated by someone else before you commit the transaction.
upvoted 2 times
...
VAG1595
3 years, 5 months ago
Answer: B
upvoted 1 times
...
wackyGuru
3 years, 5 months ago
B. Conditional writes
upvoted 1 times
...
Scarback
3 years, 5 months ago
Resp: B
upvoted 1 times
...
kinetic1g
3 years, 5 months ago
B. Conditional writes
upvoted 1 times
...
awscertified
3 years, 6 months ago
B. Conditional writes
upvoted 2 times
...
Dev1
3 years, 6 months ago
Ans: B https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.ConditionalUpdate
upvoted 5 times
...
YashBindlish
3 years, 6 months ago
Correct Answer is "B"
upvoted 6 times
rusll
3 years, 5 months ago
True , link : https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.ConditionalUpdate
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