High Availability Flashcards

1
Q

What are the polling methods in SQS?

A

short polling: Call might not return a message

long polling: Waits until a message is present and then returns it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is SQS inter-regional?

A

No, SQS is present in each region and they cannot share messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the format of SQS messages?

A

XML, JSON or Text - up to 256kb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Auto Scaling Group: What are the required / optional components?

A

Required: Launch configuration & Launch Group
Optional: Scaling policy & Scheduled actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Auto Recovery on EC2?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Fault Tolerance?

And how does it differ from High Availability?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When can a queue be automatically deleted? (w/o notification)

A

30 days after no action has been performed on the queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to create a Highly Available Bastion Host?

A

Create an autoscaling group with multiple AZs and set the min./max. isntances to 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DR: What are two typical features of a “pilot light”?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between elasticity and scalability?

Examples for EC2

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What services have maintenance windows?

A
RDS
DynamoDB DAX
DocumentDB
Elasticache
Redshift
Neptune
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SQS: Can you delete an SQS queue with messages still in it?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

SQS: What are the standard retention rates of a message?

A

Default 4 days

Up to 14 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

SQS: What is the Visibility Timeout?

A

Duration of an in-flight message that is invisible to other worker instances

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SQS: Is a message available in all regions?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

SQS: What is the format / size structure of a message?

A

Text, XML, JSON

up to 256kb

17
Q

SNS: What is the format / size structure of a message?

A

Text, XML, JSON
up to 256kb
cannot be deleted after published

18
Q

How can you achieve HA für private subnet internet access?

A

Put a NAT Gateway in more than one AZ, instances in other AZs can use the NAT

19
Q

Auto Scaling: What is the Auto Scaling Policy?

A

Conditions to launch / terminate instances.

If condition is met, an Alarm is st

20
Q

Auto Scaling: What are Scheduled Actions?

A

Defines the min. / max. / desired capacity for a point in time in the future

21
Q

RDS: What are the limits for Read Replicas?

A

mysql, postgres: 5

aurora: 15

22
Q

DynamoDB: How to replicate data between regions?

A

Using DynamoDB Streams replicates the data if modified from the one table to the other

23
Q

Route53: What is the difference between Active-Active Failover and Active-Passive failover?

A

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

24
Q

Route53: What are the three HealthChecks?

A
  • Monitoring an endpoint
  • Monitoring an Alarm
  • Monitoring the status of other health checks
25
Q

What is the considered state of an instance that has no health check?

A

Healthy

26
Q

How would a failover scenario for two regions be structured?

A

Set up a latency rule for the regions and a weighted rule for the instances inside the region.
With the Evaluated Target Health settings create a tree that goes from bottom to top if instances fail.

27
Q

VPN: How to create a HA VPN connection?

A

Create multiple Customer Gateways (Virtual Private Gateway hast two connections per default)

28
Q

VPN: How to create a private HA VPN connection?

A

Create multiple Direct Connect connection, if possible with multiple providers

29
Q

VPN: How to create a cost effective (private) VPN connection

A

Create a Direct Connect connection as primary and a public VPN connection through the internet

30
Q

What is RTO/RPO?

A

Recovery Time Object: How long can it take until the system is up again
Recovery Point Object: How much data can be lost

31
Q

What is the Pilot Light Method?

A

(Cheapest DR method)

Minimal setting always running as backup, only the most critical processes

32
Q

What is the Warm-Standby Method?

A

Scaled down version of the system running to satisfy the customers.
Instances should be scaled up in case of a DR.

33
Q

What is the Multi Site Solution method?

A

Two complete identical sites both running an serving traffic.
COuld be on.-prem/cloud or cloud/cloud

34
Q

What is the Auto Scaling Policy?

A

Set of instructions sent by Amazon CloudWatch to the Auto Scaling group is
referred to as a policy. The policy defines what the Auto Scaling group should do with
the alarm it receives from Amazon CloudWatch.

35
Q

What is predictive scaling?

A

Predictive scaling is a feature of AWS Auto Scaling that can look back at previous
activity and use that to schedule the needed scaling changes based on both daily and
weekly patterns.

36
Q

How much data does predictive scaling need?

A

About two weeks

37
Q

Who can be the target of SNS?

A

. There are five different ways to subscribe to an SNS topic. They are AWS Lambda,
Amazon Simple Queue Service (SQS), HTTP and HTTPS, email, and SMS text

38
Q

How to prevent an ELB to be deleted?

A

Enable deletion protection.

not available for classic LBs