In AWS Code Commit, a corporation has control over the source code for an application. Using AWS CodePipeline, the firm is developing a CI/CD pipeline for the application. When modifications are made to the main branch of the CodeCommit repository, the pipeline must begin automatically. Because changes occur on a daily basis, the pipeline must be as responsive as feasible. <br>
What should a DevOps engineer do to achieve these requirements?
-
A
Configure the repository to publish a notification to an Amazon Simple Notification Service (Amazon SNS) topic when changes occur to the repository's main branch. Subscribe the pipeline to the SNS topic.
-
B
Configure the repository to periodically run an AWS Lambda function. Configure the function to check the repository's main branch and to start the pipeline when the function detects changes.
-
C
Configure an Amazon EventBridge (Amazon CloudWatch Events) rule to detect changes to the repository's main branch. Configure the pipeline to start in response to the changes.
-
D
Configure the pipeline to periodically check the repository's main branch for changes. Start the pipeline when changes are detected.