DynamoDB Flashcards

(34 cards)

1
Q

Where is DynamoDB data stored?

A

On SSD storage

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

How does Dynamo DB provide data redundancy?

A

Data in DynamoDB is spread across 3 geographically distinct data centers

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

What is the data consistency model for DynamoDB?

A

Eventually Consistent Reads by Default

Strongly Consistent Reads as an option

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

Roughly when are Eventually Consistent Reads consistent?

A

Data consistency is usually reached within 1 second

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

What are Strongly Consistent Reads?

A

A strongly consistent read reflects all writes that received a successful response prior to the read.

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

What is AWS DAX?

A

Fully managed, highly-available in-memory cache for DynamoDB

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

What is the performance improvement offered by AWS DAX?

A

10x performance improvement over DB standalone

Reduces request time from milliseconds to microseconds

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

Can AWS DAX also provide write speedup?

A

Yes, it is a write-through cache

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

What does DynamoDB Transactions assist with?

A

Atomic operations

(Think money transfer, can’t debit one account without crediting another)

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

How does using DynamoDB Transactions affect read/write capacity?

A

Transactions does 2 underlying reads or writes of every item in the transaction, one to prepare, and one to commit.

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

What is DynamoDB On-Demand Capacity?

A

Pay-per-request pricing

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

What is the minimum capacity required for DynamoDB On-Demand capacity?

A

There is none!

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

What is the pricing model for DynamoDB On-Demand Capacity?

A
  • No charge for read/write while the table is idle, only for storage and backups
  • Pay more per request than with provisioned capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the recommended use case for DynamoDB On-Demand Capacity?

A

New Product Launches, when you don’t have a sense ahead of time of how much traffic to expect

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

What is the maximum amount of data on which DynamoDB Transactions can operate at any time?

A

25 items or 4MB of data

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

What is the performance hit of AWS DynamoDB On-Demand Backup and Restore?

A

There is zero impact on table performance

17
Q

What is the availability hit of using DynamoDB On-Demand Backup & Restore?

A

There is zero impact on table availability

18
Q

What is the data consistency model for DynamoDB On-Demand Backup and Restore?

A

Data is consistent within seconds

19
Q

What is the data retention model for DynamoDB On-Demand Backup & Restore?

A

Data is retained until deleted

20
Q

Can you have a DynamoDB On-Demand Backup in the same region as the source table?

21
Q

Can you have a DynamoDB On-Demand Backup in a different region from your source table?

22
Q

What does PITR stand for?

A

Point-In-Time Recovery

23
Q

What is the purpose of DynamoDB PITR?

A

To protect against accidental writes and deletes

24
Q

How far back can you restore using PITR?

A

Restore to any point in the last 35 days

25
How is DynamoDB backup data stored?
DynamoDB keeps **incremental backups** of your data
26
Is DynamoDB PITR enabled by default?
**No**
27
With DynamoDB PITR, how far back is the latest restorable time stamp?
Typically **5 minutes** in the past
28
What is a **DynamoDB Stream?**
A **time-ordered sequence of item-level changes in a table**
29
How long is info stored in DynamoDB Stream?
Info is stored for **24 hours**
30
If you wanted to imitate a stored procedure functionality in Dynamo DB, how might you do it?
Combine **Streams** with **AWS Lambda Functions**
31
What does **DMS** stand for?
**D**atabase **M**igration **S**ervice
32
What are some of the ways you can get security in DynamoDB?
* Encryption at Rest (with KMS) * site-to-site VPN * Direct Connect * IAM Policies & Roles (or fine-grained access) * mornitoring using CloudWatch and CloudTrail * VPC endpoints
33
How is data in DynamoDB stored?
It is stored **in JSON Format**
34
What is the maximum allowed item size in DynamoDB?
The _key and value combined_ can be at most **400KB**