A DevOps engineer is building a multi-stage AWS CodePipeline that requires a manual approval step between test and deploy. The development team uses a custom chat tool that accepts webhooks and requires near-real-time pipeline status and approval notifications. How should the engineer configure notifications so pipeline state changes and approval requests are posted to the chat tool?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon EventBridge rule that matches CodePipeline Pipeline Execution State Change events, publish matched events to an SNS topic, and subscribe a Lambda (which posts to the chat webhook URL) to that SNS topic..
Why this is the answer
The correct solution leverages EventBridge for robust event matching and SNS for fan-out, with a Lambda function to handle the custom chat integration. EventBridge is the ideal service for reacting to AWS service events like CodePipeline state changes. Publishing to an SNS topic allows for multiple subscribers if needed in the future, and a Lambda function provides the flexibility to format the message and post it to the custom chat tool's webhook URL. Incorrect options: CloudWatch Logs subscriptions are for log data, not directly for service events like pipeline state changes, making it an inefficient and less direct approach. CloudTrail events are for API activity logging, not real-time pipeline state changes, and triggering Lambda directly from CloudTrail for this purpose is less efficient than using EventBridge. Modifying each pipeline to send events directly is not scalable or maintainable, as it requires changes to pipeline definitions and lacks a centralized event-driven architecture.
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