Amazon DynamoDB (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is the difference between Strongly Consistent Reads and Eventually Consistent Reads?
junior LeveldynamodbBasic
In Simple Words: When data is written to DynamoDB, it is replicated across three Availability Zones (AZs):
- Eventually Consistent Read (Default): Reads from one of the replicas. May return slightly stale data if a write just occurred (typically under 1 second). Consumes half the read capacity (0.5 RCU per 4KB).
- Strongly Consistent Read: Returns a response with the most up-to-date data by reflecting all successful writes prior to the read. Consumes 1 full RCU per 4KB.
- Note: Global Secondary Indexes (GSIs) only support eventual consistency.