CodeDeploy Flashcards

1
Q

This is an automated deploy service which allows you to deploy you app code automatically to EC2 instances, on prem systems, and LMabda functions.

A

code deploy

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

this service allows you to quickly release new features, avoid downtime during app deployments and avoid the risks associated with manual processes.

A

code deploy

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

T or F

code deploy auto scales with your infra and integrates with various CI/CD tools ie: jenkins, github, atlassian, codepipeline, as well as config management tools like ansible, chef, and puppet.

A

true

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

What are the 2 appraches available for code deploy?

A

in-place and blue-green

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

Which deploymetn type is this?

  • the app is stopped on each instance and the latest revision installed
  • the isntance is out of service during this time and yoru capacity will be reduced
  • if the isntances are behind a load balancer, you can configure the LB to stop sending requests to the instances which are being upgraded.
A

in-place deployment

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

which deployment is this?

  • also known as rolling dpeloyment
  • it can only be used for ec2 and on-prem systems - it is not supported for lambda.
  • if you need to roll back your changes, the previous version of the app will need to be redeployed.
A

in-place deployments

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

blue/green deployment -

new isntaces are provisioned and the latest revision is installed on teh new instances. ____ represents the active deployment, _____ is the new release

A

blue/green

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

which deployment is this?

BG or in place?

the new instances are registered with an ELB, traffic is then routed to the new isntances and the original instances are eventually terminated.

A

Blue green

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

which deployment is this?

BG or in place?

advantages of this deployment are that hte new instan ces can be created ahead of time and the code released to prod by simply switching all traffic ot the new servers.

A

blug green

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

which deployment is this?

BG or in place?

switching back to the original environment is faster and more reliable and is just a case of routing the traffic back to teh original servers (as logn as you haven’t already termianted them)

A

blue green

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

Match the definition to the terminology:

  • A set of EC2 instances or lambda cuntion to which a new revision of the software is to be deployed.
  • the process and components used to apply new revision
  • a set of deployment rules as well as success/failure conditions used during a deployment
  • defines the deployment actions you want AWS code deploy to execute.
  • everything needed to deploy the new version: appspec file, app files, executables, config files
  • unique identifier for the app you want to deploy. To ensure the correct combination of revision, deployment configuration and deployment group are referenced during a deployment.
  1. Revision
  2. Deployment
  3. Application
  4. Deployment Group
  5. AppSpec File
  6. Deployment Configuration
A
  1. deployment group
  2. deployment
  3. deployment configuration
  4. appspec/File
  5. revision
  6. application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

capacity is reduced during the deplloyment

in place or blue green?

A

in place

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

easy switch between old and new

in place or blue green

A

bllue green

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

lambda is not supported

in place or blue green

A

in place

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

great when deploying the first time

in place or blue green

A

in place

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

no capacity reduction

in place or blue green

A

BG

17
Q

green instances can be created ahead of time

in place or blue green

A

BG

18
Q

you pay for 2 env until you temrinate the old servers

in place or blue green

A

BG

19
Q

rolling back involves a re-deploy

in place or blue green

A

in place

20
Q

_____ file

defines the parameters to be used during codedeploy deployment

A

appspec

21
Q

the appspect file supports ____ only when deploying for ec2 or on prem systems

A

YAML

22
Q

when deploying lambdas, the appspec file supports ___ and ____. file structure depends on whether you are deplying to lambda or ec2.

A

json or yaml

23
Q

appspec.yml should be saved at the ____ of your revision

A

root

24
Q

regarding appspec file lifecycle event ____ have a very specific run order

A

hooks

25
Q

lifecycle event hooks are run in a specific order known as the ____ order

A

run

26
Q

run order for an in place deployment

(put it in order)

application start

application stop

after install

validate service

before install

install

download bundle

A

application stop

download bundle

before install

install

after install

application start

validate service

27
Q
A