DynamoDB Flashcards
What is Dynamo DB?
No Sql Database in AWS
What does Dynamo offers for CRUD operations?
PutItem, GetItem, UpdateItem and DeleteItem
PI, GI, UI and DI
What are the Batch Operation does Dynamo offers?
BatchGetItem and BatchWriteItem (BGI and BWI. These are parallel operations)
maximum item size in DynamoDB is _____
400KB
A single BatchGetItem operation can retrieve a maximum of ___ items and can not exceed ___ in size.
100 and 16MB
A single BatchWriteItem operation can write a maximum of ___ items and can not exceed ___ in size.
25 and 16MB
You don’t need to specify full primary key value to read an item if its a composite primary key in dynamo?
False
Dynamo DB uses ______ consistent reads by default?
eventually
Dynamo Batch request does not fail unless all the requests in the batch fails?
True
Can two items in a table have same partition key value?
No. If so, you have to use sort key as well
You can modify the local secondary index in dynamo?
No, they gets created during the table creation and can’t be changed.
You can modify the Global secondary index in dynamo?
Yes, we can
What index is same partition key + different sort key in dynamo?
Local Secondary Index
What index is different partition key + different sort key in dynamo?
Global Secondary Index
Dynamo Primary Key Concept?
- Single Attribute (Unique ID)
- —> Partition Key (Hash key) of one attribute
- Composite Key (Unique + Date Range)
- —>Partition & Sort Key (Hash and Range) of two attributes
Does a Local secondary index shares provisioned throughput settings for read and write activity with the table it is indexing.
True
Max dynamo db tables per Region per account
256
Max default Local and Global Secondary Index
5 and 20 (Total 25)
Can you request AWS to increase Local Secondary Index more than 5?
No, max is 5 for LSI
Can you request AWS to increase Global Secondary Index more than 20?
Yes, you need to contact AWS support
Max Size of an item Collection in dynamo db is
10GB
Dynamo Accelerator
is used to increase the performance for read heavy workloads.
Do you suggest to use Dynamo DAX for write heavy applications?
No. DAX is not meant for -- Strongly Consistent reads -- Write Intense apps -- Apps with few reads -- Apps does not need micro second responses
Strongly Consistent Read Capacity Formula
(ITEM SIZE (rounded up to the next 4KB multiplier) / 4KB) * # of items