AWS Certified Cloud Practitioner / Question #1214 of 719

Question #1214

Which AWS service routes events to specified targets when an Amazon CloudWatch alarm changes state, based on defined rules?

A

AWS CloudTrail

B

Amazon Simple Notification Service (Amazon SNS)

C

Amazon Simple Queue Service (Amazon SQS)

D

Amazon EventBridge

Explanation

The correct answer is D. Amazon EventBridge.

Why EventBridge?
- EventBridge is designed to route events from AWS services (like CloudWatch alarms) to specified targets (e.g., Lambda, SNS, SQS) based on customizable rules. When a CloudWatch alarm changes state (e.g., from OK to ALARM), EventBridge detects this event and triggers actions according to predefined rules.
- Key Feature: EventBridge rules allow filtering and routing events to multiple targets, enabling complex workflows.

Why Other Options Are Incorrect:
- A. AWS CloudTrail: Tracks API activity for auditing, not event routing.
- B. Amazon SNS: Sends notifications to subscribers but lacks rule-based routing to multiple targets.
- C. Amazon SQS: Stores messages in queues for decoupled processing but does not handle event routing based on CloudWatch alarms.

Key Points:
- EventBridge is the primary service for event-driven architectures involving rule-based routing.
- CloudWatch alarms can trigger EventBridge rules, which then invoke targets like Lambda, Step Functions, or SNS topics.

Answer

The correct answer is: D