A company wants to shorten the time to develop new features. It uses CodeBuild and CodeDeploy to build and deploy applications and has a separate CodePipeline CI/CD pipeline per microservice. The company needs more visibility into metrics such as average time between feature releases and mean time to recovery after failed deployments. Which solution gives that visibility with the least configuration effort?
Choose an answer
Tap an option to check your answer.
Correct answer: Write a Lambda that emits custom CloudWatch metrics about successful and failed pipeline runs. Create EventBridge rules that invoke the Lambda after each successful run and after each failed run. Use the metrics to create a CloudWatch dashboard..
Why this is the answer
The correct solution uses EventBridge to trigger a Lambda function immediately after each successful or failed pipeline run. This ensures real-time capture of relevant events. The Lambda then emits custom CloudWatch metrics, which are ideal for tracking performance indicators like deployment frequency and mean time to recovery. CloudWatch dashboards can then easily visualize these metrics with minimal configuration. The incorrect options either poll for events (which is less efficient and real-time than event-driven triggers) or use DynamoDB and QuickSight. While DynamoDB and QuickSight are powerful, they introduce more complexity and configuration effort than directly leveraging CloudWatch for metrics and dashboards, which is designed for this type of monitoring.
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