RDS Flashcards
Relational Databases in AWS
Oracle SQL Server MySql Server Postgresql Maria DB Aurora
Two key features of RDS
Multi-AZ for disaster recovery
Read Replicas for Performance
Non RDS in AWS
Dynamo (NOSQL)
Datawarehousing in AWS
Redshift is for business intelligence and data warehousing solution of AWS. (OLAP)
Elastic Cache
In memory cache in the cloud,,Improves performance of web applications by allowing to retrieve infromation from a fast , managed,in-memory caches, instaed of relying entirely on slower disk-based databases.
Elastic cache supports two open source in-memory caching engines:
Mem-cached
Redis
Manage your database user credentials through AWS IAM users and Roles
Enable IAM db Authentication
Types of RDS backup
Automated Backup
Database snapshots
Automated Backup in RDS
Automated backups allows you to recover your dtaabse to apoint in time within a rentention period.. The retention period can be between 0-35 days. Automated backups will take a full daily snapshot and also will store transaction logs through out the day.. So when you do a recovery , AWS will first choose the moset recent daily back up, and then apply transaction logs relevant to that day.
This allows you to do a point in time reccovery down to a second with in the retention period.
Automated backups are enabled by default and backups are stored in S3. and you get a free storage space equal to the size of your database.
Backups are taken within a specified window .. During the backup window , storage i/o may be suspended while your data is being backed up an dyou maay experience elevated latency.
Database snapshots in RDS
initiated manually. They are stored even after you delete. you delete your original RDS instance unlike automated backups
Restoring Backups
Whenever you restore either Automated backups or manual snapshot, the restored version of the database will be a new RDS instance with a new DNS endpoint.
Encryption AT Rest
Encryption AT Rest is supported for MySQL, Oracle, SQL Server, PostGresql, MariaDB and Aurora.
Encryption is done using AWS Key Management Service (Kms) service.
Once your RDS instance is en
Encryption AT Rest
Encryption AT Rest is supported for MySQL, Oracle, SQL Server, PostGresql, MariaDB and Aurora.
Encryption is done using AWS Key Management Service (Kms) service.
Once your RDS instance is encrypted, the data stored at rest in underlying storage are encrypted , as are its automated backups, read replicas and snapshots.
Read Replicas
must have automated backups turned on in order to deploy a read replica.
You can have up to 5 read replica copies of any database
You can have read replicas of read replicas
Each read replica will ahve a DNS endpoint
You can have read replicas that have multi A-z
you can read replicas of multi-AZ source databses
Read replicas can be promoted to be their own database and this breaks replication
You can have a read replica in a second region
Rebooting with Failover
You can failover a RDS instance in to a different availability zone by rebooting with failover