Databases on AWS Flashcards
Relational databases on AW
- SQL Server
- Oracle
- MySQL Server
- PostgreSQL
- Aurora
- MariaDB
RDS key feature
Multi-AZ for DR
Read Replicas for Performance
What is data warehouseing?
Used for business intelligence
Used to pull in very large and complex data sets
OLTP
Online Transaction Processing
RDS
OLAP
Online Analytics Processing
Datawarehousing
RedShift
OLTP vs OLAP
OLTP -
OLAP - Complicated queries for inferring info from data
ElastiCache
web service that makes it easy to deploy, operate, and scale an in-memory cache in the cloud.
Used to speed up performance of existing databases by caching frequent identical queries
Flavors:
- memcached
- redis
Helps when DBs get overloaded
RDS
Relational database
Red Shift
Amazon’s OLAP / Datawarehousing solution
Amazon’s NoSQL solution
DynamoDB
RDS backup types
Automated backups
Database snapshots
Automated Backups of RDS
- allow you to recover your db to any point in time within a retention period.
- backups take a full daily snapshot and store transaction logs thru the day
- During a recovery, AWS will choose the most recent snapshot and then apply the relevant transactions
- Enabled by default
- backup data stored in S3
Automated backup retention period
1 - 35 days
Database snapshots
done manually
stored even after RDS instance is deleted
Restoring backups
restored version will be a new RDS instance w/ a new DNS endpoint
DB encryption at rest
Done using the KMS service
encrypts backups, read replicas, and snapshots
Multi-AZ
- designed for DR
- creating a copy of the DB in a different AZ
- standby DB synced automatically
- If primary AZ goes down -> update DNS to point to backup in secondary AZ
- supports all but Aurora
- Aurora is fault-tolerant on its own