Section 14: AWS Serverless: DynamoDB Flashcards
How do NoSQL databases scale? (direction)
Horizontally
What replication do you get out of the box with DynamoDB
Replication accross 3 AZ
How much can DynamoDB scale?
It can scale to massive workloads
Millions of requests per seconds
Trillions of rows
TBs of storage
All of it completely automatically
How does DynamoDB enable event driven programming?
By providing DynamoDB streams
Does DynamoDB provide the ability to create โdatabasesโ?
No, only tables (itโs a fully managed service, DynamoDB โisโ the DB)
How many rows can a DynamoDB table have?
Infinite
What must all tables have?
A primary key
What are the two types of primary key?
Simple primary key (partition key only)
Composite primary key (partition key + sort key)
What do each item in a DynamoDB table have?
Primary key
Attributes
What is the maximum size of an item in DynamoDB table?
400 KB
Do all items have to share the same attributes in DynamoDB table?
No, they can all have their own, all attributes are nullable
What data types are supported in DynamoDB tables?
Scalar Types
Document Types
Set Types
What Scalar Types are available?
String Number Binary Boolean Null
What Document Types are available?
List
Map
What is the List type?
Ordered collection of values (Similar to JSON array, values donโt have to be of the same type)
What is the Map type?
Unordered collection of name-value pairs (Similar to JSON object (actually ideal for the purpose of storing JSON objects in DynamoDB))
What Set Types are available?
String Set
Number Set
Binary Set
What is a String Set?
โListโ of strings
What is a Number Set?
โListโ of numbers
What is a Binary Set?
โListโ of binaries
What is the role of the partition key in a DynamoDB table?
It defines the partition where the item is going to get stored
How to make sure that data is highly distributed in a DynamoDB table with a simple primary key?
By having diverse partition keys (primary keys)
How is data grouped when using the composite primary key in a DynamoDB table?
Grouped by partition key
What is another name given to the sort key?
Range key