ELB-ASG - Elastic Load Balancing and Auto Scaling Groups Flashcards

1
Q

What is the main purpose of High Availability in the Cloud?

a) Increase scalability
b) Application thriving even in case of disaster
c) Access on computers and smartphones
d) Handle greater loads by launching EC2 instances based on the demand

A

b) Application thriving even in case of disaster

High Availability means applications running at least in two AZs to survive a data center loss.

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

Which AWS offered Load Balancer should you use to handle hundreds of thousands of connections with low latency?

a) Application Load Balancer
b) Network Load Balancer
c) Elastic Load Balancer

A

b) Network Load Balancer

A Network Load Balancer can handle millions of requests per second with low-latency. It operates at Layer 4, and is best-suited for load-balancing TCP, UDP, and TLS traffic with ultra high-performance.

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

Changing an EC2 Instance Type from a t3a.medium to a t3a.2xlarge is an example of?

a) Horizontal scaling
b) High Availability
c) Agility
d) Vertical scaling

A

d) Vertical scaling

Vertical scaling means increasing the size of the instance. Changing from a t3a.medium to a t3a.2xlarge is an example of size increase.

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

What can you use to handle quickly and automatically the changing load on your websites and applications by adding compute resources?

a) An Elastic Load Balancer
b) A bigger instance type
c) An Auto Scaling Group
d) Health Checks on your EC2 instances

A

c) An Auto Scaling Group

An Auto Scaling Group (ASG) can automatically and quickly scale-in and scale-out to match the changing load on your applications and websites.

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

Which of the following statements is INCORRECT regarding Auto Scaling Groups?

a) Replace unhealthy instances
b) Are cost-effective by running at optimal capacity
c) Automatically register new instances to a load balancer
d) Automatically changing the EC2 Instances Types

A

d) Automatically changing the EC2 Instances Types

Auto Scaling Groups can add or remove instances, but from the same type. They cannot change the EC2 Instances Types on the fly.

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

Which Load Balancer is best suited for HTTP/HTTPS load balancing traffic?

a) Network Load Balancer
b) Classic Load Balancer
c) Elastic Load Balancer
d) Application Load Balancer

A

d) Application Load Balancer

Application Load Balancers are used for HTTP and HTTPS load balancing. They are the best-suited for this kind of traffic.

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

Which AWS service offers easy horizontal scaling of computing capacity?

a) EBS
b) AMI
c) IAM
d) ASG

A

d) ASG

Auto Scaling Groups (ASG) offers the capacity to scale-out and scale-in by adding or removing instances based on demand.

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

Which of the following statements is NOT a feature of Load Balancers?

a) Do regular health checks to your instances
b) Spread load across multiple downstream instances
c) Handle failures of downstream instances
d) Back-end autoscaling

A

d) Back-end autoscaling

Load Balancers cannot help with back-end autoscaling. You should use Auto Scaling Groups.

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

What are the types of scalability in the cloud?

A

There are 2 types which are:

  • Vertical Scalability,
  • Horizontal Scalability (=elasticity)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Vertical Scalability means?

A

Vertical Scalability means increasing the size of an instance.

Is very common for non distributed systems, such as a database.

There is a limit also on how much you can vertically scale due to hardware limits.

When the instance type is increased means scale up, when is decreased means scale down.

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

What does Horizontal Scalability means?

A

Horizontal Scalability means increasing the number of instances / systems for an application.

Horizontal Scaling implies distributed systems.

When the number of instances is increased meand scale out, when the number is decreased means scale in.

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

What is scalability?

A

Is the ability to accomodate a larger load by making the hardware stronger (scale up) or by adding nodes (scale out)

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

What is elasticity?

A

Applied to the cloud, it means that once a system is scalable, elasticity means that there will be some “auto-scaling” so the system can scale based on the load.
It allows to pay-per-use, match demand and optimize costs.

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

What are load balancers?

A

Load balancers are servers that forward internet traffic to multiple servers (EC2 instances) downstream.

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

Why to use a load balancer?

A

Because a load balancer:

  • Spread load accross multiple downstream instances
  • Exposes a single point of access (DNS) for an application.
  • Seamlessly handle failures of downstream instances.
  • Perform regular healthchecks to instances.
  • Provide SSL termination (HTTPS) for websites.
  • Provides high availability across zones.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an ELB in AWS?

A

In AWS, an Elastic Load Balancer is a managed load balancer where:

  • AWS guarantees that it will be working
  • AWS takes cares of upgrades, maintenance and high availability
  • AWS provides only a few configuration knobs
17
Q

What are the 3 kinds of load balancers offered by AWS?

A
  • Application Load Balancer (HTTP/HTTPS only) - Layer 7
  • Network Load Balancer (ultra-high performace, allows for TCP) - Layer 4
  • Classic Load Balancer (part of older generation offering from AWS, not used anymore)
18
Q

What is the goal of an Auto Scaling Group?

A

The goal is to:

  • Scale out (add EC2 instances) to match the increased load.
  • Scale in (remove EC2 instances) to match decreased load.
  • Ensure there is always a minimum and a maximum number of machines running.
  • Automatically register new instances to load balancer
  • Replace unhealthy instances

Elasticity is achieved thanks to ASG, also allow costs savings as applications run at an optimal capacity (principle of the cloud).

19
Q

What are the parameter settings of an Auto Scaling Group?

A
  • The minimum size
  • Actual size / desired capacity
  • The maximum size