Database on AWS Flashcards
What are the RDS DB options?
SQL
MySQL
PostgesSQL
Oracle
Aurora
MariaDB
What is the best DB option for online analytics
Red Shift
You need an RDS database, but do not want to manage the OS. What can you use?
Any RDS, it runs on VMs but you cannot RDP or SSH to them
Is RDS serverless?
No, except for aurora
What are the RDS backup options?
Automated and snapshots
You need to improve your RDS DB performance. What can you do?
Use read replicas
What are the characteristics of read replicas?
Can be multi-az, increases performance, must have backups turned on, can be in different regions, Can be aurora or MySQL and can promote RR to master
You promoted a read replica to master, what will break?
replication
What is the use case to use multi-az RR?
DR
How can you force a multi-az failover?
Reboot one of the instances
What DB’s provide encryption?
MySQL,
Oracle,
SQL Server,
Postgres,
MariaDB
Aurora.
What encryption service does RDS use?
AWS Key mgmt Service (KMS)
What are the characteristics of DynamoDB?
SSD Spread across thre geographically distinct data centers Eventual consistent reads (default) Strongly consistent
What is the use case for red shift?
business intelligence
Is multi-az available for red shift?
No
What is the maximum retention for red shift backups?
35 days
How many copies does red shift maintain of your data?
three. Original and replica on compute and an S3 backup
What DR options are available for red shift?
asynchronously replicate snapshots to S3 in another region
How many copies of your data are maintained in Aurora?
6 copies. 2 copies in each AZ with a minimum of 3 az’s
What are the RDS DB types?
SQL
MySQL
Postgres
Aurora
Oracle
Maria DB
What is the use case for RDS?
Online transaction processing
What is the use case for redshift?
data warehousing
What are the four DB services?
RDS
DynaomoDB
Redshift
Elasticache
What are the types of elasticache?
memcahced
redis
What are the characteristics of Dynamo DB?
SSD
spread across three regions
eventual consistent reads (default)
strongly consistent reads
You need data written to a dynamo DB read back withi seconds. What option do you choose
strongly consistent reads
What is elasticache?
cloud in memory cache to improve performance of web application
What are the types of elasticache?
memcacheD
redis
Describe redis
key values store
master slave
multi az
Describe memcached
widely adopted protocol object caching
What database services are available on AWS?
RDS-OLTP DynamoDB (NoSQL) RedShift (OLAP) Elasticache (in memory caching) DMS
What OLTP databases are available in RDS?
MS SQL Server
MySQL
PostgreSQL
Oracle
MariaDB
Aurora
What cache services are available in RDS Elasticache?
Memcached Redis
What is Elasticache?
Amazon ElastiCache is a web service that makes it easy to deploy, operate, and scale an in-memory data store or cache in the cloud.
What are the types of backups supported on RDS?
Automated Backups and Database Snapshots
How does Automated Backups work?
Automated Backups allow you to recover your DB to any point in time within a “retention period”. Retention Period can be between 1 and 35 days. Automated Backups will take a full daily snapshot and will also store the transaction logs throughout the day.
What is Multi-AZ RDS?
Multi-AZ allows to have an exact copy of your production database in another AZ. In the event of planned DB maintenance, BD instance failure, or an Availability Zone failure, Amazon RDS will automatically failover to the standby.
What is the use case for Multi-AZ RDS
Multi-AZ is for disaster recovery. It is not used for improving performance. For performance improvement, Read Replicas are needed.
Can Multi-AZ be used to performance improvement?
No. Multi-AZ is for disaster recovery. It is not used for improving performance. For performance improvement, Read Replicas are needed.
What options do you have to improve DB performance
Read replicas and elasticache
What are the maximum number of read replicas?
5
How do read replicas improver performance?
EC2 instances can be confiured to use the relica copies and spread out the load
What is the DB service that provided OLAP?
Red shift
What is the use case for elasticache?
Speed up existing DB’s by delivery frequestly access queries
What is the cost of RDS backups?
nothing. stored in S3
Characteristics of RDS snapshots?
Manual
retained after RDS instance is deleted
When an RDS instance is restored will the end point be the same
No
In RDS multi-az you lose the primary. What happens
Endpoint auto fails over
What DBs provide read multi-az?
MySQL
Postgres
MariaDB
Aurora
What DBs provide read read replicas??
Aurora
MySQL
What is the use case for redshift?
data warehousing
What are the two types of redshift configurations?
single node
multi node
What are the max number of compute nodes in a redshift multi node config?
128
Describe red shift security characteristics?
in transit SSL at rest
256Key mgmt or self mgmt w/ HSM or AWS key mgmt
What are the max number of aurora replicas?
15
Aurora scaling characteristics?
10 GB to 64TB up to 32 vCPUs and 244 GB or mem
2 copies of DB in each AZ w/ min of 3 AZs
Transparently handle loss of up to two copies
Self healing
Aurora replica characteristics?
Aurora Replicas 15 (auto-failover)MySQL replicas 5