Scalability Flashcards

1
Q

How to ensure horizontal scaling?

A
  • auto scaling group

- load balancer

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

How to ensure vertical scaling?

A

use more powerful ec2 instances

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

How to ensure high availability

A
  • auto scaling group multi AZ

- load balancer multi AZ

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

What are the advantages of load balancers?

A
  • spread load between instances
  • expose a single dns to the internet
  • provide https for websites
  • do health checks for instances
  • handle failures of ec2 instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why use elastic load balancer?

A
  • managed by aws
  • less effort
  • integration with many aws offerings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What load balancers are available?

A
  • classic load balancer
  • application load balancer
  • network load balancer
  • gateway load balancer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can load balancers improve security of ec2 instance?

A

Through security groups.

  • The sg of the load balancer can be opened to the internet.
  • The sg of the ec2 instances can be restricted to only let traffic in from the load balancer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can an application load route traffic to different target groups?

A
  • Based on path in URL
  • Based on hostname in URL
  • Based on Query String, Headers

You would need one classic load balancer for each application.

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

What can an application load balancer target group consist of?

A
  • ec2 instances
  • ecs
  • lambda functions
  • ecs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When do you need network load balancer and what does it do?

A
  • for very high traffic and low latency balancing

- it forwards the traffic at the protocol layer

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

How can you make sure a user does not use its session data?

A

By using sticky sessions using cookies

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

How can you secure the connection using load balancers?

A
  • using a ssl/tls certificate

- certificates can be managed through aws certificate manager

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

How can you react to a decreasing or increasing load using a load balancer?

A

attach a load balancer to an auto scaling group

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

What are the available scaling policies?

A

-Dynamic ScalingPolicies
-Target Tracking Scaling (e.g. CPU to stay around 40%)
-Simple Scaling (When a CloudWatch alarm is triggered (example CPU > 70%), then add 2 units
• When a CloudWatch alarm is triggered (example CPU < 30%), then remove 1)

 - Scheduled Actions - Predictive Scaling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are good metrics to scale on?

A
  • CPU utilization
  • Request count per target
  • any other custom cloudwatch metric
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can you perform actions on auto scaling events?

A

-through lifecycle hooks