AWS Elastic Beanstalk Flashcards

(16 cards)

1
Q

Elastic Beanstalk

A

Managed service that automatically handles capacity provisioning, load balancing, scaling, application health monitoring, etc

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

Beanstalk components

A

Application, application version, environment (collection of AWS resources running an application version)

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

Single instance deployment modes

A

One EC2 instance with elastic IP, good for dev purposes

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

High availability with load balancer deployment mode

A

Multi AZs, ALB, good for prod

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

All at once deployment option

A

Fastest but instances are available to serve traffic for a bit (downtime)
all v1 –> all down –> all v2

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

Rolling deployment option

A

Update a few instances at a time and then move to next bucket once the first bucket is healthy
v1 –> first two instances stopped –> first two instances updated –> next 2 updated –> all are v2
long deployment
running under capacity

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

Rolling with additional batches deployment option

A

Spins up new instances to roll the batch (so old application still available)
Application running at or over capacity, runs both v1 and v2 versions simultaneously
Good for prod
small additional cost

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

Immutable deployment option

A

Spins up new instances in a new ASG, deploys version to these instances, then swaps all instances when everything is healthy
zero downtime, longest deployment, high cost, double capacity
quick rollback in case of failures

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

Blue Green deployment option

A

Create a new environment and switch over when ready
zero downtime
can use route 53 to route traffic

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

Traffic splitting deployment option

A

Canary testing, send a small % of traffic to new deployment

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

Beanstalk Lifecycle Policy

A

Based on time (old versions removed) or based on space (when you have too many versions), remove old application versions, can store 1000 at most and wont be able to deploy anymore if you hit that limit

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

Elastic Beanstalk extensions

A

AWS Elastic Beanstalk extension files are configuration files used to customize and manage various aspects of an Elastic Beanstalk environment

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

Elastic beanstalk cloning

A

Clone an environment with the exact same configuration, can change settings after cloning eg. useful for deploying a test version of your application

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

Elastic beanstalk load balancer migration

A
  1. create new env with same config except the load balancer as we cant clone it 2. deploy app to new env 3) perform CNAME swap or Route 53 update
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

RDS with elastic beanstalk decoupling

A

Best for prod is separately create RDS database and provide beanstalk application with the connection string

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

When creating configuration files for AWS Elastic Beanstalk which naming convention should you follow?

A

.ebextensions/<mysettings>.config</mysettings>