Q39 — AWS DOP-C02 Ch.3

Question 39 of 100 | ← Chapter 3

A DevOps engineer is using AWS CodePipeline to build a multi-stage pipeline for building, validating, staging, testing, and deploying applications. A manual approval stage is required between the test and deploy stages. The development team uses a chat tool with webhook support that requires near real-time notifications. How should the DevOps engineer configure channels to deliver pipeline activity and approval request status updates to the chat tool?

Correct Answer: C. Create an Amazon EventBridge rule to filter CodePipeline execution status changes. Publish events to an Amazon Simple Notification Service (Amazon SNS) topic. Create an AWS Lambda function that sends event details to the chat webhook URL. Subscribe the Lambda function to the SNS topic.

Explanation

Amazon EventBridge rules monitor AWS service events, such as CodePipeline execution status changes. Upon detection, events are routed to an Amazon SNS topic. A Lambda function subscribes to that topic, processes event data, and invokes the chat tool’s webhook URL. Option C correctly combines EventBridge, SNS, and Lambda to implement a real-time notification flow. Option A relies on log subscriptions, potentially introducing latency; Option B uses CloudTrail event tracking, which is less direct than EventBridge; Option D modifies pipeline code, increasing maintenance overhead.