Infrastructure Automation: AWS CloudFormation Flashcards

1
Q

Need to review updates to a CloudFormation stack

before deploying them in production

A

Use change sets

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

Stack deployed and manual changes were made.

Need to capture changes and update template

A

Use drift detection and use output to update

template and redeploy the stack

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

Need to update new version of app on EC2 and ALB.

Must avoid DNS changes and be able to rollback

A

Update template with AutoScalingReplacingUpdate

policy and perform an update

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

Need to write a single template that can be deployed

across several environments / Region

A

Use parameters to enter custom values and use Ref

intrinsic function to reference the parameter

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

Tried to launch instance in a different region from a

working template and it fails

A

Probably due to incorrect AMI ID

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

CloudFormation stack created for first time and fails

with ROLLBACK_COMPLETE status

A

To continue administrator must relaunch the

template to create a new stack

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

Template for infrastructure in one region used to

deploy in another and fails

A

Template likely referenced an AMI that doesn’t exist

in the new region and/or services that don’t exist

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

CloudFormation stack fails and returns

UPDATE_ROLLBACK_FAILED

A

Fix the error that caused the rollback to fail and then

select “Continue update rollback” in the console

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

Need to deploy a single CloudFormation template across multiple accounts

A

Use StackSets

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

CloudFormation deploys stack with separate VPC for each app. Fails to deploy

A

May have reached the default limit for VPCs in the

account

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

Would like to manually address any issues with

CloudFormation stack creation

A

Set the OnFailure parameter to “DO_NOTHING”

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

CloudFormation fails with “The image id ‘[ami-

2a69aa47]’ does not exist”

A

Most likely the template is being run in a different

region where the AMI does not exist

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

When creating Stack a wait condition error is
experienced: ““received 0 signals out of the 1
expected from the EC2 instance”.”

A

Check instance has a route through NAT device and in
the cfn logs confirm that the cfn-signal command ran
successfully

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