High Availability Flashcards
(38 cards)
EC2
Scalability and Elasticity
Scalability
* Increase Instance Size as required, using reserved instances
Elasticity
* Increase the number of EC2 instances, based on autoscaling
DynamoDB
Scalability and Elasticity
Scalability * Unlimited amount of storage Elasticity * Increase additional IOPS for additional spikes in traffic * Decrease that IOPS after the spike
RDS
Scalability and Elasticity
Scalability
* Increase Instance Size as required. * from small to medium * There is a small downtime, do it during maintenance window
Elasticity
* Can’t scale RDS based on demand
Aurora
Scalability and Elasticity
Scalability
* Modify instace type, small to large
Elasticity
* Aurora Serverless
Multi-AZ
- Used for Failover
- Having a synchronized copy of your Primary DB in another AZ
- It gets the endpoint and points to your other AZ
Multi-AZ for SQL Server
- Engine uses synchronous logical replication
* It uses SQL Server-native Mirroring technology
Multi-AZ for MySQL, Oracle, and PostgreSQL
- Engine uses synchronous physical replication
You are doing a backup and restore, it’s affecting your production database, how can you avoid that?
- By enabling Multi-AZ:
* Backups and restores are taken from secondary DB which avoids I/O suspension to the primary
Read Replicas
It’s a read-only database.
When would you use Read Replicas?
- Scaling beyond the compute or I/O capacity of a single DB instance for read heavy workloads.
- Serving read traffic while the source DB Instance is unavailable.
- Business reporting or data warehousing scenarios:
- Run your BI queries against Read Replicas, rather than primary DB Instance
- Or use redshift to run these queries
What happens when you create a new Read Replica?
- AWS takes a snapshot of your db
- Multi-AZ enabled: NO downtime
- MUlti-AZ not enabled: Downtime
- RDS manages endpoints and all
True or False
You can have read replicas in different Regions for all engines
True
True or False
Read Replicas cannot be multi-AZ
False - Read Replicas can be multi-AZ
What is a key metric to look for using Read Replicas?
REPLICA LAG
The higher, the worst
When is a good use case for promoting read replicas into its own DB instance?
- When you want to test, develop, run BI queries on your DB
* It’s like cloning your DB instance.
How do you simulate a failover?
Reboot the DB so it does the failover.
What are the steps to encrypt RDS Instances?
- Take a snapshot of existing RDS instance
- Copy the snapshot to the same/different region.
- Encrypt the copy during the copy process
- Restore the snap
Sharing Encrypted RDS Snapshots between accounts
- Create a CUSTOM KMS Encryption key.
- Create an RDS snapshot using the custom key
- Share the CUSTOM AWS KMS encryption key that was used to encrypt the snapchot
- Use the Console, CLI, or Amazon RDS API to share the encrypted snapshot with the other account.
What happens when Aurora is at 100% CPU Utilization?
Writes causing issue.
Scale Up → Increase instance size
What happens when Aurora is at 100% CPU Utilization?
Reads causing issue.
Scale Out → Add more read replicas
aws rds describe-db-instances –region
What does this command do?
See what version you are using, and all the description for the instance that you are using.
Which Services have Maintenance Windows?
RERDND
- RDS
- Elasticache
- Redshift
- DynamoDB DAX
- Neptune
- Amazon DocumentDB
Services without maintenance windows:
- EC2
- Lambda
- QLDB
Which engine of ElastiCache support Multi-AZ?
Redis - Master/Slave replication
- Memcached does not support Multi-AZ