RDS Flashcards

RDS, Snapshots, Automated Backups, Encryption at Rest, Multi-Az, Read Replicas

1
Q

What does RDS stand for?

A

Relational Database Servers

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

What are the 2 types of RDS backups? What is the big difference between them?

A
  • Automated Backups
  • Database Snapshots
  • Big difference is whether they are taken automatically vs. manually
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do RDS Automated Backups allow you to do?

A

Automated backups allow you to recover your database to any point in time within a retention period

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

How long is the retention period for Automated Backups?

A

can be between 1 and 35 days

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

What do RDS automated backups store?

A
  • A full daily snapshot AND
  • transaction logs throughout the day
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do RDS Automated Backups do a recovery?

A

choose the most recently daily backup, and apply the transaction logs relevant to that day

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

How specific can the timing of an RDS Automated Backup recovery be?

A

You can do a point in time recovery, down to a second, within the retention period

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

Are RDS Automated Backups enabled by default?

A

Yes

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

Where are RDS Automated Backups stored?

A

in S3.

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

What is the pricing model for RDS Automated Backup storage?

A

Backups are stored in S3, and you get free storage space equal to the size of the DB

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

Why might enabling RDS Automated Backups result in a elevated latencies over a brief period of time?

A

During the backup window, storage I/O may be suspended while your data is being backed up, so you may get elevated latency.

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

After you delete the original RDS instance, are RDS automated backups deleted as well?

A

Yes

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

After you delete the original RDS instance, are DB snapshots deleted as well?

A

No

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

After restoring an RDS Automated Backup, is the restored version of the DB on the same DNS as the old DB?

A

No

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

After restoring an RDS Manual Snapshot, is the restored version of the DB on the same DNS as the old DB?

A

No

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

For what DB engines is RDS Encryption at Rest supported?

A

(All of them)

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

What does RDS Encryption at Rest use for encryption?

A

KMS

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

Once your RDS instance is encrypted using RDS Encryption at Rest, are automated backups automatically encrypted as well?

A

Yes

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

Once your RDS instance is encrypted using RDS Encryption at Rest, are read replicas automatically encrypted as well?

A

Yes

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

Once your RDS instance is encrypted using RDS Encryption at Rest, are DB snapshots automatically encrypted as well?

21
Q

Does RDS Multi-AZ boost performance?

A

NO (that’s Read Replicas)

22
Q

What does RDS Multi-AZ do?

A
  • automatic, synchronous replication of your DB in another AZ
  • Automatic failover in case the primary instance goes down
23
Q

With what RDS DB engines does Multi-AZ work?

A

(All except Aurora)

  • SQLServer
  • Oracle
  • MySQLServer
  • PostgreSQL
  • MariaDB
24
Q

Assuming Multi-AZ is turned on, what is a way that you can force a failover for your RDS instance?

A

Reboot your RDS instance

25
What type of replication is involved with RDS Read Replicas?
**Asynchronous replication**
26
What is the primary difference between a primary instance and its read replica?
The read replica is **read-only**
27
With what RDS DB engines are Read Replicas compatible?
(all except SQLServer) * MySQLServer * PostgreSQL * MariaDB * Oracle * Aurora
28
Do you need to have automatic backups turned on in order to use read replicas?
**Yes**
29
Can you have RDS Read Replicas of RDS Read Replicas?
**Yes, but watch out for replication latency issues**
30
Does an RDS instance and its read replica share a DNS endpoint?
**No**, **each read replica has its own DNS endpoint**
31
Can you have Multi-AZ RDS Read Replicas?
**Yes**
32
Can you have RDS Read Replicas of RDS DBs that are sources for Multi-AZ?
**Yes**
33
Can you turn a read replica into a "normal" database?
**Yes, but this breaks replication**
34
Can you have an RDS Read Replica in a region that is different from the primary instance, assuming you are using Multi-AZ?
**Yes**
35
Can you have an RDS Read Replica of an RDS instance which is not using multi-AZ?
**Yes**
36
What are the two best ways to improve RDS performance?
* Read Replicas * Elasticache
37
In RDS, can you create a Read Replica in another region?
**Depends on the underlying database format** **(All except SQLServer are supported)**
38
How do you Encrypt and unencrypted RDS instance?
1. Create a snapshot of the unencrypted RDS DB 2. Copy the snapshot and tick "Enable Encryption" 3. Restore the RDS DB instance from the encrypted snapshot
39
What is the maximum number of Read Replicas you can have for a single RDS instance?
**15**
40
You have an unencrypted RDS instance. How do you create an encrypted read replica?
You can't
41
What are the 2 key features of RDS? What are they primarily for?
* Multi-AZ (for distaster recovery) * Read Replicas (for performance)
42
Does **RDS** **Multi-AZ** require changing the connection string?
If you lose access to your primary database, AWS can automatically point incoming requests to your secondary database **without changing the connection string**
43
How do **Read Replicas** work in RDS?
* There is **no automatic failover**. If your primary instance goes down, you'll need to create a new URL to connect to the secondary instance * **All writes to the primary instance are copied over to the read replica(s)**
44
Suppose you want to be able to handle a surge of incoming traffic to your RDS instance and scale out your application. What key feature of RDS would you use to do this?
**Read Replicas**
45
What is the maximum number of read replicas that can be made from a single primary RDS instance?
up to **5 copies**
46
Does RDS run on virtual machines?
**Yes**
47
How can you log in to the OS of an RDS instance?
**You can't**
48
How can you patch the OS or database of an RDS instance?
**This is Amazon's responsibility** **(you can't**)
49
Is RDS Serverless?
**No, (except for Aurora)** RDS runs on virtual machines