DynamoDB Flashcards

1
Q

DynamoDB

A

fully managed, highly available database.

And it has replication across 3 AZ by default.

It’s a NoSQL database.

it scales to massive workload and it’s a distributed database

low cost

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

DynamoDB scale and performance

A

there’s millions of requests per second

that can be done through DynamoDB.

It can scale to trillions of row

and hundreds of terabytes of storage.

ven if you have a lot of data, you can still get low latency on data retrieval.

has auto scaling capabilities.

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

DynamoDB IAM

A

integrated with IAM for security,

authorization, and administration.

So this is one of these cloud-native thing on AWS side.

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

DynamoDB enables

A

event driven programming with DynamoDB Streams.

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

DynamoDB is made of

A

tables.

And each table has a primary key.

And you decide of that primary key at creation time.

And so you note there’s no creating of database.

The database is already available.

You just start directly by creating tables.

Now each table can have an infinite number of items,

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

each row, or each item,

A

will have attributes.

And they can be added over time.

And these attributes can be null.

So an attribute is like a column in a RDS database.

Now the maximum size of an item is 400 kilobytes.

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

data types supported

A

scalar types.

So string, number, binary, Boolean, and null.

And document types such as list and map.

Set types, such as string set, number set, and binary set.

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

provision throughputs (exam)

A

doing DynamoDB, (not on-demand DynamoDB)

and we must provision read and write capacity units.

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

Read Capacity Unit

A

an RCU defines a throughput for a read.

one RCU means that you have

  • one strongly consistent read of four kilobyte per second,

or

  • two eventually consistent read of four kilobyte per second.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

WCU

A

throughput for writes

It’s about five times as expensive than RCU.

So DynamoDB is better when you read more than when you write more.

one WCU is one write of one kilobyte per second.

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

auto scaling option

A

there’s an option to set up auto scaling of throughputs to meet the demand over time.

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

burst credits

A

And the throughput can be exceeded temporarily using something called burst credits.

And if the burst credit are empty, then you’re going to get a ProvisionedThroughputException.

in this case, you can do an exponential back-off retry to, hopefully, get the read or the write working eventually.

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

DAX

A

DynamoDB Accelerator

a seamless cache

You don’t need to rewrite your application, the cache writes will go, the writes to DB will go through DAX,
and then the reads will be cached,
and you have micro seconds latency.

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

Hot Key problem

A

when you get too many reads on one value in DynamoDB.

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

Each cache entry has a TTL

A

has a five minutes TTL by default. So that means that anytime you read something from DynamoBD, it’s gonna be cached for five minutes in DAX
and that really allows you to relieve pressure off of DynamoDB if you need to.

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

how many DAX nodes

A

You can get up to 10 DAX nodes in the cluster.

And it could be multi AZ

so you need three nodes minimum recommended for production.

17
Q

DAX security

A

you get encryption at rest, you get VPC integration,

IAM, CloudTrail

18
Q

do we have to provision the instance type for our DynamoDB database

A

no

DynamoDB is a serverless service and as such we don’t provision an instance type for our database. We just say how much RCU and WCU we require for our table (or auto scaling)

19
Q

Your production application is leveraging DynamoDB as its backend and is experiencing smooth sustained usage. There is a need to make the application run in development as well, where it will experience unpredictable, sometimes high, sometimes low volume of requests. You would like to make sure you optimize for cost. What do you recommend?

A

provision WCU and RCU and enable auto-scaling for production and use on-demand capacity for development

20
Q

DynamoDB does not support

A

binary logging (only SQL)

21
Q

BatchExecuteStatement

A

allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL.