DynamoDB Flashcards
(13 cards)
What is the maximun size of a row in DynamoDB?
400kb
What are the two options for partition keys in DynamoDB?
- Partition Key (Hash)
- Partition Jey + Sort Key (Hash + Range)
What are the two read/write capacity modes for DynamoDB?
- Provisioned Mode
- On-Demand Mode
One Write Capacity Unit is the equivalent of _ write per second for an item up to _KB in size
One Write Capacity Unit is the equivalent of one write per second for an item up to 1 KB in size
One Read Capacity Unit is the equivalent of _ strongly consistend read per second, or _ eventually consistered reads per second for an item up to _KB in size
One Read Capacity Unit is the equivalent of one strongly consistend read per second, or one eventually consistered reads per second for an item up to 4KB in size
How are WCU and RCU’s distributed for Dynambo DB
Eventy across partitions
What are 3 possible solutions to DynamoDB throttling?
- Exponential backoff
- Distribute parition keys more
- Use DynamoDB Accelerator (DAX)
What is the difference between a ProjectionExpression and a FilterExpression?
ProjectionExpression determines what attributes will be returned from a query whereas a FilterExpression filters out results AFTER the query is commpleted based on non-key attributes.
If part of a DynamoDB batch operation fails, what happens?
A list of “UnprocessedItems” will be returned
What operations can be done as Batch operations in DynamoDB and how many items can be done at once?
Up to 25 PutItem and DeleteItem can be batched
What is the difference between Unprocessed Items and Unprocessed Keys
Unprocessed Items are items in a batch write item that failed to write. Unprocessed Keys are keys that failed to read during a BatchGetItem.
What is the difference between a Condition Expression and a Filter Expression
Condition Expressions are used in relation to write operations whereas Filter Expressions are read related
How can you utalise a Condition Expression to prevent overwriting an element in DynamoDB?
Use the ‘attiribute_not_exists’ condition expression with the partition key and sort key