DVA-C02 · Question #794
DVA-C02 Question #794: Real Exam Question with Answer & Explanation
The correct answer is C: Create an Amazon EventBridge rule for the CloudWatch alarm state change event. Configure the. CloudWatch alarm state changes are emitted as events that EventBridge can match. Creating a single EventBridge rule that matches the alarm state change event and targets the Lambda function automatically covers all alarms in the account without requiring per-alarm configuration,
Question
A developer for a company is configuring an AWS Lambda function to process monitoring alerts. The developer needs to use Amazon EventBridge to invoke the Lambda function when an Amazon CloudWatch alarm state changes to ALARM. The developer needs to ensure the Lambda function is invoked for all CloudWatch alarms in the company's AWS account. Which solution will meet these requirements with the MOST operational efficiency?
Options
- ASet the alarm action for all CloudWatch alarms to notify an Amazon SNS topic. Subscribe the
- BSet the alarm action for all CloudWatch alarms to invoke the Lambda function directly.
- CCreate an Amazon EventBridge rule for the CloudWatch alarm state change event. Configure the
- DCreate an Amazon EventBridge Scheduler rule to invoke the Lambda function on a regular
Explanation
CloudWatch alarm state changes are emitted as events that EventBridge can match. Creating a single EventBridge rule that matches the alarm state change event and targets the Lambda function automatically covers all alarms in the account without requiring per-alarm configuration, providing the highest operational efficiency.
Community Discussion
No community discussion yet for this question.