Databases Flashcards
(99 cards)
Relational Databases
are like excel spreadsheet
RDS OLTP on AWS
- SQL Server
- Oracle
- MySQL Server
- PostgreSQL
- Aurora and
- MariaDB
RDS has 2 key features
Multi-AZ and Read Replicas
Multi AZ is meant for
Disaster Recovery
Read Replicas meant for
Performance
Difference between Multi AZ and Read Replicas
- Multi AZ - we use a connection string (dns) from our Ec2 instance to the primary DB. If for some reason we lost the primary database, amazon will detect that and will automatically update the DNS to point to the secondary databse - You don’t need to go in and change any IP address; fail over is automatic
- Read Replicas - Every time you do a write to that database, that write is going to be replicated (5 copies) to another database; no automatic fail over; if your primary DB fails, you have to manually change the Ip address from your EC2 to the replica DB
When is Read Replica useful?
if your primary database is getting way too many reads, you can scale it by having the read replica (5 COPIES); have some of your ec2 instances point to the read replica and point the other half to your primary database
Non Relational database
Collection = Table
Document = Row
Key Value Pairs = Fields
Difference between Relational Databases and Non relational?
For non relational DB, you can have as many columns as you want but for Relational DB, if you add column for one record, that needs to be updated for all the other records
What is Data Warehousing?
- Used for BI (Cognos, Jaspersoft, SQL Server Reporting Services, Oracle Hyperion, SAP NetWeaver)
- Used to pull in very large and complex datasets (performance/targets)
How does OLTP differ from OLAP?
in terms of the queries that you will run
Amazon Data Warehouse solution
Amazon RedShift
Elasticache
Example:
> web service that makes it easy to deploy, operate, and scale an in-memory cache in the cloud.
improves the performance of web applications by allowing you to retrieve information from fast, managed, in-memory caches, instead of relying entirely on slower disk based databases
top 10 queries in amazon
Elasticache supports 2 open source in memory caching engines:
Memcached and Redis
2 types of RDS Backups
- Automated Backups
2. Database Snapshots
Read Replicas
- Can be multi-AZ
- Used to increase performance
- Must have backups turned on
- Can be in different regions
- Can be aurora or MySQL
- Can be promoted to master (this will break the read replica)
MultiAZ
- Used for DR
2. You can force a failover from one AZ to another by rebooting the RDS instance
Encryption at Rest is supported for which databases?
Mysql, Oracle, SQL Server, PostgreSQL, MariaDB and Aurora
How is encryption at rest done
using AWS KMS; once your RDS instance is encrypted, the data stored at rest in the underlying storage is encrypted, as are its automated backups, read replicas and snapshots
Redshift is used for
- Business Intelligence
2. Data warehousing
RDS runs on
Virtual Machines
Can you log in to the OS of the RDS?
no
Who is responsible for patching the RDS OS and DB?
Amazon
RDS is not serverless - true or false
True