What is DynamoBD
How is NoSQL different then AWS RDS options
What is the maximum size of an item (aka row)
400kb
What data types are supported in dynamoDb?
What are requirements for a Primary Key?
Must be unique
Must be ‘diverse’ so that the data is distributed
What is a sort key?
A dynamoDB primary key can consist of both a primary key and a sort key
The combination must be unique
Sort key == range key
What are Read Capacity Units (RCU)?
throughput for reads
What are Write Capacity Units (WCU)?
throughput for writes
What is the formula for calculating WCUs?
One WCU = 1 write per second for an item up to 1KB in size
Example:
we write 10 objects per seconds of 2 KB each.
We need 10 * 2 = 20 WCU
What is the default read consistency for dynamoDB?
DynamoDB uses Eventually Consistent Reads, but GetItem, Query & Scan provide a “ConsistentRead” parameter you can set to True
What is the formula for calculating dynamoDB RCU’s?
Strongly Consistent Reads
Eventually Consistent Reads
If the items are larger than 4 KB, more RCU are consumed (applies to both eventually / strongly consistent reads)
EXAMPLE:
10 strongly consistent reads per seconds of 4 KB each We need 10 * 4 KB / 4 KB = 10 RCU
What term is used to describe rows in a dynomoDB table?
Items
What term is used to describe columns in a dynomoDB table?
Attributes
Can throughput be exceeded temporarily in a dynomoDB table?
Yes, by using burst credits
What happens if there are burst credits are empty in a dynomoDB table?
you’ll get a ‘ProvisionedThroughputException’ error
How do partitions affect RCUs and WCUs?
RCUs and WCUs are spread evenly across partitions
What happens if the defined RCU or WCU in dynomoDB is exceeded?
You get a ‘ProvisionedThroughputExceeded’ error
What is the most popular reason to receive a ‘ProvisionThroughputExceededException’ in dynomoDB?
What are some possible solutions to a ‘ProvisionedExceptionError’ in dynamoDB?
What is the API command to write data to DynamoDB?
What is the API command to update data in DynamoDB?
UpdateItem
What are conditional writes in DynamoDB?
Places a condition on an item as to when it can be updated.
Example:
Item can only be updated if value = x
What is the API call for deleting an item?
DeleteItem
Deletes an Individual row (Item)
Can you conditionally perform a delete in dynamoDB?
Yes