Scaling - Auto Scaling Flashcards

1
Q

What are the types of auto scaling?

A

EC2 Auto Scaling, Application auto scaling and AWS Auto Scaling

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

What is Amazon EC2 Auto scaling?

A

setup scaling groups for EC2; perform health checks to remove unhealthy instances

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

What is Application Auto Scaling?

A

API used to control scaling for resources other than EC2 like Dynamo, ECS, and EMR; common way to scale other resources

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

What is AWS Auto Scaling?

A

safely scaling multiple AWS resources; predictive scaling console that can manage a collection EC2, ELB and DDB

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

What is an EC2 Auto Scaling group?

A

automatically horizontally scales out triggered by an event which adds or removes instances that factors availability, cost and system metrics; add or terminate instances to help ensure correct number of instances to handle your application load

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

What are the 4 EC2 Auto Scaling options?

A

Maintain - keep specific EC2s running, Manual - max, specific or min EC2s running, Schedule - add or remove based on schedule, Dynamic - based on collected metrics

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

What is a launch configuration?

A

a template Auto Scaling Group uses to launch instances; specifies VPC and subnets, attached to a ELB, defines a health check grace period, AMI are specified; only one launch configuration for a scaling group at a time; can’t change once created

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

What is an EC2 Auto Scaling Policy?

A

Dynamic auto scaling option can scale based on the target tracking, simple, and step scaling policies

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

What is Target Tracking Policy?

A

scale based on predefined metric value such as when CPU reaches 70%, scale up

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

What is Simple Scaling Policy?

A

Waits until health checks and cool down period expires before add new instances

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

What is Step Scaling Policy?

A

scaling with more logic and sophistication; require Cloudwatch and high/low thresholds for alarms; better than simple scaling if you have only a single scaling adjustment

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

What is the cool down period?

A

duration given before scaling up or down; default 300 seconds, used in dynamic scaling, manual scaling, but not schedule scaling; prevent addition of too many instances

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

What are the steps for creating an Autoscaling group?

A
Create an ALB in EC2
Create a SG for the ALB
Create a Launch Template in EC2
Create a new EC2 Key Pair for launch instances
Create a SG between EC2 and ALB
Name launch template, choose AMI and instance type
Create Auto Scaling Group
Add Launch Template to ASG
Modify Group size and Scaling policies
Test horizontal scaling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a launch template?

A

similar to launch configuration, but allows for multiple versions of a template; templates are recommended over launch configurations for newer features; allows for template updates and provision both on-demand and spot instances

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