DynamoDB Flashcards

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?

A

Yes

21
Q

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

A

No

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
Q

How is DynamoDB backup data stored?

A

DynamoDB keeps incremental backups of your data

26
Q

Is DynamoDB PITR enabled by default?

A

No

27
Q

With DynamoDB PITR, how far back is the latest restorable time stamp?

A

Typically 5 minutes in the past

28
Q

What is a DynamoDB Stream?

A

A time-ordered sequence of item-level changes in a table

29
Q

How long is info stored in DynamoDB Stream?

A

Info is stored for 24 hours

30
Q

If you wanted to imitate a stored procedure functionality in Dynamo DB, how might you do it?

A

Combine Streams with AWS Lambda Functions

31
Q

What does DMS stand for?

A

Database Migration Service

32
Q

What are some of the ways you can get security in DynamoDB?

A
  • 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
Q

How is data in DynamoDB stored?

A

It is stored in JSON Format

34
Q

What is the maximum allowed item size in DynamoDB?

A

The key and value combined can be at most 400KB