Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.2.3.1. Event-Driven, Asynchronous Design Patterns (S3 Events, EventBridge to SNS/Lambda)

3.2.3.1. Event-Driven Design Patterns for Monitoring

Event-driven monitoring replaces periodic polling with instant reaction. Instead of checking every 5 minutes, your system reacts the moment something happens.

Core pattern: Event Source → EventBridge Rule → Target (Lambda, SNS, SSM, Step Functions)

Common event-driven monitoring patterns:
Event SourceEventAutomated Response
EC2 state changeInstance terminated unexpectedlySNS alert + investigate via Lambda
Config ruleResource becomes non-compliantSSM Automation remediation
GuardDutyHigh-severity findingLambda isolates instance (modify SG)
Health DashboardService degradation in your regionTrigger DR failover runbook
CodePipelinePipeline execution failedSNS to Slack + create incident ticket
CloudTrailRoot login detectedSNS alert + Lambda disable root keys
# EventBridge rule pattern: match EC2 instance state changes
{
  "source": ["aws.ec2"],
  "detail-type": ["EC2 Instance State-change Notification"],
  "detail": {
    "state": ["terminated", "stopped"]
  }
}

EventBridge vs. CloudWatch Events: EventBridge is the evolution of CloudWatch Events — same API, more features. EventBridge adds custom event buses, schema registry, archive/replay, and third-party SaaS integrations. For the exam, treat them as the same service.

Exam Trap: EventBridge rules in one region only match events from that region. If you need to react to events in us-west-2 but your automation runs in us-east-1, you must either create rules in us-west-2 or use EventBridge cross-region event buses to forward events. A common mistake is creating a rule in the wrong region and wondering why it never triggers.

Alvin Varughese
Written byAlvin Varughese•Founder•15 professional certifications