0
0
AWScloud~10 mins

Updating and deleting stacks in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the AWS CLI command to update a CloudFormation stack named 'MyStack'.

AWS
aws cloudformation update-stack --stack-name [1] --template-body file://template.yaml
Drag options to blanks, or click blank then click option'
AMyStack
BNewStack
CStackUpdate
DOldStack
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different stack name that does not exist.
Forgetting to specify the stack name.
2fill in blank
medium

Complete the AWS CLI command to delete a CloudFormation stack named 'TestStack'.

AWS
aws cloudformation [1] --stack-name TestStack
Drag options to blanks, or click blank then click option'
Acreate-stack
Bupdate-stack
Cdelete-stack
Ddescribe-stacks
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update-stack' instead of 'delete-stack'.
Confusing 'describe-stacks' with delete operation.
3fill in blank
hard

Fix the error in the AWS CLI command to update a stack with a new template file named 'new-template.yaml'.

AWS
aws cloudformation update-stack --stack-name MyStack --template-body file://[1]
Drag options to blanks, or click blank then click option'
Anew-template.yaml
Bold-template.yaml
Ctemplate.yaml
Dtemplate.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Using the old template file name instead of the new one.
Using a file with wrong extension.
4fill in blank
hard

Fill both blanks to complete the AWS CLI command that updates a stack named 'ProdStack' with a template file and a parameter override.

AWS
aws cloudformation update-stack --stack-name [1] --template-body file://[2] --parameters ParameterKey=InstanceType,ParameterValue=t2.micro
Drag options to blanks, or click blank then click option'
AProdStack
BDevStack
Cprod-template.yaml
Ddev-template.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using development stack name with production template.
Swapping template files between environments.
5fill in blank
hard

Fill all three blanks to complete the AWS CLI command that deletes a stack named 'TestStack' and waits until the deletion is complete.

AWS
aws cloudformation [1] --stack-name [2] && aws cloudformation wait [3] --stack-name TestStack
Drag options to blanks, or click blank then click option'
Adelete-stack
BTestStack
Cstack-delete-complete
Dupdate-stack
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update-stack' instead of 'delete-stack'.
Using wrong wait condition like 'stack-update-complete'.