Q59 — AWS DOP-C02 Ch.3
Question 59 of 100 | ← Chapter 3
An AWS CodePipeline pipeline has been implemented to automate code releases. The pipeline integrates with AWS CodeDeploy to deploy each CodePipeline stage’s application version to multiple Amazon EC2 instances. During a recent deployment, the pipeline failed due to a CodeDeploy issue. The DevOps team wants to improve monitoring and notifications during deployments to reduce mean time to resolution (MTTR). How should the DevOps engineer configure notifications when issues are detected?
- A. Implement Amazon CloudWatch Logs for CodePipeline and CodeDeploy, create AWS Config rules to evaluate deployment failures, and create an Amazon Simple Notification Service (Amazon SNS) topic to notify stakeholders of deployment issues.
- B. Implement Amazon EventBridge for CodePipeline and CodeDeploy, create an AWS Lambda function to evaluate deployment failures, and create an Amazon Simple Notification Service (Amazon SNS) topic to notify stakeholders of deployment issues. ✓
- C. Implement AWS CloudTrail to log CodePipeline and CodeDeploy API calls, create an AWS Lambda function to evaluate deployment failures, and create an Amazon Simple Notification Service (Amazon SNS) topic to notify stakeholders of deployment issues.
- D. Implement Amazon EventBridge for CodePipeline and CodeDeploy, create an Amazon Inspector assessment target to evaluate deployment failures, and create an Amazon Simple Notification Service (Amazon SNS) topic to notify stakeholders of deployment issues.
Correct Answer: B. Implement Amazon EventBridge for CodePipeline and CodeDeploy, create an AWS Lambda function to evaluate deployment failures, and create an Amazon Simple Notification Service (Amazon SNS) topic to notify stakeholders of deployment issues.
Explanation
AWS CodePipeline and CodeDeploy emit events to Amazon EventBridge upon state changes—including deployment failures. EventBridge is the native, real-time event bus for reacting to such pipeline and deployment lifecycle events. A Lambda function triggered by EventBridge can parse failure details and publish alerts to an SNS topic. CloudTrail logs API calls but lacks real-time event semantics; CloudWatch Logs require custom parsing and lack native integration for pipeline state transitions; Amazon Inspector assesses security/compliance—not deployment status. Thus, EventBridge + Lambda + SNS is the most responsive, scalable, and purpose-built solution.