database Flashcards
6 Relational databases on AWS
Oracle, SQL server, mysql, postgressql, Amazon aurora, Maria DB
RDS has two key features
Multi AZ - for disaster recovery
Read replicas for performance
Non relational database
Collection is a table
Inside a collection is a document which is a row
Key value paris = fields ( columns)
What is data warehousing
It is used for business analysis
OLTP vs OLAP
OLTP - find a specific order in database
OLAP - Netprofit for America compared to Asia
Redshift
Amazon Data warehousing solution
Elastic cache support two in memory open source cache engines
REDIS and memcached
RDS instance
you cannot patch the RDS instance. RDS is not serverless. Exception is Auroro . Aurora is serverless
Automated backups
Recover to any point in time within the rententioin period. Retention period is between one and 35 days.
Automated backups method
Full snapshot + transactions logs throughout the day.
This allows you to do a point in time recovery down to a second within the rentention period.
Automated backup s3 storage
is free and is equal to the size of the RDS DB
Backup scheduling
Taken during backup window, storage io may be suspended. May experience elevated latency
Restore will restore to a brand new RDS isntance
will result in a different end point
Data at rest is encrypted
Encryption uses KMS service
Multi-AZ
is for disaster recovery only. It is not for improving performance.
Multi AZ is available for
SQL server, Oracle, MySQL, postgres, MariaDB
Read replicase are available for
MySQL, Postgres, mariaDB, Oracle, Aurora
Read replica characteristics
Used for performance not for DR, You must have automatic backup enabled to have read replicas, Upto 5 read replicas. You can have read replicas of read replicas.
Read replica characteristics2
Read replicase with multi-AZ turned on,
You can have read replicase of Multi-AZ source DB
RR can be promoted to its own DB. This breaks replication
You can have read replica in a second region
What do you have to type to delete a RDS
delete me
Dynamo DB
is a no-sql database for apps that need consistent single digit millisecond latency at any scale
Dynamo DB data models
both document and key-value data modesl
Dynamo DB characteristics
stored on SSD, spread across 3 different geographically distinct data centers
Read consistency types
Eventual consistent reads after 1second, strongly consistent reads