DynamoDB Flashcards

1
Q

What is DynamoDB?

A

Fast, flexible NoSQL database

single digit latency at any scale

supports document and key-value data models

Great fit for mobile, web, gaming, ad-tech, IoT

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

Facts

A

Stored on SSD

Spread across 3 geographically distinct data centers
they don’t say AZ’s

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

Eventual Consistent Read type

A

Consistency across all copies of data reached within one second

Best read performance

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

Strongly Consistent Read type

A

Returns result that reflects all writes that received a successful response prior to the read

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

DynamoDB pricing

A

based on throughput capacity

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

Write throughput pricing

A

$.0065 per hour for 10 units

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

Read throughput pricing

A

$.0065 per hour for 50 units

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

Storage pricing

A

$.25 / Gb per month

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

Calculate writes and reads per second

A

1 million writes per day is:

1,000,000 / 24 hours / 60 minutes / 60 seconds

= 11.6 writes per second

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

DynamoDB write capacity unit

A

handles 1 write per second

so in example of 11.6 writes/second you need 12 write capacity units

($.0065 / 10) * 12 * 24 = $.1872 per day

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

Metrics to watch for performance

A

Read, Write capacity units

shows provisioned vs consumed so you can see if you are under or over provisioned

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

How do you scale DynamoDB up or down?

A

Go to capacity and add/remove read or write capacity units

On the fly, now downtime

Compare to RDS where you need a snapshot or read-replica, adjust instance size

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

How do you scale DynamoDB up or down?

A

Go to capacity and add/remove read or write capacity units

On the fly, now downtime

Compare to RDS where you need a snapshot or read-replica, adjust instance size

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