exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 41 discussion

A DevOps engineer is building a multistage pipeline with AWS CodePipeline to build, verify, stage, test, and deploy an application. A manual approval stage is required between the test stage and the deploy stage. The development team uses a custom chat tool with webhook support that requires near-real-time notifications.
How should the DevOps engineer configure status updates for pipeline activity and approval requests to post 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
haazybanj
Highly Voted 2 years ago
Selected Answer: C
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. The events should be published to an Amazon Simple Notification Service (Amazon SNS) topic, and an AWS Lambda function should be created to send event details to the chat webhook URL. The function should be subscribed to the SNS topic. Option C is the correct answer. Option A is incorrect because it suggests using CloudWatch Logs instead of EventBridge, which is not the optimal solution for this use case. Option B is incorrect because it suggests using CloudTrail instead of CodePipeline events, which is not relevant. Option D is incorrect because modifying the pipeline code is not necessary and adds unnecessary complexity.
upvoted 14 times
...
YucelFuat
Most Recent 8 months, 1 week ago
Selected Answer: C
Exam Tip : If you see that question is related to an Event or Action --> EventBridge
upvoted 4 times
...
dzn
1 year, 2 months ago
Selected Answer: C
API calls related to AWS CodePipeline are logged by CloudTrail. However, changes to the execution state of CodePipeline are events, not API calls. These events can be captured via Amazon EventBridge.
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
C is correct: Use lambda to send event detail to the chat webhook url. Subcribe lambda to SNS topic A: Log subscription filer is for logging, not event B: Should not use lamda with cloudtrail events D: no need to modify pipeline code to send event at the end of each stage
upvoted 2 times
thanhnv142
1 year, 3 months ago
cloudtrail event cannot trigger lambda
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
A: no way to collect log from code pipeline
upvoted 1 times
...
...
madperro
1 year, 11 months ago
Selected Answer: C
C makes most sene.
upvoted 1 times
...
ele
2 years ago
Selected Answer: C
C right
upvoted 1 times
...
alce2020
2 years ago
Selected Answer: C
C it is
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago