
Answer-first summary for fast verification
Answer: Create an Amazon EventBridge rule that filters on CodePipeline Pipeline Execution State Change. Publish the 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 function to the SNS topic.
The DevOps engineer should configure status updates for pipeline activity and approval requests to post to the chat tool by creating an Amazon EventBridge rule that filters on CodePipeline Pipeline Execution State Change. These events should then be published to an Amazon Simple Notification Service (Amazon SNS) topic. An AWS Lambda function should be created to send event details to the chat webhook URL and subscribe this function to the SNS topic. Option C is the correct answer because it is the most efficient and effective way to ensure real-time notifications for the pipeline activities and approval requests. Option A is incorrect because using CloudWatch Logs for this purpose is not optimal. Option B is incorrect because using CloudTrail is not relevant for this specific use case. Option D is incorrect because modifying the pipeline code adds unnecessary complexity.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A DevOps engineer is tasked with constructing a multi-stage pipeline using AWS CodePipeline for an application that involves building, verifying, staging, testing, and deploying. There is a requirement for a manual approval stage to be inserted between the testing and deployment stages. The development team utilizes a custom chat tool that supports webhooks and needs near-real-time notifications for pipeline activities and approval requests. What is the most appropriate method for the DevOps engineer to configure these notifications to be sent to the chat tool?
A
Create an Amazon CloudWatch Logs subscription that filters on CodePipeline Pipeline Execution State Change. Publish subscription events to an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the chat webhook URL to the SNS topic, and complete the subscription validation.
B
Create an AWS Lambda function that is invoked by AWS CloudTrail events. When a CodePipeline Pipeline Execution State Change event is detected, send the event details to the chat webhook URL.
C
Create an Amazon EventBridge rule that filters on CodePipeline Pipeline Execution State Change. Publish the 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 function to the SNS topic.
D
Modify the pipeline code to send the event details to the chat webhook URL at the end of each stage. Parameterize the URL so that each pipeline can send to a different URL based on the pipeline environment.