NoSQL/DynamoDB Flashcards
What is a partition key in DynamoDB?
Can act as a primary key. Determines what data is stored together.
What is a sort key in DDB?
Determines sort order of partitions. Optionally part of composite PK along with partition key.
1 WCU means you can write ___ of data per second
1 KB
1 RCU means you can read ____ of data per second.
4 KB
What are the two types of backups for DDB?
On Demand and Point In Time Recovery.
When do on demand backups get deleted?
When you delete them, no automatic deletion.
When are point in time recovery snapshots deleted?
Auto after 35 days
How far behind are point in time recovery backups?
One second
How are WCUs and RCUs handled in on demand tables?
You pay a price per million RCUs or WCUs. Scaling done for you automatically.
How are WCUs and RCUs handled with a Provisioned table?
RCU and WCU set per table.
What are the two ways to read data from DynamoDB?
Query and Scan
What is the advantage of Query in DDB?
Capacity consumed is only on what is returned by query.
What is the disadvantage of Query in DDB?
Not flexible, can only query on PK or PK/SK
What is the advantage of Scan in DynamoDB?
You can query on any attribute
What is the disadvantage of Scan in DDB?
Capacity consumed for every item scanned through