DynamoDB Flashcards

1
Q

DynamoDB

Write Capacity Unit

A
  • one write per second for an item up to 1 KB in size
  • (ITEM SIZE (rounded up to the next 1KB)/1KB) * # of items

Example: we write 10 objects per second of 2KB each.
- we need 2 * 10 = 20 WCU

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

DynamoDB

Read Capacity Unit

A
  • 4 KB units
  • 1 strongly consistent read request
  • 2 eventually consistent read request
  • (ITEM SIZE (rounded up to the next 4KB)/4KB) * # of items.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DynamoDB Streams

A
  • ordered flow of information about changes to the items in the table
  • all data in the stream is subject to a 24 hour life time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DynamoDB Stream View Types

A

KEYS_ONLY
NEW_IMAGE
OLD_IMAGE
NEW_AND_OLD_IMAGE

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

DynamoDB

Global Secondary Index

A
  • speed up queries on non-key attributes
  • contains selection of attributes from the base table but are organized by a primary key
  • queries support eventual consistency attributes
  • basically creates a new table based of a base table with new primary keys and sort keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DynamoDB

Local Secondary Index

A
  • this is used for queries which use the same partition key value
  • maintains an alternate sort key for a given partition
  • can only be added when a table is created
  • local to the partition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DynamoDB

Scan Operations

A
  • less efficient than other operations
  • always scan the entire or secondary index
  • returns all the data attributes for the table
  • supports filters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

DynamoDB

ProvisionedThroughputExceededExceptions

A
◦ Reasons: 
		‣ Hot Keys: one partition key is being read too much 
		‣ Hot Partitions: 
		‣ Large Items: 
◦ Solutions
		‣ Exponential back-off
		‣ Distribute the partitions keys are much as possible 
		‣ If RCU issue using DAX caching
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DynamoDB Stream Type: KEYS_ONLY

A

only the key attribute of the modified item are written

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

DynamoDB Stream Type: NEW_IMAGE

A

the entire item after it was modified is written

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

DynamoDB Stream Type: OLD_IMAGE

A

the entire item before it was modified is written to the stream

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

DynamoDB Stream Type: NEW_AND_OLD_IMAGE

A

both new and old image are written to the stream

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