AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 178
A company requires its internal business teams to launch resources through pre-approved AWS CloudFormation templates only. The security team requires automated monitoring when resources drift from their expected state.
Which strategy should be used to meet these requirements?
Answer options
- A. Allow users to deploy CloudFormation stacks using a CloudFormation service role only. Use CloudFormation drift detection to detect when resources have drifted from their expected state.
- B. Allow users to deploy CloudFormation stacks using a CloudFormation service role only. Use AWS Config rules to detect when resources have drifted from their expected state.
- C. Allow users to deploy CloudFormation stacks using AWS Service Catalog only. Enforce the use of a launch constraint. Use AWS Config rules to detect when resources have drifted from their expected state.
- D. Allow users to deploy CloudFormation stacks using AWS Service Catalog only. Enforce the use of a template constraint. Use Amazon EventBridge notifications to detect when resources have drifted from their expected state.
Correct answer: C
Explanation
The correct answer is C because it allows the use of AWS Service Catalog, which ensures that only approved templates are deployed, while AWS Config rules automate the monitoring for drift from the expected state. Option A and B do not restrict users to pre-approved templates through AWS Service Catalog. Option D, while using AWS Service Catalog, focuses on template constraints and relies on EventBridge for notifications rather than actively monitoring drift.