6-Developer Tools Flashcards

1
Q

What is CI/CD?

A

CI - continuously push code to a shared repository

CD - Continuous Delivery has manual approval before prod; Continuous Deployment goes straight to prod

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

Where can code for CodeBuild be sourced?

A

CodeCommit or S3 is versioning is enabled

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

What targets does CodePipeline support?

A

On-premises, EC2, Lambda, Elastic Beanstalk, CloudFormation and ECS

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

What deployment options does CodeDeploy support?

A

In-place (rolling) - not for Lambda

Blue / green

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

How are CodeDeploy deployments configured?

A

With the AppSpec file. It differs if the target is Lambda versus on-prem/EC2

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

What targets does CodeDeploy support?

A

On-prem/EC2 and Lambda

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

What does the AppSpec file for Lambda deployments look like?

A

It can be in either YAML or JSON. It contains the following fields:

  • version - currently 0.0
  • resources - the name and properties of the lambda function to deploy
  • hooks - other lambda functions to call for “BeforeAllowTraffic” and “AfterAllowTraffic”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do AppSpec files for on-prem/EC2 deployments look like?

A

They are written in YAML. and place in the root directory, They have the following fields:

  • version
  • os
  • files
  • hooks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What phases are the hooks for on-prem/EC2 deployments divided in to?

A

Phase I - deregister the instance from the load balancer

Phase II - perform the upgrade

Phase III - re-register the instance

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

What hooks are in Phase I of on-prem/EC2 deployments ?

A
  • BeforeBlockTraffic
  • BlockTraffic
  • AfterBlockTraffic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What hooks are in Phase II of on-prem/EC2 deployments ?

A
  • ApplicationStop
  • DownloadBundle
  • BeforeInstall
  • Install
  • AfterInstall
  • ApplicationStart
  • ValidateService
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What hooks are in Phase III pf on-prem/EC2 deployments?

A
  • BeforeAllowTraffic
  • AllowTraffic
  • AfterAllowTraffic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do the targets of on-prem/EC2 deployments require?

A

That the CodeDeploy agent is installed

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

What commands are used for Docker?

A
  • docker build -t [repo]
  • docker tag [repo] […ecr_url..]: latest
  • docker push […ecr_url]:latest
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are CloudFormation templates written in?

A

YAML or JSON

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

What fields does a CloudFormation template have?

A
  • AWSTemplateFormatVersion
  • Description
  • Parameters
  • Conditions
  • Mappings
  • Transform
  • Resources (mandatory)
  • Outputs
17
Q

What CLI commands are used by SAM?

A
  • sam package

- sam deploy