DynamoDB Flashcards

1
Q

What is DynamoDB

A

A managed, multi-A, NoSQL data store with cross-region replication option

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

Since DynamoDB is multi-AZ, what consistency model does it follow?

A

eventual consistency by default. Strong consistency can be programmed via SDK

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

Generally speaking, what is pricing for DynamoDB based on?

A

throughput

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

What options do you have if you anticipate overwhelming demand?

A

You can provision read and write capacity

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

What is DynamoDB autoscale based on?

A

configured min/max levels.

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

What is the downside to DynamoDB autoscale?

A

It does not scale back down after it has scaled up. You have to intervene.

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

What is the alternative to autoscale?

A

on-demand capacity. Comes with premium pricing.

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

How can ACID compliance be met with DynamoDB?

A

Using DynamoCB Transactions. Configurable in the SDK

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

What is a name/value pair known as?

A

Attribute

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

What is the whole collection of names and values referred to as?

A

Item

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

What are multiple items known as?

A

Table

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

What must every record (or item?) have to identify it?

A

a primary key

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

Must a primary key be unique?

A

yes

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

to access an item, or record I dynamoDB, what information do you need?

A

just the Name of the name-value pair what comprises the primary key

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

What is a global secondary index?

A

Partition key and sort key can be different from those on the table

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

What is the local secondary index

A

Same partition key as the table but different sort key.

17
Q

When would you use a global secondary key?

A

for fast queries of attributes outside of the primary key without scanning the whole table.

18
Q

when would you use local secondary index?

A

When you already know the partition key and want to quickly query on some other attribute

19
Q

What should you do when your most common DynamoDB queries do not use the partition key?

A

Create a Global Secondary Index with the most common queried attribute as the hash key.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html

20
Q

What DynamoDB features can be utilized to increase the speed of read operations?

A
DynamoDB Accelerator (DAX)
Secondary Indexes
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html