A recent CloudFormation stack update failed and a DevOps engineer found that some stack resources were manually modified. The engineer needs to detect manual modifications to CloudFormation-managed resources and alert the DevOps lead with minimal operational effort. What solution meets this need?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon SNS topic and subscribe the DevOps lead by email. Enable the AWS Config managed rule CLOUDFORMATION_STACK_DRIFT_DETECTION_CHECK. Create an EventBridge rule triggered on NON_COMPLIANT resource status and set the SNS topic as the target..
Why this is the answer
The correct solution leverages the CLOUDFORMATIONSTACKDRIFTDETECTIONCHECK AWS Config managed rule, which specifically identifies manual modifications (drift) in CloudFormation-managed resources. When this rule detects drift, it marks the resource as NONCOMPLIANT. An Amazon EventBridge rule can then be configured to trigger on this NONCOMPLIANT status and publish a message to an Amazon SNS topic, which in turn notifies the DevOps lead via email. This approach is efficient and requires minimal operational effort as it uses existing AWS managed services. The second option is incorrect because creating a custom AWS Config rule and a Lambda function for email notification adds unnecessary complexity and operational overhead compared to using the managed rule and SNS. The third option is incorrect because triggering on COMPLIANT status would not alert for drift; alerts are needed when resources are NONCOMPLIANT. The fourth option is incorrect because while it detects NONCOMPLIANT status, using a Lambda function for email is less efficient than directly using SNS with an email subscription.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed