CloudFormation Flashcards

1
Q

What is CloudFormation

A

A declarative way of outlining your AWS Infrastructure, for any resources. (Most are supported)

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

What does CloudFormation do?

A

Eliminates the need for manual configuration, as everything is provisioned automatically through templates.

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

How can you reference a template in CloudFormation?

A

After uploading a template in S3.

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

How is a template edited?

A

It’s not. Re-upload a new version of the template.

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

What is deleted along with a stack?

A

Every single artifact that was created by CloudFormation.

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

Two ways to deploy CloudFormation templates?

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

Features:
- Editing templates in CloudFormation Designer or code editor
- Using the console to input parameters, etc…

A

Manual deployment

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

Features:
- Editing templates in a YAML file
- Using the AWS CLI (Command Line Interface) to deploy the templates, or using a Continuous Delivery (CD) tool

A

Automated deployment

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

What is the core of your CloudFormation template?

A

Resources

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

What are “Resources”?

A

Different AWS Components that will be created and configured.

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

Resources are….. and can…… each other.

A

declared, reference

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

How are resources created, updated, and deleted?

A

AWS does it.

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

What do “Parameters” do?

A

Provides inputs to AWS CloudFormation template.

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

Features:
- You want to reuse your templates across the company
- Some inputs can not be determined ahead of time

A

Parameteres

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

How can parameters help prevents errors in a template?

A

Types

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

What should a “parameter” be used?

A

When a resource configuration is likely to change.

17
Q

What are “Mappings”?

A

Fixed variables within your CloudFormation template.

18
Q

When should “mappings” be used?

A

When you know in advance all the values that can be taken.

19
Q

When should “parameters” be used?

A

When the values are really user specific.

20
Q

What are “Outputs”?

A

Declares optional outputs values that we can import into other stacks

21
Q

What are “Conditions”?

A

They control the creation of resources or outputs based on a condition.

22
Q

Each condition can reference..

A

Other condition, parameter value or mapping.

23
Q

Different types of “Rollbacks”?

A
  1. Stack Creation Fails
  2. Stack Update Fails
24
Q

What is a CloudFormation “Serve Role”?

A

IAM roles that allows CloudFormation create/update/delete stack resources.

25
How can you give users CRUD abilities to the stack resource even if they don't have permissions?
Service role
26
What is "Deletion Policy"?
Allows control of what happens when the CloudFormation template is deleted/ resource is removed.
27
What is an extra safety measure to preserve and backup resource?
Deletion policy
28
Delete won’t work on an S3 bucket if the bucket is not empty?
True
29
What is a "Stack Policy"?
A JSON document that defines the update actions that are allowed on specific resources during Stack updates.
30
What are all resources in a Stack protected by default?
What a Stack Policy is set.