Dev Ops Flashcards

1
Q

What services can CodeDeploy deploy to? (With the exception of Cloudformation)

A

EC2, ECS, Lambda and Auto-Scaling Group. Can also deploy to on-prem

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

Whats the AWS IDE Service?

A

AWS Cloud9

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

What are the CodePipeline existing step types?

A

-Source
-Build
-Deploy
-Test
-Invoke (Invokes custom function)
-Approval

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

AWS OpsWork provides managed instances to run what services?

A

Chef or Puppet

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

True or False: The recommended monitoring services recommended for debuggind microsrvice architectures are X-Ray and CloudTrail

A

True

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

What’s the default file that configures the actions to be executed in code build?

A

buildspec.yml

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

What’s the default file that configures the code deploy?

A

appspec.yml

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

What IaC services are available on AWS?

A

-AWS Cloudformation
-AWS Cloud Development Kit (CDK)
-AWS Copilot
-AWS Proton
-AWS App2Container

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

What is the AWS CDK?

A

It’s a software development framework on a format similar to programming languages.

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

True or False: AWS CDK uses Cloudformation under the hood to create it’s resources

A

True

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

What is AWS Copilot?

A

Copilot is a CLI for launching and managing containerized applications, automating deployment pipelines, and deploying application infrastructure on AWS

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

True or false: Copilot can only launch resources in services directly related to container images, such as ECS and ECR, with other resources such as ELBs having to be created using a different service

A

False, Copilot can create resources on most services useful for a containerized aplication, including ELBs, VPCs and ECR registries

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

What is AWS Proton?

A

AWS Proton is a fully managed delivery service for containerized applications. It includes tools for infrastructure provisioning, code deployments, monitoring, and updates

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

What is App2Container?

A

AWS App2Container (A2C) is a command-line tool for converting .NET and Java applications into containerized applications

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

It is possible to configure how an AWS Cloudformation Stack will treat its resources when it’s deleted through DeletionPolicy. What kinds of deletion policies are there?

A

-DeletionPolicy=Retain: Resources created are not deleted
-DeletionPolicy=SnapShot: Create a SnapShot before deleting. Only works for some resources. Ex: EBS, RDS DBInstance
-DeletionPolicy=Delete: Default behaviour. Delete the resource.

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

What is a CloudFormation custom resource?

A

It is a resource created to address any use case not presently addressed on CloudFormation.

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

How do CloudFormation custom resources work?

A

You create a Lambda Function that is accessed by CloudFormation and this Lambda fucntion is responsible for creating your resource.

18
Q

In which cases are CloudFormation custom resources useful?

A

-To implement a new service not supported yet
-To perform on-prem deployments
-To empty an S3 bucket before deleting
-Etc

19
Q

What is CloudFormation Drift?

A

It is a functionality that detects if a resource created by a stack has been altered when compared to the stack template.

20
Q

True or False: It is possible to import a stack to another new stack using CloudFormation Resource Import

A

True

21
Q

True or False: A Cloudformation Stack can be imported by multiple Stacks ate the same time using CloudFormation Resource Import

A

False, it can be inside only one stack at a time

22
Q

True or false: Copilot can only deploy to Fargate, not EC2

A

True

23
Q

What are the types of service architectures available on Copilot?

A

-Request-driven web service
-Load balanced web service
-Backend service
-Worker service

24
Q

What is Amazon CodeGuru?

A

It’s a service that uses ML to automates code reviews by identifying code mantainability and security issues and perform application recommendations.

25
Q

What are CodeGuru’s main functionalities?

A

-CodeGuru Reviewer: Automates code review for static code analysis (development)
-CodeGuru Profiler: Visibility/recommendations about application performance during
runtime (production)

26
Q

True or False: Amazon CodeGuru Reviewer supports Java, JS, Python and Ruby

A

False, only Python and Java

27
Q

Explain the difference between rolling updates and blue/green deployment

A

-Rolling updates: Gradually replaces old versions of the application for new ones.
-Blue/Green deployment: Creates a mirror of the application with a new version and slowly redirects traffic to it.

28
Q

You have an ECS Task with a desired count of 4 running with 4 containers online. A new version of the container is launched and will be implemented using a rolling update. If the minimumHealthyPercent is 50 and the maximumPercent is 150, how many instances of each type will be left running when the rolling update starts?

A

2 of the 1st version and 4 of the 2nd version.

29
Q

What are the 3 types of Blue/Green deployment (Only names)?

A

-Canary Deployment
-Linear Deployment
-All-at-once deployment

30
Q

Describe how a Blue/Green canary deployment works

A

A canary deployment creates a mirror of the application with the new version of the deployment and redirects a small percentage of the application traffic there. If no errors are identified you then shift over the rest of the traffic.

31
Q

Describe how a Blue/Green linear deployment works

A

A Linear Deployment works by costantly redirecting a percentage of traffic to the new dploymetn version every x period of time. Ex: 10% every 3min

32
Q

Describe how a Blue/Green all-at-once deployment works

A

You shift all traffic to the new version immediately

33
Q

What services on AWS are responsible for a rolling update and a blue/green deployment on a containerized architecture?

A

Rolling update: ECS
Blue/Green: CodeDeploy

34
Q

In what programming language is the CDK’s structure based on?

A

TypeScript

35
Q

AWS Service Catalog templates are called ________

A

Products

36
Q

What is best practice with a backend database when you wish to use blue/green deployments?

A

Make sure all database changes are backward compatible.

37
Q

CodeDeploy accepts both Blue/Green deployments and In-place deployments. What are the differences between both of them?

A

-Blue/Green: Create parallele architecture and reroute to it
-In-place: Substitute currently running instances with new ones

38
Q

What Lambda feature must you use for Code Deploy to perform a Blue/Green deployment on AWS Lambda?

A

Traffic Shifting

39
Q

What is Cloudformation Stack Sets?

A

It is a functionality that allows Organization accounts to deploy Cloudformation Stacks accross different accounts and regions

40
Q

To enable automatic deploy of Cloudformation StackSets to different OU accounts you mus enable the ____________ feature

A

Automatic Deploy