5-Databases Flashcards
What engines does RDS support?
Aurora, MySQL, MariaDB, PostgreSQL, Oracle and MySQL server
Are RDS instances public?
They are private by default and never given a public IP address, but they can have a public DNS
What is required for EC2 instances to connect to an RDS instance?
Port 3306 must be opened in the security groups
How can data be kept safe on RDS?
With backups and snapshots
How do RDS backups work?
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 do RDS snapshots work?
They can be created on demand.
They are not removed if the instance is deleted
What happens if RDS is restored from a backup/snapshot?
A new instance is created i.e. with a new DNS name
How can high-availably for RDS be assured?
With multi-AZ deployments in which changes are synchronously copied to another AZ
This is for disaster recovery only - not performance
How is data on RDS protected?
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 can RDS performance be improved?
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
Where are read replicas stored?
They can be in the same AZ, multiple AZs or a different region
What must be enabled for read replicas to be used?
Automatic backups
How are read replicas useful for analytics?
They can be promoted to full instances, which is useful for OLAP
How does Redshift work?
Support single or multiple node distributions, but in a single AZ
It uses columnar storage
What is Aurora?
A managed database service that automatically scales up to 64 TB.