AWS DevOps Engineer Professional Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the AWS DevOps Engineering Test. Use flashcards and multiple-choice questions, each with hints and explanations. Ace your exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


To receive notifications for changes in a CodeCommit repository, what is the recommended AWS feature to implement?

  1. CloudFormation stack notifications

  2. CloudWatch Events rules

  3. AWS Config rules

  4. IAM notifications

The correct answer is: CloudWatch Events rules

Implementing CloudWatch Events rules is the recommended way to receive notifications for changes in a CodeCommit repository. CloudWatch Events allows you to monitor changes in AWS resources and automatically responds to events as they occur. When a change occurs in the CodeCommit repository, such as a commit or a pull request creation, it generates an event that can be captured by CloudWatch Events. You can then set up rules to route these events to triggers like SNS (Simple Notification Service) or Lambda, which can facilitate real-time notifications or further actions based on the event. This method provides a straightforward and efficient way to get alerts for repository activity, ensuring that team members are informed about key updates and changes. Other options do not align as directly with this use case. CloudFormation stack notifications mainly deal with changes in CloudFormation stacks rather than repository events. AWS Config rules are primarily used for compliance and monitoring configurations of AWS resources, not for direct notifications of CodeCommit activities. IAM notifications do not exist as a feature; IAM itself is about managing access and permissions for AWS resources, without a dedicated notification mechanism.