DynamoDB Flashcards

1
Q

What is provisioned throughput in DynamoDB?

A

Your read / write capacity.

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

Is data in DynamoDB strong consistent, or eventually consistent?

A

Eventually consistent. But very fast.

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

DynamoDB automatically copies your data to … availability zones.

A

3

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

DynamoDB can not be as complex as SQL queries. This is by design. Why?

A

To push logic away from the database layer and to the computer layer

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

Can dates be stored in DynamoDB straight up?

A

Nope. Must be converted to a time stamp

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

What are the maximum amount of indexes allowed on a DynamoDB table?

A

10

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

What’s max item size in DynamoDB

A

400kb

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

In DynamoDB what is a composite key?

A

When you specify a primary key and a sort key

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

True or false. In Dynamo database the only way to look up data is by primary key?

A

True

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

What are the default read/writes in DynamoDB

A

5

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

Does DynamoDB allow for bursting above capacity?

A

Yes but it’s very limited, and no details are specified by AWS

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

True or false. AWS use DynamoDB burst capacity for maintenance

A

True

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

In DynamoDB what is an RCU

A

Read capacity unit

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

In DynamoDB what is a WCU

A

Write capacity unit

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

The size limit of one DynamoDB RCU is…

A

4kb

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

You need to retrieve an item from DynamoDB which is 16kb in size. How many RCUs will this use?

A

4

1 RCU = 4kb

16kb/4kb =4

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

Are RCU requests strongly or eventually consistent?

A

By default, strongly. But they can be set to eventually.

18
Q

What’s the benefit of an eventually consistent RCU

A

They cost half compared to a strongly consistent RCU

19
Q

Want to query DynamoDB. Your two options are…

A

Query

Scan

20
Q

Want to search a whole table across all partion keys? What to use?

A

A scan

21
Q

Want to search a specific table for a single portion key? What to use?

A

A query

22
Q

Can DynamoDB scans be strongly consistent?

A

No. Only eventually.

23
Q

Can DynamoDB scans be ran in parallel?

A

Yes

24
Q

Can DynamoDB scans be ordered?

A

No

25
Q

Generally speaking. Will a query or a scan use more RCU’s

A

Scan

26
Q

Can a DynamoDB query be ordered?

A

Yes. By sort key.

27
Q

Are DynamoDB queries strongly or eventually consisent?

A

Either. strongly by default

28
Q

What is the size limit of one WCU in DynamoDB

A

1kb

29
Q

In DynamoDB must you provision throughput for each secondary index?

A

Yes

30
Q

In DynamoDB database what is a GSI?

A

Global secondary index

31
Q

What is the GSI limit per table in DynamoDB

A

5

32
Q

In DynamoDB what is an LSI

A

Local secondary index

33
Q

What is the LSI limit per DynamoDB table?

A

5

34
Q

True or false. LSIs share throughput of the existing table in DynamoDB

A

True

35
Q

When creating a primary key in an index. You can choose what …… you project into the index.

A

Attributes

36
Q

Is partioning in DynamoDB automatic?

A

Yes

37
Q

What triggers partioning in DynamoDB

A

A table getting to 10gb in size. Or. High throughput.

38
Q

You want to know how many partitions your DynamoDB table has. How do you do this?

A

Contact AWS

39
Q

Can DynamoDB partitions be removed or reduced after creation?

A

No

40
Q

In DynamoDB partion keys are also sometimes known as

A

Hash keys

41
Q

Describe what happens when a partition is created in DynamoDB

A

Two new partitions are created. Data is copied to these new partions and the original partition is deleted.

42
Q

Do dynamo database read and writes slow as the table increases in size?

A

No