Databases Flashcards
Would you use an RDS database for OLTP or OLAP?
For Online Transaction Processing (OLTP) workloads.
It’s not suitable for analysing large amounts of data.
What do OLTP and OLAP stand for?
Online Transaction Processing
Online Analytical Processing
What’s the difference between OLTP and OLAP?
OLTP:
- Real time data
- Data processing
- Large numbers of small transactions.
OLAP:
- Historical data
- Data analysis (large amounts of data)
- Complex queries
What does RDS Multi-AZ do?
It creates an exact copy of your production database in another AZ.
(Writes are automatically synchronised to the standby database.)
Which RDS type is always Multi-AZ?
Aurora
RDS Multi-AZ is for:
A: Improving performance
or
B: Disaster recovery
?
B: Disaster recovery
You can’t connect to the standby while the primary database is active.
What would you typically use for OLAP workloads?
Redshift
TRUE or FALSE?
RDS read replicas must be in a different AZ to the primary
FALSE:
They don’t have to be but they can be.
They can also be in a completely different region.
With RDS Multi-AZ, what happens if the primary fails?
It changes the DNS endpoint to point to another IP address (of the secondary).
i.e. it automatically fails over
TRUE or FALSE?
Read replicas can be promoted to be their own databases.
TRUE
However this breaks replication.
TRUE or FALSE?
Automatic backups must be enabled in order to deploy an RDS read replica.
TRUE
The replication process involves using the most recent backup to set up the read replica.
How many read replicas can you have to each RDS instance (except Aurora)?
5
When would you use a read replica? (2 things)
To get better read performance.
To take the load off the primary database for read-only workloads.
What databases is Aurora compatible with?
MySQL and PostgresSQL
How many copies of your data do you get with Aurora (minimum)?
6
2 copies in each AZ over 3 AZs (minimum)