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

A

On-Demand

18
Q

Creates new item or fully replace an old item

A

PutItem

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

A

GetItem

22
Q

Read entire table and then filter out data

A

Scan

23
Q

Use __ Scan for faster performance

A

Parallel

24
Q

Delete data

A

DeleteItem

25
Q

Quicker deletion than DeleteItem

A

DeleteTable

26
Q

Alternative Sort key that must be defined at table creation time

A

Local Secondary Index

27
Q

Up to _ LSI per table

A

5

28
Q

Alternative primary key from the base table that can be added/modified after table creation

A

Global Secondary Index

29
Q

If writes are throttled on the Global Secondary Index, then the main table will…

A

be throttled

30
Q

Must provision RCUs & WCUs for this type of index

A

GSI

31
Q

Can solve “Hot Key” problem in DynamoDB

A

DynamoDB Accelerator (DAX)

32
Q

T/F: DAX is Multi-AZ

A

True

33
Q

CLI command used to retrieve one or more attributes

A

–projection-expression

34
Q

CLI command to filter items before return to you

A

–filter-expression

35
Q

CLI command that specify that AWS retrieves the full list of items but with a larger # of API calls

A

–page-size

36
Q

CLI command to specify the max # of items to show in the CLI (returns NextToken)

A

–max-items

37
Q

CLI command to specify the last NextToken to retrieve the next set of items

A

–starting-token

38
Q

Transactions consume _x WCUs & RCUs

A

2

39
Q

One or more GetItem operations

A

TransactGetItems

40
Q

One or more PutItem, UpdateItem, and DeleteItem operations

A

TransactWriteItems

41
Q

Read Capacity Units equation - ECR

A

(Reads per second / 2) * (item size / 4KB) = RCUS