ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

292 / 500

Question 292:

Company ABC used AWS CodeDeploy to deploy one web application to AWS services including EC2. CodeDeploy is running well however your manager wants to get in time notifications in Slack channel when a new deployment has succeeded or failed. You were told to implement this in AWS CloudWatch Events. The target of the Event rule would be a Lambda function that applies only to deployments. Which event pattern is correct for the rule? 

Answer options:

A.{
"source": [
"aws.codedeploy"
],
"detail-type": [
"CodeDeploy Deployment State-change Notification"
],
"detail": {
"state": [
"FAILURE",
"SUCCESS"
]
}
}
B.{
"source": [
"aws.codedeploy"
],
"detail-type": [
"CodeDeploy Instance State-change Notification"
],
"detail": {
"state": [
"FAILURE",
"SUCCESS",
"READY",
"START"
]
}
}
C.{
"source": [
"aws.codedeploy"
],
"detail-type": [
"AWS API Call via CloudTrail"
],
"detail": {
"state": [
"FAILURE",
"SUCCESS"
]
}
}
D.{
"source": [
"aws.codedeploy"
],
"detail-type": [
"CodeDeploy Instance State-change Notification"
],
"detail": {
"state": [
"FAILURE",
"START"
]
}
}