DynamoDB Flashcards
Define Eventual Consistent Reads
Consistency across all copies of data is usually reached within a second.
Define Strongly Consistent Reads
A read that results in all writes that were successful prior to the read
DynamoDB tables are composed of ___________ and _____________.
Items (rows) and Attributes (data)
What are the two types of primary keys available?
Single attribute - Partition Key
Composite - Partition and Sort Key
True or False: Single attribute primary keys can be shared between items
False
How is the partition key used by DynamoDB?
The partition key is hashed to determine the partition the data is stored in.
True or False: Items with a composite primary key can share partition keys.
True. They must have a different sort key
Local Secondary Index has the ________ partition key and ________ sort key.
Same.
Different.
Global Secondary Index has the ________ partition key and ________ sort key.
Different.
Different.
When can a Local Secondary Index be created?
Only at table creation.
Can a Local Secondary Index be modified or removed?
No.
When can a Global Secondary Index be created?
At table creation or added later.
What are DynamoDB Streams?
They capture any modifications to the DynamoDB table.
What is the difference between Query and Scan in DynamoDB?
Query finds items by primary key attribute values. A scan examines every item in the table.
Which is more effecient: Query or Scan?
Use query operations.
How is read and write throughput measured in DynamoDB?
Capacity units
One write capacity unit is equal to _______ write of ________ KB.
one
1KB.
One read capacity unit for eventual read consistency is equal to _____ read(s) of ______ KB per second
two.
4KB.