0
0
AWScloud~20 mins

Updating and deleting stacks in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CloudFormation Stack Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you update an AWS CloudFormation stack with a template that removes a resource?

You have an existing CloudFormation stack with several resources. You update the stack by uploading a new template that no longer includes one of the original resources. What is the expected behavior?

AThe resource is deleted from the stack and removed from your AWS account.
BThe resource remains unchanged in your AWS account but is no longer managed by the stack.
CThe update fails with an error because resources cannot be removed from a stack.
DThe resource is stopped but not deleted, and remains in your AWS account.
Attempts:
2 left
💡 Hint

Think about how CloudFormation manages resources when they are removed from the template.

Architecture
intermediate
2:00remaining
Which AWS CloudFormation stack deletion policy prevents resource deletion when the stack is deleted?

You want to delete a CloudFormation stack but keep certain resources intact in your AWS account. Which deletion policy should you apply to those resources?

AProtect
BSnapshot
CDelete
DRetain
Attempts:
2 left
💡 Hint

Consider which policy tells CloudFormation to keep the resource even if the stack is deleted.

security
advanced
2:00remaining
What IAM permission is required to delete an AWS CloudFormation stack?

To delete a CloudFormation stack, which IAM permission must a user have?

Acloudformation:TerminateStack
Bcloudformation:DeleteStack
Ccloudformation:RemoveStack
Dcloudformation:DestroyStack
Attempts:
2 left
💡 Hint

Check the exact AWS IAM action name for deleting stacks.

Best Practice
advanced
2:00remaining
What is the recommended approach to update a CloudFormation stack with minimal downtime?

You need to update a CloudFormation stack that runs a web application. Which approach minimizes downtime during the update?

ADelete the stack and create a new one with the updated template immediately.
BManually update resources outside CloudFormation to avoid stack updates.
CUse Change Sets to preview changes and update the stack during low traffic periods.
DUpdate the stack directly without previewing changes to speed up deployment.
Attempts:
2 left
💡 Hint

Think about how to safely apply changes with visibility before execution.

🧠 Conceptual
expert
2:00remaining
What is the effect of setting the 'DeletionPolicy' attribute to 'Snapshot' on an Amazon RDS instance in a CloudFormation stack when the stack is deleted?

You have an Amazon RDS instance defined in a CloudFormation stack with the 'DeletionPolicy' attribute set to 'Snapshot'. What happens to the RDS instance when you delete the stack?

ACloudFormation creates a snapshot of the RDS instance before deleting it.
BThe RDS instance is deleted immediately without any snapshot.
CThe RDS instance is retained and not deleted or snapshotted.
DThe stack deletion fails with an error due to the snapshot policy.
Attempts:
2 left
💡 Hint

Consider what the 'Snapshot' deletion policy does for stateful resources.