AWS Certified Solutions Architect – Professional — Question 349
Which of the following does Amazon DynamoDB perform?
Answer options
- A. Atomic increment or decrement on scalar values
- B. Neither increment nor decrement operations
- C. Only increment on vector values
- D. Only atomic decrement operations
Correct answer: A
Explanation
Amazon DynamoDB supports atomic counters using the UpdateItem API, which allows for both atomic increment and decrement operations on scalar numeric values. This ensures that updates occur sequentially without interfering with other write requests. Other choices are incorrect because DynamoDB is not restricted to only decrementing, nor does it limit these atomic updates to vector values or disallow them entirely.