DynamoDB Flashcards

1
Q

DynamoDB Max size of an item is…

A

400KB

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

Mode that needs to have capacity planned beforehand

A

Provisioned

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

Mode that has read/writes auto scale up/down with workloads

A

On-Demand

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

Write Capacity Units equation

A

Items per second * (item size/1KB) = WCUs

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

Write 6 items per second with item size 4.5KB equals how many WCUs

A

30 WCUs

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

Write 120 items per minute with item size 2 KB equals how many WCUs

A

4 WCUs

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

If you read just after a write, it’s possible to get some stale data because of

A

Eventually Consistent Read

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

If you read just after a write, you get the correct data

A

Strongly Consistent Read

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

Default Consistent Read mode

A

Eventually

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

Read Capacity Units equation - SCR

A

Reads per second * (item size/4KB)

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

SCR 10 per second with item size of 6KB equals how many RCUs?

A

20 RCUs

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

ECR 16 per second with item size of 12KB equals how many RCUs

A

24 RCUs

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

Error “ProvisionedThroughputExceededException” happens because of

A

Throttling

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

Hot Keys can cause

A

Throttling

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

Hot Partitions can cause

A

Throttling

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

Very large items can cause

A

Throttling

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

Use cases of unknown workloads and unpredictable app traffic are good for which capacity mode

18
Q

Creates new item or fully replace an old item

19
Q

Edits an existing item’s attributes or adds a new item if it doesn’t exist

A

UpdateItem

20
Q

Accept a write/update/delete only if conditions are met, otherwise return error

A

Conditional Writes

21
Q

Read based on primary key

22
Q

Read entire table and then filter out data

23
Q

Use __ Scan for faster performance

24
Q

Delete data

A

DeleteItem

25
Quicker deletion than DeleteItem
DeleteTable
26
Alternative Sort key that must be defined at table creation time
Local Secondary Index
27
Up to _ LSI per table
5
28
Alternative primary key from the base table that can be added/modified after table creation
Global Secondary Index
29
If writes are throttled on the Global Secondary Index, then the main table will...
be throttled
30
Must provision RCUs & WCUs for this type of index
GSI
31
Can solve "Hot Key" problem in DynamoDB
DynamoDB Accelerator (DAX)
32
T/F: DAX is Multi-AZ
True
33
CLI command used to retrieve one or more attributes
--projection-expression
34
CLI command to filter items before return to you
--filter-expression
35
CLI command that specify that AWS retrieves the full list of items but with a larger # of API calls
--page-size
36
CLI command to specify the max # of items to show in the CLI (returns NextToken)
--max-items
37
CLI command to specify the last NextToken to retrieve the next set of items
--starting-token
38
Transactions consume _x WCUs & RCUs
2
39
One or more GetItem operations
TransactGetItems
40
One or more PutItem, UpdateItem, and DeleteItem operations
TransactWriteItems
41
Read Capacity Units equation - ECR
(Reads per second / 2) * (item size / 4KB) = RCUS