Stack policies

5 minutes 5 Questions

Stack policies in AWS CloudFormation prevent unplanned resource updates or deletions. They define what changes are allowed and which resources are protected during stack modifications. A stack policy is a JSON-formatted text file that specifies the allowed or denied actions on defined resources or …

Test mode:
AWS Certified Solutions Architect - Stack policies Example Questions

Test your knowledge of Stack policies

Question 1

Your team manages an Amazon RDS DB instance with AWS CloudFormation. A stack policy denies Update and Delete actions on the DB instance resource to prevent accidental changes. The DB master password is supplied to the stack as a parameter (not via Secrets Manager) and must be rotated monthly. You want to keep the DB instance under CloudFormation control and maintain the stack policy protections. What should you do to update the password each month?

Question 2

Your AWS CloudFormation stack has a Stack Policy that allows all actions on all resources. You need to temporarily protect a specific resource from being updated during a maintenance event. What approach should you use?

Question 3

You are trying to modify the Stack Policy for an existing AWS CloudFormation stack. Your colleague mistakenly added a Stack Policy that denies any action on any resource. What should you do to regain access to the stack?

More Stack policies questions
15 questions (total)