RDS / Dynamo DB Essentials Flashcards
RDS (Acronym definition)
Relational Database Service
Describe the difference between RDS and DynamoDB
RDS databases store data in tables using columns and rows, while DynamoDB stores data in JSON-like, name-value documents.
T/F - Amazon Aurora offers free tier usage.
False
T/F - Amazon RDS databases do not have a GUI in the AWS console.
True
What term describes the practice of using SSH to access a resource without a public IP address via a resource with a public IP address (inside of a VPC)
SSH tunneling.
Does RDS allow access to the underlying OS?
No - It is a fully-managed service
What RDS databases support Read Replicas?
MySQL
PostgreSQL
Aurora
How do Relational databases store data
Tables (columns and rows) - associated tables have a defined relationship.
Databases supported by RDS
MySQL MariaDB PostgreSQL Oracle MS SQL Server Aurora (AWS home grown relational DB)
Benefits of RDS
Full managed Automatic minor updates Automatic backups Not required to manage OS Multi A-Z with a single click Automatic recovery
Are read replicas Synchronous or Asynchronous?
Asynchronous
Can you have multiple read replicas of a primary database?
Yes.
T/F - Read replicas can be created from other read replicas.
True.
How can you monitor replication lag of read replicas?
CloudWatch
Benefits of Read Replicas
Allow Read traffic to be redirected from primary db to read replica (increased performance).
Read replicas allow for elasticity - Can add more read replicas as demand increases.
A read replica can be promoted to a primary instance.
MySQL - Replicate for import/export data to RDS. Can replicate across regions.
When should you use Read Replicas?
High volume, non-cached database read traffic (elasticity).
Running business function such as data warehousing.
Import/Export data into RDS.
Rebuilding indexes.
T/F - AWS provides automated point-in-time backups against the RDS database instance.
True
What does MySQL require for reliable backups?
InnoDB
What happens to automated backups when the database instance is deleted?
The backups are deleted and cannot be recovered.
How can you ensure you have a backup of your database data when the db instance is deleted.
Create your own snapshots / backups before deleting the primary instance.
Multi-AZ failover replicates data to a backup database instance located in another AZ zone (same region) using - Asynchronous or Synchronous.
Synchronously
When does RDS multi-az failover occur?
- service outage in an AZ.
- Primary DB instance failure.
- Instance server type is changed.
- Manual failover initiated.
- Updating software version.
- AWS will automatically switch the CNAME DNS record from the primary instance to the stand-by instance.
What instance are RDS backups taken against?
stand-by instance to reduce I/O freezes and slow down if Multi-AZ is enabled.
T/F - In order for Multi AZ to work your primary db instance must be launched into a subnet group.
True.