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 Engineer Professional Test. Enhance your skills with flashcards and multiple-choice questions, each offering hints and explanations. Become exam-ready!

Practice this question and more.


How can you create notifications for CodeBuild events?

  1. Use Amazon SNS along with CloudWatch Events

  2. Directly through the CodeBuild console

  3. With AWS CloudTrail logs

  4. By sending emails through SES

The correct answer is: Use Amazon SNS along with CloudWatch Events

Creating notifications for CodeBuild events is effectively achieved by using Amazon Simple Notification Service (SNS) in conjunction with CloudWatch Events. This approach leverages the event-driven architecture of AWS, allowing you to respond to various events that occur in CodeBuild, such as the start and completion of build projects. When CodeBuild generates events, these can be captured and sent to CloudWatch Events, which then routes the event to an SNS topic. By subscribing to this SNS topic, you can receive notifications through various protocols, including SMS, email, or even HTTP endpoints. This method provides a versatile and scalable solution for monitoring build statuses and results across different AWS services. Other options, while perhaps feasible in some contexts, do not provide the same level of automation or integration. For instance, the CodeBuild console allows users to see build progress and results but does not facilitate automated notifications based on events. AWS CloudTrail logs record API calls, but they are primarily for auditing and not for immediate notifications about build status. Finally, sending emails through SES is a more manual and less integrated approach compared to the automation and event-driven nature of SNS with CloudWatch Events.