RDS+Aurora+Elasticache Flashcards

1
Q

What is RDS?

A

RDS is a relational database service. It’s managed service for DBs that use SQl query language. It allows you to create databases in the AWS cloud. These include Postgress, Maria DB, MySQL Oracle, Microsoft SQL

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

What are the advantages of using RDS?

A

RDS is a managed service that provides automated provisioning of databases and patching, continuous backups, and restores points in time. there are read replicas for improved read performance. Multi AZ setup for DR (Disaster Recovery)
• Maintenance windows for upgrades
• Scaling capability (vertical and horizontal)
• Storage backed by EBS (gp2 or io1)
• BUT you can’t SSH into your instance

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

RDS Back-Ups?

A

RDS backups are automatically enabled, full daily backup, logs are backed up every 5 mins. can restore to point in time 5 mins ago. & day retention can be increased to 35 days.

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

RDS auto-scaling?

A

Automatically scales storage if storage is running out. Requires setting a maximum threshold limit. if free storage reaches less than 10% or low storage lasts more than 5 mins and it has been 6 hours since the last modification then it will trigger an auto-scaling.

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

Read Replicas?

A

Read replicas are ASYNC replication. up to 5 read replicas within, cross AZ or region. reads are eventually consistent.

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

Read Replicas Network costs?

A

There is no network cost for read replicas with a single region, however, cross-region replication has cost associated with it.

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

Read Replicas DR?

A

DR has SYNC replication in Multi-AZ. Multi-AZ replication is free and uses one DNS name for failover. if the DB fails there is an automatic failover to standby DB

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

RDS Encryption and security?

A

At rest encryption is possible with AWS KMS AE 256, Encryption has to be defined at launch time. If Master is not encrypted then replicas won’t be encrypted.
In-flight encryption with SSL certificates with trust certificates.

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

What is Aurora?

A

Propretiary service, compatible with Progres and MySQL. Cab ne from 10GB up to 128TB, up to 15 replicas where MySQl is 5 replicas.

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

Aurora high availability

A

6 copies of your data across 3 AZ:
• 4 copies out of 6 needed for writes
• 3 copies out of 6 need for reads
• Self healing with peer-to-peer replication
• Storage is striped across 100s of volume

1 master 15 replicas self healing.

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

Aurora write and read endpoint

A

These are points for client contact, write endpoint for writing, and read endpoint is for read replicas.

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

Aurora Security?

A

Aurora Security
• Similar to RDS because uses the same engines
• Encryption at rest using KMS
• Automated backups, snapshots and replicas are also encrypted
• Encryption in flight using SSL (same process as MySQL or Postgres)
• Possibility to authenticate using IAM token (same method as RDS)
• You are responsible for protecting the instance with security groups
• You can’t SSH

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

Aurora Serverless

A
Automated database 
instantiation and auto
- scaling based on actual 
usage
• Good for infrequent, 
intermittent or 
unpredictable workloads
• No capacity planning 
needed
• Pay per second, can be 
more cost
-effective
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What’s Aurora multi-master?

A

This is useful for failover, where every node has RW unlike normal where there is only one master.

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

What is elasticache?

A

Elasticache does a similar service as RDS does for databases. It helps get managed Redis and Memcache.
These are in-memory databases, these remove the load of the databases for read-heavy loads. it reduces latency and provides high performance.

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

Redis vs MemcacheD

A

Redis is all about the high availability of read replicas and provides backup and restore features whereas Memcache is all about cache with no back up and restore feature. it’s a multithread architecture and is about multi nodes for data sharding.

17
Q

Important ports

A

Important ports:

FTP: 21

SSH: 22

SFTP: 22 (same as SSH)

HTTP: 80

HTTPS: 443

18
Q

RDS Ports

A

RDS Databases ports:

PostgreSQL: 5432

MySQL: 3306

Oracle RDS: 1521

MSSQL Server: 1433

MariaDB: 3306 (same as MySQL)

Aurora: 5432 (if PostgreSQL compatible) or 3306 (if MySQL compatible)