5-Databases Flashcards

1
Q

What engines does RDS support?

A

Aurora, MySQL, MariaDB, PostgreSQL, Oracle and MySQL server

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

Are RDS instances public?

A

They are private by default and never given a public IP address, but they can have a public DNS

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

What is required for EC2 instances to connect to an RDS instance?

A

Port 3306 must be opened in the security groups

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

How can data be kept safe on RDS?

A

With backups and snapshots

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

How do RDS backups work?

A

Automatic backups are enabled by default and allow point-in-time restores within the retention period (up to 35 days)

They take a full daily snapshot and store transaction logs during the day - it can restore down to the second

Data is backed up to S3, a 10 GB instance gets 10 GB of free S3 storage

The backups are automatically deleted if the instance is deleted

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

How do RDS snapshots work?

A

They can be created on demand.

They are not removed if the instance is deleted

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

What happens if RDS is restored from a backup/snapshot?

A

A new instance is created i.e. with a new DNS name

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

How can high-availably for RDS be assured?

A

With multi-AZ deployments in which changes are synchronously copied to another AZ

This is for disaster recovery only - not performance

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

How is data on RDS protected?

A

Data can be encrypted at rest for all engines using KMS

Existing instances can’t be encrypted - take a snaphot, encrypt it and restore

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

How can RDS performance be improved?

A

With read replicas, in which any writes are asynchronously replicated

There can be up to 5 read replicas but only for Aurora, MySQL, PostgreSQL and MariaDB

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

Where are read replicas stored?

A

They can be in the same AZ, multiple AZs or a different region

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

What must be enabled for read replicas to be used?

A

Automatic backups

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

How are read replicas useful for analytics?

A

They can be promoted to full instances, which is useful for OLAP

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

How does Redshift work?

A

Support single or multiple node distributions, but in a single AZ

It uses columnar storage

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

What is Aurora?

A

A managed database service that automatically scales up to 64 TB.

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

How does Aurora ensure data durability?

A

Two copies of the data are stored in each of the three AZs.

It maintains write capacity if two disks are lost, and can be read if up to three failed

However, the VM itself is only in one AZ so failover is required if the AZ goes down

17
Q

How is Aurora performance optimised?

A

There can be up to 15 Aurora read replicas that fail-over automatically to become the master

There can only be 5 MySQL replicas and they can’t automatically failover