Deployment Flashcards

1
Q

AWS EC2 instance type for pay as you go?

A

On-demand

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

AWS EC2 instance type for reserving for a long period of time for a lower cost?

A

Reserved

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

AWS EC2 instance type for ensuring no shared physical resources?

A

Dedicated

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

AWS EC2 instance type for cheap instances and can be terminated at any point?

A

Spot

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

What does EBS contain?

A

Elastic Block Store: Contains the AMI, application and data

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

What AWS EBS type should you choose for high IOPS?

A

io1 (64,000 IOPS)

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

What AWS EBS type should you choose for high durability?

A

io2

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

What is the IOPS limit for a GP2 EBS volume?

A

16,000 IOPS

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

What is the best way to encrypt an unencrypted EBS volume?

A

Create a snapshot of the EBS volume and relaunch it, selecting encryption as an option

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

How do you ensure that all new volumes are encrypted by default?

A

Enable EBS encryption by default with a single setting per region

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

What are the four different types of load balancers?

A

Application Load Balancer, Network Load Balancer, Gateway Load Balancer & the Classic Load Balancer

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

What load balancer would you use for traffic operating at the TCP layer?

A

Network Load Balancer

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

What load balancer would you use for HTTP(S) traffic to direct traffic to specific targets within your VPC?

A

Application Load Balancer

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

An application is behind an ELB. How can it know the IP address of a client?

A

The “X-Forwarded-For” in the request header contains the client ip address

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

What is Route53 and what services can be used with it?

A

Amazon’s DNS service - Allows one to map your domain name to EC2, ELB or S3 buckets

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

What AWS service allows you to automate your build, test and release process every time there is a code change?

A

AWS CodePipeline

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

What AWS service allows you to store your code changes in a git repository?

A

AWS CodeCommit

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

What AWS service allows you to automate deployment?

A

AWS CodeDeploy

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

What is CI & CD (as used by AWS)?

A

Continuous Integration & Continuous Delivery

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

What AWS service is a managed CI service that compiles, runs tests and produces s/w packages that are easy to deploy?

A

AWS CodeBuild

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

What is Elastic Beanstalk?

A

An AWS service used for deploying & scaling web applications

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

Are there additional charges for using Elastic Beanstalk?

A

No - you only pay for the resources that you use

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

What are the compatible languages with Elastic Beanstalk?

A

Java, .NET, PHP, Node.js, Python, Ruby, Docker & Go

24
Q

What services are integrated with Elastic Beanstalk?

A

EC2, S3 bucket, Load Balancer & Auto Scaling Group

Not Lambda

25
Q

What is AWS CloudFormation?

A

An Infrastructure as Code (IaC) AWS Service which allows developers to provision and manage resources in an orderly fashion

26
Q

What are the supported format(s) of an AWS CloudFormation template?

A

JSON or YAML

27
Q

What are the elements of a CloudFormation template?

A

Format Version (optional), Description (optional), Metadata (optional), Parameters (optional), Rules (optional), Mappings (optional), Conditions (optional), Transform (optional), Resources (required) & Outputs (optional)

28
Q

What is the CloudFormation “Parameters” template section used for?

A

Values to pass your template when your create/update your stack which can be referred to in the “Resources” or “Output” section

29
Q

What is the CloudFormation “Rules” template section used for?

A

Validating parameter(s) passed to a template during stack creation

30
Q

What is the CloudFormation “Transform” template section used for?

A

Specifies macros that the AWS CloudFormation uses to process your template.

Examples include:

  • ‘AWS::Serverless’ to generate serverless resources (S3 bucket, DynamoDB etc’
  • ‘AWS::Include’’ to work with other AWS CloudFormation templates
31
Q

What is the CloudFormation “Resources” template section used for?

A

A required section that specifies the stack resources and their properties. e.g. EC2 instances

32
Q

What is the CloudFormation “Outputs” template section used for?

A

Describes the values that are returned when you view your stack’s properties, e.g. an S3 bucket name created by your cloud formation stack

33
Q

What does CloudFormation do if part of the stack creation fails?

A

Rolls back your changes of the stack

34
Q

Can and should you have your database provisioned in Elastic Beanstalk?

A

You can but it is not considered best practice, if you want to delete your application with EB then it would delete your whole database which is generally not what you want.

It is best to define a DB separately from Elastic Beanstalk

35
Q

What are some of the example of Cloud Formation Intrinsic functions?

A

Condition,
Fn::Transform,
Ref

36
Q

What are some of the things you can do with Elastic Beanstalk?

A

Manage the deployment of your web application, domain name, manage security groups, monitor your application with CloudWatch metrics and alarms, configure load balancing, manage autoscaling,

37
Q

What are the deployments options available?

A

All at Once, rolling, rolling with additional batches, immutable deployment

38
Q

Describe the All at Once deployment strategy?

A

Deploy the new version to all instances simultaneously, all instances in your environment are out of service while the deployment occurs

39
Q

Describe the Rolling deployment strategy?

A

Deploy the new version in batches, each batch is taken out of service during the deployment strategy. Your capacity is reduced by the number of instances in a batch.

40
Q

Describe the Rolling with additional batch strategy?

A

Deploy the new version in batches but first launch a new batch of instances to ensure full capacity during the deployment process

41
Q

Describe the “Immutable” deployment strategy?

A

Deploys the new version to a fresh group of instances by performing an immutable update. Automatically rolling back.

42
Q

Describe the “Traffic splitting” policy?

A

Deploy the new version to a fresh group of instances and temporarily split the incoming client traffic between the existing app and the new one

43
Q

What are the Elastic Beanstalk environmental health statuses and their meanings?

A

Green: OK (most instances passed health checks)
Yellow: Warning (Moderate number of request failures)
Red: (High number of request failures)
Grey: Suspended, updating, unknown

44
Q

What is AWS SAM?

A

AWS Serverless Application Model - Open source framework for building serverless applications via API or CLI

45
Q

Name some of the SAM CLI commands and their meanings?

A

sam package : Package up your application and upload to S3

sam deploy : Deploys your serverless application using CloudFormation

46
Q

For Elastic Beanstalk what is the format for the DNS name of your web server?

A

(application-name).(aws-region).elasticbeanstalk.com

47
Q

What is the CodeDeploy “appspec.yml” file?

A

A configuration file that defines how your app is deployed with 4 major sections: version, os, files & hooks.

48
Q

What is the CodeBuild “buildspec.yml” file?

A

A configuration file that defines how your software is built with various phases

49
Q

What are the CodeDeploy appspec formats permitted?

A

.yml or .json for lambda based deployments and all others it is .yml only

50
Q

What are CodeDeploy “hooks”?

A
Defines scripts that are run at various points in the deployment the main sections are:
"BeforeInstall"
"AfterInstall"
"ApplicationStart"
"ValidateService"
51
Q

Where are the “appspec.yml” and “buildspec.yml” files stored?

A

At the root directory of your application

52
Q

What are the main “buildspec.yml” phases?

A

install, pre_build, build & post_build

53
Q

What are Elastic Beanstalk supported platforms?

A

Apache http server, Tomcat, Nginx, Passenger and IIS

54
Q

How do you customise your AWS Elastic Beanstalk environment?

A

The “.ebextensions” folder which is stored at the root of your application which contains “.config” files for configuration of your environment

55
Q

What is an AMI?

A

Amazon Machine Image - A packaged-up environment that includes all the necessary bits to set up and boot your instance

56
Q

What are the main EC2 instance types?

A

Memory Optimized: Ideal for fast performance for workloads that process large data sets in memory

Compute Optimized: Ideal for compute bound processes

Accelerated Computing: H/w accelerators for floating point number, data pattern matching or graphics processing

Storage Optimized: Designed for workloads that require high sequential read/write access in local storage