AWS SysOps Admin SOA-C02 · Deployment, Provisioning, and Automation · medium
A production VPC Security Group and an Amazon S3 bucket were originally provisioned by an AWS CloudFormation stack (Prod-Core-Stack). Two weeks later, an on-call engineer manually added an emergency inbound rule (TCP 8080 from 203.0.113.5/32) to the Security Group in the AWS Management Console. Before running the next stack update, how can the SysOps administrator identify all resources in Prod-Core-Stack whose live configuration diverges from the CloudFormation template?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: D. Run CloudFormation Drift Detection (DetectStackDrift) on Prod-Core-Stack
AWS CloudFormation Drift Detection (DetectStackDrift / DetectStackResourceDrift) compares the current live state of stack resources against the expected property values defined in the stack's CloudFormation template and reports resources as MODIFIED (DRIFTED), DELETED, or IN_SYNC.
Why the other options are wrong
- A. Run aws cloudformation validate-template against the local YAML file in Git — validate-template only checks YAML/JSON syntax locally; it never inspects live deployed AWS resources.
- B. Enable TerminationProtection on Prod-Core-Stack in the CloudFormation console — Stack Termination Protection prevents accidental DeleteStack calls, not out-of-band console edits.
- C. Add a DeletionPolicy: Retain attribute to the Security Group — DeletionPolicy: Retain controls behavior when a resource is deleted, not drift auditing.
More Deployment, Provisioning, and Automation questions
- A SysOps administrator manages 200 Amazon EC2 instances running Amazon Linux 2023 and Windows Server 2022. Corporate…
- A SysOps administrator deploys an AWS CloudFormation stack containing an EC2 instance with a CreationPolicy…
- A security audit requires removing all inbound SSH (TCP 22) and RDP (TCP 3389) rules from every Amazon EC2 Security…
- An enterprise manages 85 AWS accounts organized into 4 Organizational Units (OUs) in AWS Organizations. Whenever a new…
- A SysOps administrator wants to ensure that every EC2 instance tagged Role = WebServer has the httpd service…
All Deployment, Provisioning, and Automation questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.