
Answer-first summary for fast verification
Answer: Use CloudWatch Event Rules
Overall explanation Correct option: Use CloudWatch Event Rules Amazon CloudWatch Events is a web service that monitors your AWS resources and the applications you run on AWS. You can use Amazon CloudWatch Events to detect and react to changes in the state of a pipeline, stage, or action. Then, based on rules you create, CloudWatch Events invokes one or more target actions when a pipeline, stage, or action enters the state you specify in a rule. Examples of Amazon CloudWatch Events rules and targets: A rule that sends a notification when the instance state changes, where an EC2 instance is the event source, and Amazon SNS is the event target. A rule that sends a notification when the build phase changes, where a CodeBuild configuration is the event source, and Amazon SNS is the event target. A rule that detects pipeline changes and invokes an AWS Lambda function. Incorrect options: Use CloudTrail Event rules with Amazon Simple Email Service (SES) - This is an incorrect statement. There is no such thing as CloudTrail Event Rule. Use Lambda function with Amazon Simple Notification Service (SNS) - Lambda functions can be triggered by the use of CloudWatch Event Rules as discussed above. AWS CodePipeline does not trigger Lambda functions directly. Use Lambda Event Rules - This is an incorrect statement. There is no such thing as Lambda Event Rule.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your organization employs developers who frequently merge code changes into an AWS CodeCommit repository. As part of your continuous integration and deployment pipeline, AWS CodeCommit serves as the source repository. You seek to establish a rule that triggers in response to any code changes detected in the AWS CodeCommit repository.
Which of the following options would you select to accomplish this type of integration?
A
Use Lambda Event Rules
B
Use Lambda function with Amazon Simple Notification Service (SNS)
C
Use CloudTrail Event rules with Amazon Simple Email Service (SES)
D
Use CloudWatch Event Rules
No comments yet.