DynamoDB Flashcards

(13 cards)

1
Q

What is the maximun size of a row in DynamoDB?

A

400kb

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

What are the two options for partition keys in DynamoDB?

A
  1. Partition Key (Hash)
  2. Partition Jey + Sort Key (Hash + Range)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two read/write capacity modes for DynamoDB?

A
  1. Provisioned Mode
  2. On-Demand Mode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

One Write Capacity Unit is the equivalent of _ write per second for an item up to _KB in size

A

One Write Capacity Unit is the equivalent of one write per second for an item up to 1 KB in size

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

One Read Capacity Unit is the equivalent of _ strongly consistend read per second, or _ eventually consistered reads per second for an item up to _KB in size

A

One Read Capacity Unit is the equivalent of one strongly consistend read per second, or one eventually consistered reads per second for an item up to 4KB in size

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

How are WCU and RCU’s distributed for Dynambo DB

A

Eventy across partitions

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

What are 3 possible solutions to DynamoDB throttling?

A
  1. Exponential backoff
  2. Distribute parition keys more
  3. Use DynamoDB Accelerator (DAX)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between a ProjectionExpression and a FilterExpression?

A

ProjectionExpression determines what attributes will be returned from a query whereas a FilterExpression filters out results AFTER the query is commpleted based on non-key attributes.

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

If part of a DynamoDB batch operation fails, what happens?

A

A list of “UnprocessedItems” will be returned

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

What operations can be done as Batch operations in DynamoDB and how many items can be done at once?

A

Up to 25 PutItem and DeleteItem can be batched

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

What is the difference between Unprocessed Items and Unprocessed Keys

A

Unprocessed Items are items in a batch write item that failed to write. Unprocessed Keys are keys that failed to read during a BatchGetItem.

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

What is the difference between a Condition Expression and a Filter Expression

A

Condition Expressions are used in relation to write operations whereas Filter Expressions are read related

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

How can you utalise a Condition Expression to prevent overwriting an element in DynamoDB?

A

Use the ‘attiribute_not_exists’ condition expression with the partition key and sort key

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