CI/CD Flashcards

1
Q

What is the GitHub but in AWS?

A

CodeCommit

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

What is the WebHook that tells CircleCi Changes in AWS?

A

Lambda

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

What es the CircleCi in AWS?

A

CodeBuild

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

The development practice of automating the preparation of code to be released into production or staging branches is referred to as what?

A

Continuous Delivery (CD)

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

The development practice of automatically integrating changes from multiple contributors into a single software project is called what?

A

Continuous Integration (CI)

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

The development practice of automatically pushing code changes into production after all tests have passed is referred to as this

A

Continuous Deployment (CD)

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

Which AWS service would you use to control user access to CodeCommit?

A

IAM

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

What is produced at the end of the CodeBuild build process?

A

An Artifact

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

Two Things about CodeBuild

A

Scales automatically to meet peek build requests

It builds code, runs unit tests, and produces artifacts

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

This AWS service is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy.

A

AWS Codebuild

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

What are the 2 options for providing the build specifications?

A

Inserting build commands

A buildspec file

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

In CodeBuild,

How can you override the values provided in the buildspec.yml file?

A

Using the CLI

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

This file is used to provide the build specifications to Codebuild and is stored in the root of your project folder

A

buildspec.yml

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

What are the 3 OS options for Codebuild Managed images?

A

Ubuntu

Amazon Linux

Windows

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

What is the recommended version to use in your buildspec.yml file?

A

.2

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

Which buildspec version runs each command in a separate instance?

A

.1

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

What are 4 phases in a buildspec.yml file?

A

install

pre_build

build

post_build

18
Q

What 4 indexes can you find in a buildspec.yml file?

A

version

env

phases

  • install (npm install)
  • pre_build (npm run test)
  • build (npm run build)

artifacts
- files

19
Q

This buildspec version runs all of your build commands in the same instance and is the recommended version to use.

A

.2

20
Q

Use case in CodeBuild with a static site?

A

CodeCommit (Gatsby)
CodeBuild
Render StaticFiles
S3

21
Q

What does each service?

CodePipeline
CodeCommit
CodeBuild
CodeDeploy

A

CodePipeline: Continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates

CodeCommit: Source control service that hosts secure Git-based repositories

CodeBuild: continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy, on a dynamically created build server

CodeDeploy: Deployment service that automates software deployments to a variety of compute services such as Amazon EC2, AWS Fargate, AWS Lambda, and your on-premises servers.

22
Q

This software platform allows you to build, test, and deploy applications quickly by packaging software into standardized units called containers.

A

Docker

23
Q

Which Dockerfile command lets you specify another docker image as the basis for your Dockerfile?

A

FROM

24
Q

What are the 7 indexes you can find in a Dockerfile?

A

FROM (uses another docker image)

RUN (executes commands)

WORKDIR (It’s like a cd)

COPY (Copies images from local to the image)

ENTRYPOINT (Command executed when the container is started)

EXPOSE (Listens on the specific network ports at runtime)

CMD (default arguments for entrypoint)

25
Q

Which Dockerfile command specifies the network ports to listen on at runtime?

A

EXPOSE

26
Q

Docker can build images automatically by reading the instructions from this file.

A

Docker File

27
Q

What is the Docker command to download an image from a repository?

A

docker pull

28
Q

What is the Docker command to build an image out of a Dockerfile?

A

docker build

29
Q

Where can you deploy with CodeDeploy?

4 elements

A
  • EC2
  • On Premise
  • Lambda
  • ECS
30
Q

This AWS service is a fully managed deployment service that automates software deployments to a variety of compute services such as Amazon EC2, AWS Fargate, AWS Lambda, and your on-premises servers.

A

AWS CodeDeploy

31
Q

6 CodeDeploy Components

A

Application: Identifier…

Deployment groups: A set of Ec2 Instances or Lambda…

Deployment:

Deployment Configuration: Rules during deployment

AppSpec File: Actions that codeDeploy should execute during deployment

Revision: Everything required to deploy a new version

32
Q

Two options when you’re configuring your deploy in CodeDeploy

A

In-Place: EC2, ASG, On Premises

Blue/Green

33
Q

Which of the following are valid targets for in-place deployment?

A

EC2

On Premise

34
Q

This configuration file specifies the files to be copied and scripts to be executed during a CodeDeploy deployment

A

appspec.yml

35
Q

The application specification file (AppSpec file) is a YAML-formatted or JSON-formatted file used by CodeDeploy to manage a deployment.

Describe the file structure

A

version: 0.0
os:

files

hooks

  • AfterInstall
  • BeforeInstall
  • Install
  • BlockTraffic
  • AllowTraffic
  • ApplicationStart
36
Q

The 2 steps required to setup the CodeDeploy agent for an EC2 instance

A
  • Install the agent software (Service, a binary, It will have CodeDeploy Continuously running)
  • Create IAM service role for CodeDeploy
37
Q

What are the 2 repository options for a new CodeStar project?

A

AWS CodeCommit

Github

38
Q

What are the 3 components of Codestar?

A

Deployment Pipeline

Project Dashboard

Access Management

39
Q

This AWS service lets you to set up your entire development and continuous delivery toolchain for coding, building, testing, and deploying your application code.

It uses codepipeline

A

AWS Codestar

40
Q

What are the 4 elements of CodeDeploy’s anatomy?

A

Pipeline
Stage, Stage transition
Action Group, Actions
Artifact

41
Q

For a deployment using AWS CodeDeploy, what is the run order of the hooks for in-place deployments?

There are 7 steps

A
Start
- ApplicationStop
- DownloadBundle
- BeforeInstall
- Install
- AfterInstall
- ApplicationStart
- ValidateService
End