Databases - DynamoDB Flashcards

1
Q

What is DynamoDB

A

fast and flexible NoSQL database service for all apps that need consistent, single-digit millisecond latency at any scale.

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

Is DynamoDB fully managed?

A

Yes

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

What models does DynamoDB support?

A

Document, key-value

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

Uses for DynamoDB

A

mobile, web, gaming, ad-tech, IoT

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

Where is data in DynamoDB stored?

A

SSD Storage

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

Where is DynamoDB spread?

A

across 3 geographically distinct data centers (not AZs)

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

Default consistency model for DynamoDB

A

Eventual Consistent Reads. Strongly consistent reads is the other

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

Eventual Consistent Reads

A

Consistency across all copies of data is usually reached within 1 second. repeating a read after a short time should return the updated data (best read performance)

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

Strongly Consistent Reads

A

returns the 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
10
Q

If low latency is important

A

pick Eventual consistent reads. Otherwise, pick strongly consistent reads

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

DynamoDB pricing

A

Provisioned throughput capacity, storage

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

How expensive is DynamoDB?

A

Expensive for writes, cheap for reads

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

Use case for DynamoDB

A

If DB is read-heavy, scalabilty and good performance are important, SQL is not necessary

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

default read and write capacity units when creating a DynamoDB table

A

5, 5

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

can you purchase reserved capacity?

A

Yes, 1 or 3-year terms

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

Item

A

Row

17
Q

Important metrics to know

A

Read capacity Units, Write capacity units (both provisioned/consumed)