A company uses AWS Organizations and wants to deploy standard design patterns (EC2, ELB, Amazon RDS, and Amazon EKS or Amazon ECS) across environments with AWS CloudFormation StackSets. Developers currently build their own CloudFormation stacks through a centralized CI/CD pipeline in a shared services account. The security team has defined configuration requirements and must be notified of any noncompliant resources without slowing developer delivery. What is the most operationally efficient solution?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon SNS topic and subscribe the security team’s email addresses. Define custom CloudFormation Guard rules for required configurations. In the CI/CD pipeline, run the cfn-guard command in a Docker image before the build stage. Publish to the SNS topic if any violations are detected..
Why this is the answer
The correct answer leverages CloudFormation Guard, an open-source policy-as-code tool, to enforce security configurations efficiently. Integrating cfn-guard into the CI/CD pipeline allows for automated policy checks before deployment, catching non-compliant templates early without manual intervention. Publishing violations to an SNS topic immediately notifies the security team, meeting the requirement for timely alerts without slowing developer delivery. Incorrect options: Running aws cloudformation validate-template only checks for syntactical correctness, not adherence to security configuration requirements. The S3/SQS/Auto Scaling group approach is overly complex and introduces unnecessary latency and cost compared to a direct pipeline integration. A centralized CloudFormation stack set with manual review for every update is not operationally efficient and introduces a bottleneck, directly contradicting the requirement to avoid slowing developer delivery.
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