Databases Flashcards
Does DynamoDB have query join capability?
No
Does DynamoDB support aggregations such as SUM or AVG?
No
How do NoSQL databases scale?
Horizontally
Instead of rows and columns, what is the lexicon used in Dynamo DB?
Items = Rows
Attributes = columns
What is the maximum size for an item in DynamoDB?
400KB
Using DynamoDB, what is the accepted solution to store BLOB data?
Store the object in S3 and store the metadata
What is provisioned mode in DynamoDB?
You specify the number of reads and writes and pay for the provisioned capacity regardless if it is all used.
Can you auto-scale using DynamoDB provisioned capacity mode?
No. You must use on-demand mode.
What is cheaper, DynamoDB provisioned or on-Demand mode?
Provisioned mode.
What can be used in DynamoDB provisioned capacity to temporarily exceed throughput?
Burst capacity. Once exceeded, a ProvisionedThroughputExceededException will be thrown.
When reaching a ProvisionedThroughputExceededException error in DynamoDB, what is the prferred solution?
An exponential backoff retry
In DynamodDB, how large is 1 WCU?
1 WCU = 1 write up to 1KB in size per second.
What are the two types of reads in DynamoDb?
Strongly consistent and eventually consistent reads.
What is an eventually consistent read in DynamoDB?
A read that has the potential to get stale data because the write has not replicated to all the servers on the backend yet.
What is a strongly consistent read in dynamoDB?
It returns data only after it has been fully replicated on the backend.
How do you set a strongly consistent read in DynamoDB?
Set the consistentRead parameter to TRUE in API calls.
How many RCUs is a strongly consistent read?
It is twice the cost of an eventually consistent read.
In DynamoDB, how large is 1RCU?
One strongly consistent read or two eventually consistent reads per second for items up to 4KB in size.
In DynamoDB, how are WCUs and RCUs spread?
evenly amongst all partitions
In DynamoDB, what is a projectedExpression?
It can be specified to only retrieve certain attributes.
Can a FilterExpression be used with key attributes in DynamoDB?
No, You cannot use this with HASH or Range Attributes.
In DynamoDB, what is the max value of data allowed to be returned in a Query API call?
1MB
How does the SCAN operation work in DynamoDB?
It loads the entire table and then filters out the data you want. This is inefficient.
How can you improve DynamoDB scan performance if you must use it?
Parallel Scans