RDS Flashcards

1
Q

What is RDS?

A

Relational Database Service. Used to complete online transaction processing (OLTP) . Pulling rows of data (frequently) or insert.

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

What RDS are available (6)?

A
SQLServer
Oracle
MySQLServer
PostgreSQL
Aurora
MariaDB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What types of backups does RDS offer?

A

1) Automated Backups

2) DB Snapshot

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

What is the Retention Period of an RDS Automated Backup?

A

1-35 days

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

Describe an RDS Automated Backup

A

Takes a full daily snapshot and store logs throughout the day.

Recovery AWS chooses most recent daily backup and applies logs

Recovery is down to second w/ in retention period (Point int time recovery)

Default

Backups stored on s3 (free storage equal to size of DB)

Storage I/O may be suspended and may experience elevated latency during backup

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

Describe a DB Snapshot?

A

Manual backup initiated by a user

Stored after deleted RDS Instance (unlike automated backups)

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

Can you encrypt an RDS database?

A

Yes, encryption is done at rest using KMS.

But you cannot encrypt a currently existing DB

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

How to encrypt an existing DB?

A

Have to create a snapshot and encrypt that

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

What is Multi-AZ?

A

Host RDS in multiple availability zones for DISASTER RECOVERY.

Note this does nothing for performance.

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

What is Read Replica?

A

It is a way to scale out a DB load over multiple read replicas. Uses async replication from primary RDS to read replicas.

Use this on heavy read DB workloads.

Used for SCALING

Must have AUTO BACKUPS on in order to deploy read replica.

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

How many read replicas can you have?

A

5

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

Can you promote RR to become own DB?

A

Yes, but note this breaks replication

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

Which RDS Databases have RR capabilities?

A

MySQL
PostgreSQL
MariaDB
Aurora

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

What is Redshift?

A

Used for online analytics Processing (OLAP) Pulling a large number of records. Lots done in one query.

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

How to collect all SQL statements that take a long time to execute?

A

Enable slow query log in RDS

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