Interview Prep/AWS/Storage and Databases

What consistency and transaction options does DynamoDB offer?

IntermediateConceptStorage and Databases
Answer

Reads are eventually consistent by default, with ConsistentRead=true for strong reads on the base table and LSIs (not GSIs or global tables replicas). TransactWriteItems / TransactGetItems give ACID across up to 100 items in one Region. Conditional writes (ConditionExpression) implement optimistic locking.

aws dynamodb put-item --table-name orders --item file://item.json \
  --condition-expression "attribute_not_exists(pk)"
aws All AWS questions Roadmap: AWS core services

More on Storage and Databases