Auto Scaling Groups (ASG) Flashcards

1
Q

In which 3 ways can automatic scaling occur?

A
  • Capacity Settings
    How many EC2 instances should at least be running
  • Health Check Replacements
    Types: EC2 or ELB (through a ping)
  • Scaling Policies
    1. Target tracking scaling policies (metrics and target)
    2. Simple scaling policies (When an alarm is breached) (Is a legacy policy, please don’t use it anymore)
    3. Scaling policy with steps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a target tracking scaling policy?

A

A specific manually set metric that acts as a trigger

With target tracking, you select a load metric for your application, such as “Average CPU Utilization” or the new “Request Count Per Target” metric from Application Load Balancer, set the target value, and Auto Scaling adjusts the number of EC2 instances in your Auto Scaling group as needed to maintain that target.

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

What can we use to automate scaling?

One word

A

Alarms

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

Scaling Out means…

A

Adding more instances

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

Scaling is triggered when…

A

An alarm is breached

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

Which type of load balancer is associated directly to an ASG?

A

Classic Load Balancer

There are:

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

How would you associate an application load balancer with an ASG?

A

Using a Target Group

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

in ASG, What is a launch configuration?

It’s a _ that an _ uses to _ _ _

A

It is a template that an ASG uses to launch EC2 instances.

When you create a launch configuration, you specify information for the instances such as the ID of the Amazon Machine Image (AMI), the instance type, a key pair, one or more security groups, and a block device mapping.

However, you can only specify one launch configuration for an EC2 Auto Scaling group at a time, and you can’t modify a launch configuration after you’ve created it.

Therefore, if you want to change the launch configuration for your EC2 Auto Scaling group, you must create a launch configuration and then update your EC2 Auto Scaling group with the new launch configuration. When you change the launch configuration for your EC2 Auto Scaling group, any new instances are launched using the new configuration parameters, but existing instances are not affected

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

in ASG, Launch Configurations with versioning are called

A

Launch Templates

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

in ASG, To edit a launch configuration you must…

A

Create a new configuration or clone an existing one

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

What is the new version of Simple Scaling policy?

A

Scaling Policy with Steps

It allows you to create steps based on escalation alarm values

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

What is an ASG?

What are its 3 components?

A
  • It contains a collection of EC2 instances that dynamic scales
  • Scaling Policies (Simple, with steps, target tracking)
  • Ways to scale (Capacity Settings, Scaling Policies…)
  • Launch configurations (Configuration template)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly