Review questions
- You have been asked to set up a CodeCommit repository for your organization for the development team. The developers need the ability to push commits to their branches but not merge commits to the main branch, nor push commits to the main branch. The project manager also needs to be notified whenever a merge or a commit to the main branch occurs. Which combination of steps will safeguard the master branch and send the notification in the shortest time possible?
a. Attach a resource policy to the CodeCommit repository that denies members of the IAM developer group actions of pushing commits, merging requests, and adding files to the main branch.
b. Affix an IAM policy to the developer IAM developer group that denies the actions of pushing commits, merging requests, and adding files to the main branch.
c. Configure AWS CloudTrail to send log events to send logs events to Amazon CloudWatch logs. Create a CloudWatch alarm based on a defined metric filter to identify...