Question 2:
Your team has created a new deployment in AWS CodeDeploy service. It automates the deployments for a new Node.js application to Amazon EC2 instances. In order to pass a notification to a Slack channel whenever deployments fail, a DevOps engineer configured a CloudWatch Event rule as follows:
Answer options:
A.Replace the Lambda function with an SNS topic as the target of the CloudWatch Event rule. Create an HTTP endpoint to subscribe to the topic. B.Remove the detail-type in the rule in order to capture all CodeDeploy events. Add the logic in the Lambda function to determine the deployment failures and send notifications accordingly. C.Modify the detail-type to be "CodeDeploy Deployment State-change Notification” in the CloudWatch Event rule. D.Make sure that the Lambda function has an API gateway to allow the incoming API requests from events.amazonaws.com.