DDB Flashcards

(10 cards)

1
Q

DDB row limits

A

Each row maximum 400kb including primary key(s) (keys, if its a composite key)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

RCU and WCU speeds

A

1WCU - write 1kb per second
1RCU - read 4kb per second (strongly consistent read) (connects to leader/writer node directly)
1RCU - read 8kb per second (eventual consistent read)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Backups in DDB

A

On-demand
- You manually do full copy of table and remove when backup not needed anymore.
- Use case is backing up and migrating data to another region

Point in time recovery
- Disabled by default
- 1s granularity
- Per table basis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Query vs Scan in DDB

A

Query can only filter by primary and sort key.
Scan can filter by other columns. RCU will still be used on the rows touched by the scan - not just the results of the scan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

LSI vs GSI

A

LSI
- Extra sort keys (max 5)
- Must be created during table creation
- Uses RCU and WCU from base table

GSI
- Created at any time
- New partition and sort key based on base table
- New set of RCU and WCU from base table
- Eventually consistent. Replication from base to GSI is async

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DDB Global Tables architecture and conflict resolution

A

Master-master replication. All countries re writers and readers. Sub-second replication to other instances. Last writer wins

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

AWS ElasticSearch is not server less

A

Not serverless. AWS injects compute into your VPC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

AWS Neptune

A

Graph DB. Feature set like RDS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

AWS Quantum Ledger DB

A

Immutable, append-only, ledger db. Blockchain essentially, but not a publicly accessible one. Document db model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

AWS Athena

A

Pay as you go big data query engine. Like presto.

  1. Define a schema
  2. On query, data is loaded through this schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly