DynamoDB Flashcards

(42 cards)

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…

20
Q

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

21
Q

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

22
Q

Can DynamoDB scans be strongly consistent?

A

No. Only eventually.

23
Q

Can DynamoDB scans be ran in parallel?

24
Q

Can DynamoDB scans be ordered?

25
Generally speaking. Will a query or a scan use more RCU’s
Scan
26
Can a DynamoDB query be ordered?
Yes. By sort key.
27
Are DynamoDB queries strongly or eventually consisent?
Either. strongly by default
28
What is the size limit of one WCU in DynamoDB
1kb
29
In DynamoDB must you provision throughput for each secondary index?
Yes
30
In DynamoDB database what is a GSI?
Global secondary index
31
What is the GSI limit per table in DynamoDB
5
32
In DynamoDB what is an LSI
Local secondary index
33
What is the LSI limit per DynamoDB table?
5
34
True or false. LSIs share throughput of the existing table in DynamoDB
True
35
When creating a primary key in an index. You can choose what ...... you project into the index.
Attributes
36
Is partioning in DynamoDB automatic?
Yes
37
What triggers partioning in DynamoDB
A table getting to 10gb in size. Or. High throughput.
38
You want to know how many partitions your DynamoDB table has. How do you do this?
Contact AWS
39
Can DynamoDB partitions be removed or reduced after creation?
No
40
In DynamoDB partion keys are also sometimes known as
Hash keys
41
Describe what happens when a partition is created in DynamoDB
Two new partitions are created. Data is copied to these new partions and the original partition is deleted.
42
Do dynamo database read and writes slow as the table increases in size?
No