High Availability and Scaling Flashcards

1
Q

What goes into a Launch Template?

A
  • AMI
  • EC2 instance size
  • Security groups
  • Potentially networking information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the most up to date and flexible way to create a reusable configuration for launching EC2 instances?

A

Launch templates. Launch configurations are the older version. It’s not wrong to use them, but when possible, use templates.

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

Is user data included in the Launch Template or Launch Configuration?

A

Yes

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

Advantages of Launch Templates

A
  • Can be versioned. Configurations are immutable.

- Networking: Configurations don’t include networking information. Templates could.

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

For which services can be Auto Scaling configured?

A

Only for EC2

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

What can be done to reduce build times in EC2 instances?

A

Bake AMIs to reduce build times. You can avoid long provisioning times by putting everything in an AMI. This is better than using user data whenever possible.

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

Tips for improving Auto Scaling

A
  • Spread out: Make sure you’re spreading your Auto Scaling groups over multiple AZs.
  • Steady state groups: Allows us to create a situation where the failure of a legacy codebase or resource that can’t be scaled can automatically recover from failure.
  • ELBs are essential Make sure you enable health checks from load balancers. Otherwise, instances, won’t be terminated and replaced when they fail health checks.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Options when scaling RDS?

A
  • Read replicas
  • Multi-AZ
  • Careful with storage: RDS storage only scales up. It won’t scale back down.
  • Vertical scaling is also an option
  • Migrating to DynamoDB is also an option (in the exam)
  • Aurora everything: Whenever possible, user Aurora if the situation calls for a relational advantage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DynamoDB access patterns and pricing/scaling options

A
  • Predictable: Provisioned

- Sporadic: On-demand

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

Can you switch pricing/scaling options in DynamoDB?

A

Yes, but only once per 24 hours per table

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

Cost vs Performance when scaling DynamoDB? (exam)

A

Keep cost in mind rather than performance when scaling DynamoDB

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