Databases Flashcards

1
Q

Do NoSQL databases perform aggregations such as SUM() or AVG()

A

No

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

Do NoSQL databases scale horizontally?

A

Yes

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

Is DynamoDB Highly Available across Multiple AZs out of the box?

A

Yes

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

Does Dynamo DB integrate with IAM?

A

Yes

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

DynamoDB is made of ____________?

A

Tables

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

DynamoDB tables must have a _________?

A

Partition key

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

Each DynamoDB item has________?

A

Attributes

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

What is the maximum size of an item?

A

400kb

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

What is a partition key in DynamoDB?

A

It acts as a primary key and must be unique for each item. It also must be diverse enough to data is distributed.

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

What two primary key options are available in DynamoDB?

A

Partition Key
Partition Key + Sort Key

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

When using a partition key and sort key in DynamoDB, what is the limitation?

A

The partition and sort key combination must be unique.

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

What are the two table classes in DynamoDB?

A

DynamoDB standard

DynamodDB standard-IA

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

What does the sort key really do in the UI?

A

Allows you to sort on a column.

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

What are the capacity modes in DynamoDB?

A

Provisioned Mode

On-Demand Mode

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

How often can you switch between capacity modes in DynamoDB?

A

Every 24 hours

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

If you exceed your RCU or WCU in DynamodDB, what error is returned?

A

ProvisionedThroughputExceededException

17
Q

How can you deal with ProvisionedThroughputExceededException without increasing WCU or RCU?

A

Exponential Backoff

18
Q

What is the measurement for one WCU?

A

One item per second for an item up to 1kb in size.

19
Q

If you have an item that is 4.5kb in size, how many WCU is required?

A

5 .. Rounding up is required.

20
Q

What are the two kinds of reads in Dynamodb?

A

Strongly Consistent

Eventually Consistent

21
Q

What is the problem with Eventually consistent reads?

A

Old data may be returned if there is replication latency.

22
Q

What does a consistent read in DynamoDB do?

A

It reads the data after a write, but ensures that it is the most recent data.

23
Q
A