Cloud Formation Flashcards

1
Q

In Cloud formation what describes the infrastructure in JSON or YAML?

A

Template

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

What is a Stack in CloudFormation?

A

Entire environment created by the template

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

What is a StackSet in CloudFormation?

A

Deploy stacks across accounts/regions

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

What is the benefit of a Change Set?

A

See changes before committing

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

What do logical ID’s point to in CloudFormation?

A

Resources within the template

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

What do Physical ID’s point to in CloudFormation?

A

Resources outside of CloudFormation

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

Which account is the Administrator Account in CloudFormation?

A

In the account you create the Cloud stack

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

What is the target account in CloudFormation?

A

The account resources are created

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

How do nested Stacks help?

A

Prevent copying stacks between accounts. They reference other stacks for reuse.

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

When will you use the Direct update stack method?

A

Immediate change

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

When will you use the Change Set method?

A

Preview change before execution

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

What does Drift detection do?

A

Informs if your infra has changed from the template

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

What is the Helper Script (cfn-init) used for?

A

Installing packages, parse meta data, start/stop services

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

Where do Helper Scripts logs get saved to?

A

/var/log/cfn-init.log

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

What is cfn-signal used for?

A

Signal CloudFormation when a script has finished running

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

What to do if you have problems with Help scripts?

A

Ensure helper script in AMI and check log files

17
Q

When do you use the CloudFormation - CreationPolicy?

A

Use it to wait on a resource before stack creation proceeds

18
Q

Which CloudFormation resources support creation policies?

A

AutoScaling, EC2, CloudFormation

19
Q

What is the CloudFormation deletion policy used for?

A

Decide what happens to resources before they are deleted, e.g. backup

20
Q

What deletion policy do you use if you want to keep a resource

A

Retain policy

21
Q

What deletion policy do you use if you want to keep a snapshot of the resource?

A

Snapshot policy

22
Q

What does deletion policy do by default?

A

removes/deletes resources

23
Q

What does DependOn do in CloudFormation?

A

Waits for another resource to be built before creating the next resource

24
Q

What does the WaitOn condition do in CloudFormation?

A

Use while waiting for external resource to be created

25
Q

Why use the UpdatePolicy?

A

Decide what happens to your resource during an update

26
Q

Why use the UpdateReplacePolicy?

A

Retain or backup a resource (EC2) before it is replace during an update

27
Q

What happens when a Stack creation fails?

A

Everything gets deleted

28
Q

Which OnFailure attribute do you use to keep resources during a stack failure?

A

DO_NOTHING

29
Q

Which OnFailure attribute do you use to rollback resources during a stack failure?

A

ROLLBACK

30
Q

Which OnFailure attribute do you use to delete resources during a stack failure?

A

DELETE

31
Q

What state will CloudFormation be in if it can’t roll back changes during an update?

A

UPDATE_ROLLBACK_FAILED

32
Q

If a roll back succeeds after an update stack had failed, what stat will it be in?

A

UPDATE_ROLLBACK_COMPLETE