Module 6: Adding a database layer Flashcards

1
Q

what are considerations when adding a database layer?

A

-Scalability
-Storage requirements
-Data characteristics
-Durability

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

Benefits of Relational vs benefits of non relational databases (No SQL)

A

Relational:
Ease of use, Data integrity, reduced data storage, Common language.ACID compliant

Non relationnal:
Flexible, scalable and high performance

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

Use case for non relationnal database (NoSQL)

A

Fast access, and high read and write throughput. Efficient when considering a caching option to improve read performance, storing Json files or requiring millisecond retrieval.

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

Use case for relational

A

The workload involves transactional processing, optimized for structured data stored in table and supports complex queries. Best low effort solution to many use cases.

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

Is there only one type of NoSQL database

A

No. There is document based, graph based, key-value, in memory, search…Can be structured, semi structured or unstructured. Each object can have its own structure.

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

Amazon Database options for Relational databases

A

Amazon RDS

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

Amazon Database option for non relational databases

A

Dynamo DB
Neptune
Elasticache

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

What does vertically scaling the databse means?

A

Expand the resources the server uses to increase capcity. (update memory, storage, computing power) Main issue: downtime.

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

What does scalling horizontall means

A

Increase the number of server the database runs on. Can be done while running = No downtime.

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

RDS compatibilities

A

Aurora:
1) Mysql
2) Postgresql

RDS:
1)mysql
2)mariaDB
3)postgresql
4)Oracle
5)SQL server

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

What os the relation between RDS end EBS?

A

RDS uses EBS for database and log storage. Allowing you to scale the storage capacity to the database instance

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

Whar can help make RDS Available and durable ?

A

Multi AZ deployment and read replicas

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

How can you make RDS more secure?

A

Using VPC,
IAM;
Security groups tocontro IP,
SSL or TLS connections;
Encrypt with an AWS KMS;
Use the security feature of your DB engine

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

Advantage of RDS vs on permise?

A

No need to provision and maintain

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

An RDS can contain several isolated database environments with multiple user-created database . TRUE or FALSE ?

A

TRUE

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

What is Aurora?

A

Aurora is RDBMS (Rleational Database Management System).
It supports Mysql and postgresql.

17
Q

Advantage of Aurora

A

Cost efficient and multi AZ deployment with Aurora Replicas

18
Q

Aurora facts:

A

Max 64TB per instance
Up to 15 low latency read replicas
Replication across 3 AZ
Continuous back up to S3
Point in time recovery

19
Q

Aurora serverless is an on demand auto scaling config for Aurora. What is it suitable for?

A

Variable workloads
New applications
Dev and testing
Capacity planning

20
Q

When setting up an RDS instance you can select the EC2 type and sizing it will run on ?

A

Yes:

General purpose (T AND M) or Memory optimized (R AND X)

21
Q

What is RDS proxy used for ?

A

It is located between the database and the application. The proxy receives the request and pools them before sending it to the database. Like that less requests are using the ressources of the database. If hte database fails, the proxy queue the requests and redirect the request to an other Db instance.

22
Q

What does Dynamo DB supports?

A

No Sql database, supporting key-value and document t^data models

23
Q

What is the advantage of Dynamo DB?

A

High read write throughput. Automatically scales. Millisecond performance

24
Q

What is Dynamo DB used for

A

Developing applications, mission critical worloads with priority on speed scalability and data durability

25
Q

Composition of dynamo DB

A

Table => items => attributes.

Attributes have a partition key,sort key and attribute list

26
Q

Not understood:
GSI and LSI

A

Globa secondary indexes and Local Secondary indexes. I understood it allows to reshape the tables for varying queries.
It creates copies of the table. Diff between LSI and GSI is that LSI will be consistent, while GSi may not (will eventually be but requires a bit of time if operation are in process): With LSI Same partition key but different sort key

27
Q

What do I use to replicate Dynamo DB accross several regions ?

A

Dynamo DB global tables

28
Q

Dynamo DB security best practuce

A

Use IAN
Use VPC
Use cloudtrail to monitor KMS usage
and operations
monitor config using AWS config
Check compliance with AWS Config Rules

29
Q

What db option is used for analytics workloads.?

A

Redshift

30
Q

What db option is used for document database

A

Amazon DocumentDB (Mongo compatible) JSON like

31
Q

What db option is used for Apache Cassandra?

A

Amazon Keyspaces
(Typical example trade monitoring)

32
Q

What db option is used for in memory workloads?

A

Amazon MemoryDB
Used for Caching, bank user transaction…

33
Q

What DB service is used for Graph database?

A

Amazon Neptune

34
Q

What DB option is used for Timeseries

A

Amazon Timestream

35
Q

What db option is used for Ledger database

A

Amazon Quantum Ledger Database (QLDB)
Immutable and verifiable history, with cryptographie in transaction log.
For storing financial transaction or maintaining claim history.

36
Q

Consideation for choosing the right DB?

A

Suitable workload
Data nodel
Features and benefits
Common use cases

37
Q

Migrating data to AWS databases. What is the service used

A

Amazon DMS (Data Migration services)

38
Q

For heterogeneous database migration

A

DMS Fleet advisor
Automatically inventories and acces on permise data. It s a discovery tool.
Then there is a shema conversion tool to adjust an sql schema to an equivalent sql target.

39
Q
A