CodeDeploy Flashcards

1
Q

What is CodeDeploy?

A

Automated deployment for EC2, on-premises & Lambda.

Also for ECS?

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

What CI/CD property does CodeDeploy fulfill?

A

Continuous Delivery

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

Approaches CodeDeploy Deploys

A

In Place

Blue/Green

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

Describe In Place Deploymnet

A

Rolling update

Great for first time deployment

Only EC2 and on-premise servers are supported

Takes 1 instance out of service.

Not a quick fix for rollback (have to redeploy)

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

Describe Blue/Green Deployment

A
Blue = active
Green = new release

roll backs are easy

Pay for 2 env till terminate old servers

Lambda, ECS, or EC2

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

What file do you use to configure CodeDeploy

A

AppSpecFile

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

Language AppSpecFile must be for each service

A

EC2 and on-premise = YAML only

Lambda = YAML and JSON

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

What are the contents of the AppSpec file

A

Version (future use)
OS
Files
Hooks

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

LifeCycle Hooks for deregistering instances

A

BeforeBlockTraffic->BlockTraffic->AfterBlockTraffic

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

LifeCycle hooks for deployment

A

ApplicationStop -> DownloadBundle->BeforeInstall -> Install -> AfterInstall -> ApplicationStart->ValidateService

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

LifeCycle hooks to reregister instances with load balancer

A

BeforeAllowTraffic->AllowTraffic->AfterAllowTraffic

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

When deploying to Lambda what 2 configurations can you choose for shifting traffic from original Lambda function to new in Blue/Green Deployment

A

Canary
Linear
All at once

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

What is Canary traffic shifting

A

Specify percentage of traffic shifted to updated Lamba function and an interval in min before shifted to next increment

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

What is Linear Traffic shifting

A

Shift in equal increments with equal number of minutes between increment

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

What are ways to shift traffic with ECS Compute Platform?

A

Canary
Linear
All-at-once

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

Interpret:

CodeDeployDefault.LambdaLinear10PercentEvery10Minute

A

Shifts 10 percent of traffic to updated Lambda function every 10 minutes

17
Q

Interpret:

CodeDeployDefault.LambdaCanary10PercentEvery5Minute

A

Shifts 10 percent of traffic to updated Lambda and after 5 minutes to the remaining 90 percent

18
Q

How to roll back an In-Place dployment?

A

Redeploy previous version of app