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)"
More on Storage and Databases
Compare the S3 storage classes.BeginnerWhat is S3's consistency model?IntermediateHow does S3 versioning and delete work?BeginnerHow do S3 lifecycle rules work?IntermediateHow do bucket policies, ACLs and Block Public Access interact?IntermediateWhat are the S3 server-side encryption options?Advanced