Question 485:
An AWS Chatbot client is configured in your AWS account that can send notifications to the Slack workspace of your team. The team starts to manage Git repositories in AWS CodeCommit. In order to monitor important changes of source code, you need to set up a rule to notify users whenever a pull request is created and merged in the repositories. The notifications should be sent to the Slack channel through the AWS Chatbot client. How would you create the notification?
Answer options:
A.Create a notification rule in the CodeCommit repository, select the pull request events, choose “SNS topic” in the target type and input the SNS topic ARN of the AWS Chatbot client. B.Create a notification rule in the CodeCommit repository, select the pull request events and in the notification target, choose the name of the AWS Chatbot client for the Slack workspace. C.Set up a new notification rule in the AWS Chatbot client for the pull request events of CodeCommit repositories and customize the events information in the rule. D.Create an SNS topic and include the CodeCommit pull request events in the topic. Subscribe the AWS Chatbot client ID to the SNS topic.