DynamoDB Flashcards
DynamoDB 3 most common data types
B (Binary), N (Number), S (String)
What are table rows and columns called?
Items (rows) and Attributes (columns)
What is when DynamoDB slices your table up into smaller chunks of data? (this speeds up reads for very large tables)
A Partition
When does DynamoDB create a partition?
- Every 10 GB of Data or
- When you exceed RCUs (3000) or WCUs (1000) limits for a single partition
- When DynamoDB sees a pattern of a hot partition, it will split that partition in an attempt to fix the issue
What are the two types of primary key?
- Simple Primary Key (Using only a Partition Key)
- Composite Primary Key (Using both a Partition and Sort Key)
Partition Key is also known as…
HASH
Sort Key is also known as…
RANGE
When creating a Simple Primary Key, what value must be unique?
the Partition Key
When creating a Composite Primary Key, what combination must be unique?
the combined Partition and Sort Key must be unique
What DynamoDB API calls support transaction?
via the TransactWriteItems and TransactGetItems API calls
What is the name of the feature that allows to set up a Lambda function triggered every time data is modified in a table to react to changes?
DynamoDB Streams
What two types of Indexes does DynamoDB have?
LSI - Local Secondary Index (supports strongly or eventual consistency reads)
GSI - Global Secondary Index (cannot provide strong consistency)
DynamoDB two capacity modes are…
Provisioned and On-Demand
What is the name of the maximum amount of capacity your application is allowed to read or write per second from a table or index?
Provisioned Throughput Capacity
The two methods of retrieving items?
scan and query
(Scan: Scans through all items in a table and then returns one or more items through filters. Avoid using this)
(Query: Find items based on primary key values)