ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

302 / 500

Question 302:

Your team creates a new pipeline called myPipeline via AWS CodePipeline service. The pipeline includes several stages such as Source, Build, Test and Deploy. When the pipeline is executed, it may fail at a certain stage. You need to set up a CloudWatch Event rule to notify the DevOps team immediately whenever a pipeline stage has a failure. You have customized an event pattern in CloudWatch Event to match the CodePipeline events. Which of the following event patterns is the most appropriate?

Answer options:

A.{
"source": [
"aws.codepipeline"
],
"detail-type": [
"CodePipeline Stage Execution State Change"
],
"detail": {
"state": [
"FAILED"
],
"pipeline": [
"myPipeline"
]
}
}
B.{
"source": [
"aws.codepipeline"
],
"detail-type": [
"CodePipeline Pipeline Execution State Change"
],
"detail": {
"state": [
"FAILED"
]
}
}
C.{
"source": [
"aws.codepipeline"
],
"detail-type": [
"CodePipeline Action Execution State Change"
],
"detail": {
"state": [
"FAILED"
],
"pipeline": [
"myPipeline"
]
}
}
D.{
"source": [
"aws.codepipeline"
],
"detail-type": [
"AWS API Call via CloudTrail"
],
"detail": {
"eventSource": [
"codepipeline.amazonaws.com"
],
"pipeline": [
"myPipeline"
]
}
}