HA Architecture Flashcards

1
Q

What is a Load Balancer

A

Physical/Virtual device designed to help you balance the network load across multiple webservers

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

3 types of Load Balancers

A
  1. Application Load Balancer
  2. Network Load Balancer
  3. Classic Load Balancer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Application Load Balancers

A
  1. best suited for load balancing of HTTP and HTTPS traffic.
  2. Operate at Layer 7 and are application aware
  3. Intelligent and you can create advanced request routing, sending specified requests to specific web server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Network Load Balancers

A
  1. Best suited for load balancing of TCP traffic where extreme performance is required
  2. Operating at the connection level (Layer4)
  3. Capable of handling millions of requests per second while maintaining ultra low latencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Classic Load Balancers

A
  1. Legacy elastic load balancers
  2. HTTP/HTTPS applications and use layer 7 specific features such as X forwarded and sticky sessions
  3. You can also use strict Layer 4 Load balancing for applications that rely purely on the TCP protocol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Error 504 for Classic Load Balancer means

A

application is having issues - either at the Web Server layer or at the DB layer

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

X-Forwarded-For-Header

A

way to get the IP4 address of the end user

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

Instances monitored by ELB are reported as

A

InService or OutofService

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

How are health checks done

A

checks the instance health by talking to it

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

Load Balancers are given an IP address instead of a DNS name - True or False

A

False; LBs have their own DNS name

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

Launch configuration

A

an instance configuration template that an Auto Scaling group uses to launch EC2 instances

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

You can specify your launch configuration with multiple Auto scaling groups - true or false

A

true

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

How many launch configurations can you specify for an auto scaling group at a time?

A

1

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

Can you modify a launch configuration after you’ve created it?

A

No

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

When you create an Auto Scaling group using an EC2 instance, Amazon EC2 Auto Scaling automatically creates a launch configuration for you and associates it with the Auto Scaling group - true or false

A

true

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

Sticky session

A

allows you to bind a user’s session to a specific Ec2 instance. This ensures that all requests from the user during the session are sent to the same instance.

17
Q

Sticky sessions can also be enabled for Application Load Balancers but the traffic will be sent to

A

Target Group Level

18
Q

If you notice that there are no traffic going to the second EC2 instance, then what will you have to do

A

Disable sticky sessions

19
Q

If you have EC2 instances that are writing to a local disc, then you will have to

A

Enable stick session

20
Q

Cross Zone Load Balancing

A

enables you to load balance across multiple AZs

21
Q

Path Based Routing/Path Patterns

A

allows you to direct traffic to different EC2 instances based on the URL contained in the request

22
Q

Example of Path Based routing

A

You can route general requests to one target group and requests to render images to another target group

23
Q

When you design the architecture, always design for

A

failure

24
Q

When designing an HA, use multiple AZs and multiple regions wherever you can - true or false

A

true

25
Q

Multi-AZ is mostly used for

A

Disaster Recovery

26
Q

Read Replicas mostly for

A

RDS

27
Q

What is scaling out

A

where we use ASG to add Ec2 instances

28
Q

Scaling up means

A

increase resources inside our Ec2 instance

29
Q

ELBs vs Route 53

A
  1. ELBs are intended to load balance across EC2 instances in a single region whereas Route 53 is intended to help balance traffic across Regions
  2. Route53 only changes the address that your clients’ requests resolve to but ELB actually reroutes traffic.
30
Q

Elastic Beanstalk

A

aimed for developers who have no idea about AWS but just wants to deploy their code right away

31
Q

Is there a charge for Elastic Beanstalk?

A

No, you only have to pay for the AWS resources needed to store and run your applications

32
Q

Stacks

A

A stack is a collection of AWS resources that you can manage as a single unit. In other words, you can create, update, or delete a collection of resources by creating, updating, or deleting stacks.

33
Q

CloudFormation

A

way of completely scripting your cloud envrionment

34
Q

AWS CloudFormation ensures all stack resources are created or deleted as appropriate- true or false

A

true

35
Q

Quick Start

A

bunch of CloudFormation templates already built by AWS solution architects allowing you to create complex environments very quickly