aCloudGuru: Amazon DynamoDB Deep Dive Flashcards

1
Q

02 Databases 101 / 03 NoSQL Database Models

What is BASE?

A

BA - Basic Availability - db appears to work most of the time

Soft state: stores don’t have to be write-consistent, nor do different replicas have to be mutually consistent all the time

Eventual consistency: stores exhibit consistency at some later point

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

03 DynamoDB and Secenario Introduction / 01 DynamoDB 10,000 FT

Is DynamoDB supporting ACID?

A

Yes.

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

04 Table and Item Architecture / 02 DynamoDB Items

Is there any limit for item size?

A

Yes - 400KB

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

05 Accessing DynamoDB / 01 Using the AWS Management Console

What is the requirement for table uniqueness?

A

Table name must be unique per AWS account and region.

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

05 Accessing DynamoDB / 01 Using the AWS Management Console

When LSI can be created?

A

Only during table creation.

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

05 Accessing DynamoDB / 03 SDK Options

What type of interfaces can be used to access DynamoDB?

A
  1. Low-Level Interface (HTTP)
  2. Document Interface (Java/.NET/JS)
  3. High-Level Interface (Object Persistence Interface) (Java/.NET)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

07 Working with Items / 02 Performance Units: RCU/WCU

How many RCUs are consumed for

  • one strong consistent read
  • eventually consistent read
  • transactional read

assuming that we try to read 8KB item

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

07 Working with Items / 02 Performance Units: RCU/WCU

How many WRUs will be used to write an item of 3KB for standard/transactional?

A
  • Standard: 3 WCUs
  • Transactional: 6WCUs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

10 Table Indexes / 02 Indexes: Part 2

3 options for projection expressions.

A
  1. ALL
  2. KEYS_ONLY
  3. INCLUDE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

10 Table Indexes / 02 Indexes: Part 2

What is GSI?

A

Global secondary index - can have partition key different than partition key of parent table and optional sort key.

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

10 Table Indexes / 02 Indexes: Part 2

What is sparse index?

A

Sparse index is an index that doesn’t contain all table elements because sort key is not present in every item.

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

12 Advanced Performance and Scaling Considerations / 02 Hot and Cold Partition Imbalance

What is adaptive capacity?

A

When there is a hot partition DynamoDB can allow to have higher consumed capacity over provisioned capacity on this partition provided that other partition consume less.

Assuming that total provision capacity = 400 whereas consumed is 300, then having 4 partition the consumed capacity can be distributed as 50/50/50/150.

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

12 Advanced Performance and Scaling Considerations / 02 Hot and Cold Partition Imbalance

How # partitions is calculated?

A

RCU/3000 + WCU/1000 = # Partitions

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

16 Streams and Triggers / 01 Streams

What view types can be selected when managing a stream?

A
  1. Keys only
  2. New image
  3. Old image
  4. New and old image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

17 Advanced Index Usage

What are two techniques for aggregation in DynamoDB?

A
  1. Selective write sharding (main process write data + shards from 2 tables, lambda launched on trigger calculates data from 2nd table and put aggregate results into it)
  2. Aggregation with stream (lambda triggered by stream is writing calculated data directly into new table)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly