passdrill
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 012/014 hard

Two application processes read the same DynamoDB item at nearly the same time, each intending to update a different attribute, and the team wants to guarantee that neither process silently overwrites a change made by the other between the read and the write. Which mechanism should the application implement?

  1. Enable DynamoDB Streams so each process can see the other's writes after the fact
  2. Use a global secondary index so each process writes to a different index
  3. Increase the table's provisioned write capacity so both writes always succeed
  4. Include a ConditionExpression that checks a version attribute matches the value read, so a concurrent write causes the losing process's request to fail with a conditional check failure
Next card → Shuffle