Dynamodb easy
In 'Provisioned Capacity' mode, how is the performance budget of a DynamoDB table defined?
- A By setting Read Capacity Units (RCU) and Write Capacity Units (WCU) which represent guaranteed throughput per second.
- B By choosing a specific EC2 instance type (e.g., r6g.xlarge) to host the data.
- C By specifying the maximum number of GSI projections allowed.
- D Capacity is automatically calculated based on the total gigabytes of data stored.
Answer: A. By setting Read Capacity Units (RCU) and Write Capacity Units (WCU) which represent guaranteed throughput per second.
DynamoDB decouples performance from storage. You lease throughput in predictable blocks. For example, 1 WCU allows for one 1KB write per second. This allows for precise cost control and scaling independent of dataset size.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- DynamoDB has a strict 400KB limit on the size of a single item. What is the recommended design pattern if you need to store larger documents (e.g., 5MB PDFs)?
- What is the primary role of the 'Partition Key' in ensuring DynamoDB's infinite horizontal scalability?
- Why is the `Query` operation generally preferred over `Scan` for production workloads in DynamoDB?
- DynamoDB is a 'fully managed' serverless database. What is a primary operational benefit of this model for an engineering team?
- When would an architect choose to implement DAX (DynamoDB Accelerator) in front of an existing DynamoDB table?
- DynamoDB supports two types of Primary Keys. What is the fundamental difference between a 'Simple' and a 'Composite' primary key?