High Availability Flashcards
What are the polling methods in SQS?
short polling: Call might not return a message
long polling: Waits until a message is present and then returns it
Is SQS inter-regional?
No, SQS is present in each region and they cannot share messages
What is the format of SQS messages?
XML, JSON or Text - up to 256kb
Auto Scaling Group: What are the required / optional components?
Required: Launch configuration & Launch Group
Optional: Scaling policy & Scheduled actions
What is Auto Recovery on EC2?
Automatic recovery when an instance fails due to hardware failure.
This needs a CloudWatch Alarm.
An recovered instance has the same ID, IP and metadata
What is Fault Tolerance?
And how does it differ from High Availability?
System will continue to function without degradation of performance, even when one compontent failed.
High Availability on the other hand can have some performance issues
When can a queue be automatically deleted? (w/o notification)
30 days after no action has been performed on the queue
How to create a Highly Available Bastion Host?
Create an autoscaling group with multiple AZs and set the min./max. isntances to 1
DR: What are two typical features of a “pilot light”?
The typical Pilot Light scenario is to have your database server mirrored in your cloud environment. Another feature of Pilot Light is to have Amazon Machine Images of your servers that can be used to create cloud servers in minutes.
What is the difference between elasticity and scalability?
Examples for EC2
elasticity: Reacting on short term changes in demand (using autoscaling on demand instances)
scalability: Bulding infrastructure for long term use
EC2:
e: adding more instances
s: provisioning larger instances
What services have maintenance windows?
RDS DynamoDB DAX DocumentDB Elasticache Redshift Neptune
SQS: Can you delete an SQS queue with messages still in it?
Yes
SQS: What are the standard retention rates of a message?
Default 4 days
Up to 14 days
SQS: What is the Visibility Timeout?
Duration of an in-flight message that is invisible to other worker instances
SQS: Is a message available in all regions?
No
SQS: What is the format / size structure of a message?
Text, XML, JSON
up to 256kb
SNS: What is the format / size structure of a message?
Text, XML, JSON
up to 256kb
cannot be deleted after published
How can you achieve HA für private subnet internet access?
Put a NAT Gateway in more than one AZ, instances in other AZs can use the NAT
Auto Scaling: What is the Auto Scaling Policy?
Conditions to launch / terminate instances.
If condition is met, an Alarm is st
Auto Scaling: What are Scheduled Actions?
Defines the min. / max. / desired capacity for a point in time in the future
RDS: What are the limits for Read Replicas?
mysql, postgres: 5
aurora: 15
DynamoDB: How to replicate data between regions?
Using DynamoDB Streams replicates the data if modified from the one table to the other
Route53: What is the difference between Active-Active Failover and Active-Passive failover?
A-A: All instances are active and get traffic, if one set goes down they will just not receive anymore traffic
A-P: A secondary set of instances is on standby in case of a failure
Route53: What are the three HealthChecks?
- Monitoring an endpoint
- Monitoring an Alarm
- Monitoring the status of other health checks