Dynamo DB Flashcards

1
Q

Is DynamoDB single region?

A

No

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

Does it support SQL?

A

No

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

What consistency model DynamoDB supports by default?

A

Eventual consistency

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

What consistency model DynamoDB supports?

A

Eventual (default) and strong consistency

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

What is disadvantage of strongly consistent read?

A

It may fail if data is not available.

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

What ACID consistency stands for?

A

Atomic Consistent Isolated Durable

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

What BASE consistency stands for?

A

Basic Availability, Soft-state, Eventual-consistency

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

What DynamoDB price model is based on?

A

The pricing is based on throughput. User should define how may reads/writes is needed per minute.

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

How Autoscale works with DynamoDB?

A

Auto scaling rules scale up based on throughput. Scaling down is tricky process.

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

What is On-Demand complicity

A

When you do not know upfront read/write capacity DynamoDB will automatically determine needed capacity. It is cheaper to go with Auto-scale, provisioning through put upfront.

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

How to achieve ACID compliance?

A

By using DynamoDB transactions.

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

How DynamoDB identifies a document?

A
  1. By using partition key that are use to calculate hash. The hash is used to identify a partition where data is
    located.
  2. By using partition key and sort key. Partition key defines a partition. sort index determines sort order with in a partition.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Global Secondary Index

A

Partition key and sort key can be different from those on the table. Global means that it is not restricted for a partition data is stored in…

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

What is Local Secondary Index

A

Same partition key as in a table but sort key may be different.

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

What is the limit for amount of secondary indexes?

A

No limit. But indexes take up a storage space.

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

What is the use case for GLOBAL Secondary Index?

A

Fast query attributes by index outside of primary key.

17
Q

What is the use case to use LOCAL secondary index?

A

When you know primary key and want to get by other sort key.

18
Q

What is projection?

A

Projection is required to create a secondary index. Projections are stored in separate tables. The table attributes are copied to these storage. Projections always occur with [partition key]+[sort index].

19
Q

Keep cost down, and minimal latency to access just a few attributes the faster way possible?

A

Projecting just those attributes in GLOBAL Secondary Index. It will keep cost MINIMAL, and will give lowest possible latency for those fields.

20
Q

Keep cost moderate and lowest latency when FREQUENTLY access some-non key attributes.

A

Projecting those attributes with global secondary index. It will minimize cost otherwise caused by scans.

21
Q

What to do in order to frequently query all attributes?

A

Projecting it or even entire table with secondary index will double the price (basically it is maintaining a duplicate table). But it gives maximum flexibility querying the table.

22
Q

What to do to rarely query but write or update frequently?

A

Project keys only for global secondary index.

Minimal cost. Fast writes or updates for non-partition items