AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
A company uses AWS CloudFormation to provision application stacks that include an IAM role with the AdministratorAccess managed policy attached. Application teams must be free to update the rest of their resources, but the CloudOps engineer must ensure that these critical roles can never be deleted or replaced during stack updates. What is the most operationally efficient way to meet this requirement?
Enable termination protection on every stack so CloudFormation blocks operations that would delete resources.
Deploy an AWS Config rule that detects changes to Administrator roles and triggers a Lambda function to roll back unauthorized modifications.
Attach a stack policy to each stack that denies Delete and Update:Replace actions for the logical IDs of the Administrator roles.
Add a DeletionPolicy of Retain to the IAM role resources in the templates.
Attach a CloudFormation stack policy that denies Update:Delete and Update:Replace actions for the logical IDs representing the Administrator roles while an Allow statement permits all other update actions. When a team attempts a stack update that would delete or replace one of those roles, CloudFormation evaluates the stack policy first and blocks the operation, yet still allows updates to all other resources.
Termination protection only prevents the DeleteStack operation; it does not stop stack update commands that might delete or replace individual resources. Adding a DeletionPolicy of Retain protects the physical resource from deletion but does not prevent a replacement, and CloudFormation will still attempt the update. An AWS Config rule with a remediation Lambda function is reactive, allows the unwanted change to occur before rollback, and adds additional services to maintain.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a CloudFormation stack policy?
Open an interactive chat with Bash
What is the difference between Stack Policy and Termination Protection?
Open an interactive chat with Bash
Why is adding a DeletionPolicy of Retain insufficient for protecting IAM roles in this scenario?
Open an interactive chat with Bash
What is a CloudFormation stack policy and how does it work?
Open an interactive chat with Bash
What is the difference between Termination Protection and a Stack Policy?
Open an interactive chat with Bash
Why is a DeletionPolicy of Retain not sufficient to protect IAM roles in this scenario?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Deployment, Provisioning, and Automation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .