DynamoDB Flashcards
(42 cards)
What is provisioned throughput in DynamoDB?
Your read / write capacity.
Is data in DynamoDB strong consistent, or eventually consistent?
Eventually consistent. But very fast.
DynamoDB automatically copies your data to … availability zones.
3
DynamoDB can not be as complex as SQL queries. This is by design. Why?
To push logic away from the database layer and to the computer layer
Can dates be stored in DynamoDB straight up?
Nope. Must be converted to a time stamp
What are the maximum amount of indexes allowed on a DynamoDB table?
10
What’s max item size in DynamoDB
400kb
In DynamoDB what is a composite key?
When you specify a primary key and a sort key
True or false. In Dynamo database the only way to look up data is by primary key?
True
What are the default read/writes in DynamoDB
5
Does DynamoDB allow for bursting above capacity?
Yes but it’s very limited, and no details are specified by AWS
True or false. AWS use DynamoDB burst capacity for maintenance
True
In DynamoDB what is an RCU
Read capacity unit
In DynamoDB what is a WCU
Write capacity unit
The size limit of one DynamoDB RCU is…
4kb
You need to retrieve an item from DynamoDB which is 16kb in size. How many RCUs will this use?
4
1 RCU = 4kb
16kb/4kb =4
Are RCU requests strongly or eventually consistent?
By default, strongly. But they can be set to eventually.
What’s the benefit of an eventually consistent RCU
They cost half compared to a strongly consistent RCU
Want to query DynamoDB. Your two options are…
Query
Scan
Want to search a whole table across all partion keys? What to use?
A scan
Want to search a specific table for a single portion key? What to use?
A query
Can DynamoDB scans be strongly consistent?
No. Only eventually.
Can DynamoDB scans be ran in parallel?
Yes
Can DynamoDB scans be ordered?
No