Relational Database Service (RDS) Flashcards

1
Q

What are the different types of RDS database Instances in terms of size, memory optimisation etc?

A

db. m5 - general purpose type
db. r5 - memory optimised
db. t3 - burst instance

All can be different sizes, single or multi AZ

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

What are the types of storage that can be used for database instances?

A

io1 - high end performance, lots of iops and low latency
gp2 - same burst profile as EC2, should be good for most
magnetic -long term historic use

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

How is database storage billed?

A

Amount of storage allocated GB/month

e.g. 100GB for 1 month costs same as 200Gb for half month

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

How do you connect to RDS in a multi AZ environment? Which instance does the connection always default to?

A

Only via CNAME defaulting to the primary always. Should an issue occur on the primary the CNAME will switch to. Standby cannot be directly used and does not scale performance only gives HA. Multi AZ can only be in the same region (other AZ’s in the VPC)

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

Is RDS multi AZ high availability and fault tolerant?

A

Highly available but not fault tolerant, in a failover operation there will be some impact/disruption, it takes 60-120 seconds

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

In a multi AZ RDS setup where are backups taken from?

A

always from standby/replica (removes performance impact as al connection are defaulted to primary)

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

What types of backups are available for RDS?

A
  • Automatic Backups
  • Manual Snapshots - function like EBS snapshots, 1st is full copy, onward are incremental. Causes brief interruption in flow of data between compute resource and storage. In Single AZ may cause blip in multi it will use the secondary hence no effect.

Both utilise S3 (AWS managed buckets, not visible in console) therefore region resilient (replicated across multiple AZ’s in region)

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

If you delete an RDS instance what happens to existing backup snapshots?

A

They remain on S3 buckets

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

How is it possible to ensure an RPO for transaction logs of 5 minutes on RDS?

A

Database transaction logs are copied to S3 every 5 minutes therefore snapshot can be restored and transaction overlaid. All automated backups expire based on retention period set

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

Limitation of RDS restore?

A

Restores aren’t fast, think about RTO

Why? Restore creates a new instance which will have a NEW ADDRESS (CNAME)

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

How can you protect RDS against data corruption?

A

Snapshots (auto or manual)

Replication can replicate corruption

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

In what instance would RDS use synchronous vs asynchronous replication to a replica

A

Synchronous - Multi AZ, copies the data to the pri and sec disks at the same time

Asynchronous - for read replicas, copies data to replica after copying to the primary

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

Whats the max number of read replicas you can have per DB instance?

A

5x

For scale out read capability, each providing additional read performance

Read replicas can have read-replicas but lag starts to be a problem e.g. chained replicas

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

How can you improve your RPO and RTO (availability improvements) for RDS?

A

Snapshots & Backups improve RPO

Read replicas offer near 0 RPO, can promote read replica quickly upon primary failure (TO READ AND WRITE) - low RTO. This works for failure only, watch out for data corruption

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

In what scenarios would you use Aurora Serverless?

A
  • Infrequently used applications
  • New applications
  • Variable workloads
  • Unpredictable workloads
  • Development & test databases
  • Multi-tenant application - you’re providing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When would you use Aurora Global Databases?

A

Ensuring low RPO if you need to failover cross region

Cross region DR and BC

Global read scaling - low latency performance improvements

17
Q

What are the benefits of multi-master mode in Aurora?

A

Foundation in building fault tolerant applications vs regular failover mode e.g. when one writer fails the app can continue, maintaining connectivity to writer, failover and load balance can be handled by the application as logic

18
Q

Whats the difference between Aurora provisioned and serverless?

A

Aurora provisioned vs Serverless

Aurora
- Storage based on whats used (high watermark e.g. hit 50GiB reduce down to 40 will be billed for 50 but can re-use the 10)

Serverless uses ACU’s (Aurora Capacity Limits):

  • can set MIN & MAX ACU values and Aurora will scale within them
  • Cluster adjusts base don load and can go to 0 (paused)
  • Consumption billing per second basis (cost effective)
  • Same resilience as Aurora (copies across 6 replicas)
19
Q

What does the backtrack feature in Aurora enable?

A

In-place rewinds to previous point in time, useful if data corruption occurs

If enabled for cluster can rewind, benefit is don’t have to create a new cluster as with a restore

20
Q

What is the benefit of using fast clones in AWS Aurora?

A

Uses a small amount of storage(data thats changed after the clone was created

Much faster

Allows you to create a brand new db from an existing, it DOES NOT make a 1 to 1 copy it references the original storage and only stores differences between the 2 - this may be you updating the storage in our clone or data updated in the orginal source