Skip to main content
In this lesson we cover the AWS service ecosystem most relevant to incident response. Grouping services by purpose—detection, processing, notification, remediation, and investigation—helps you design reliable, scalable response systems. Below we explain when to use each service, common integration patterns, and operational limits you should know for both exam-style questions and real-world architectures.
This guide groups AWS services by their role in incident response (Detect → Process → Notify → Remediate → Investigate) and highlights integration patterns, service limits, and cross-account considerations to help you design robust systems.

Detection (signals and events)

The detection layer captures signals that an incident may be occurring — from AWS service health to API activity, metrics, and logs. Primary services:
  • AWS Health — official source for AWS service and account-level health notifications.
  • Amazon EventBridge — event routing and bus for AWS service events and custom events; supports rule-based routing and filtering.
  • AWS CloudTrail — records management API activity (and optional data events) for auditing and forensics.
  • Amazon CloudWatch — metrics and logs; use AWS X-Ray for distributed tracing and ServiceLens for combined diagnostics.
Detection typically relies on two dashboard types: global service status (AWS Health) and account-level observability (CloudWatch/CloudTrail/EventBridge). Design detection with multi-region and per-region limits in mind to achieve scale and resilience.
A presentation slide titled "Event Source Service Limits" showing five colorful rounded boxes. Each box lists AWS limits: AWS Health API Calls (∞), EventBridge Rules (10K), Multi-Region Trail (01), CloudTrail Trails (05), and CloudWatch Alarms (5K).

Warning about latency and real-time requirements

CloudTrail delivery to S3 is useful for auditing and post-incident forensics but introduces delivery latency (commonly 5–15 minutes). For near real-time or sub-second detection and response, prefer EventBridge or streaming services such as Kinesis.
CloudTrail → S3 typically has multi-minute delivery latency (about 5–15 minutes). For sub-second or near real-time incident response, use EventBridge or streaming services like Kinesis.

Processing (event handling and compute)

Event-driven compute and orchestration services implement the processing and remediation steps once a signal is detected:
  • AWS Lambda — serverless compute for short-lived custom remediation and processing (max timeout: 15 minutes).
  • AWS Step Functions — stateful orchestration for multi-step workflows, approvals, and human-in-the-loop flows.
  • Amazon SQS — managed queuing for buffering asynchronous work and decoupling producers/consumers.
  • Amazon Kinesis Data Streams — high-throughput, real-time stream processing for large event volumes.
Best practices:
  • Use Lambda for short, idempotent tasks and quick remediations (<= 15 minutes).
  • Use Step Functions for complex, long-running, or approval-based workflows.
  • Use Kinesis when you require scalable, ordered, low-latency stream processing that exceeds EventBridge scale or requires retention.

Notification (fan-out and alerting)

Notification services deliver alerts to operators, on-call systems, and downstream automation:
  • Amazon SNS — multi-protocol pub/sub with delivery to Email, SMS, HTTPS, Lambda, SQS, and mobile push; supports subscription filtering and retries.
  • Amazon EventBridge — advanced event routing to many target types; preferred for complex routing at scale.
  • Amazon SES — optimized for high-quality email delivery (transactional or bulk) and formatted content; use when email is the primary delivery channel.
Use SNS for simple multi-protocol fan-out and EventBridge for richer routing, transformation, and scale.
A presentation slide titled "Notification Services – Amazon SNS" with a pink notification/routing icon on the left. The slide lists SNS features: multi-protocol notification delivery, supported protocols (Email, SMS, HTTPS, Lambda, SQS, mobile push), and message filtering for routing.
A presentation slide titled "Notification Services – Amazon SES" showing a red icon of an email with a distribution diagram and a note saying "Email-only notification is optimized for detailed reports and formatted content." The slide also shows a © Copyright KodeKloud mark.

Automated remediation (runbooks and enforcement)

Automated remediation typically combines runbook tools and custom compute:
  • AWS Systems Manager Automation — authorable runbooks for operational tasks and remediation.
  • AWS Config Remediation — detects compliance drift and invokes remediation playbooks.
  • AWS Lambda / Step Functions — implement custom remediation logic, approval gates, or complex state machines.
Notes:
  • Lambda is common for custom remediation but remember the 15-minute execution limit.
  • For human approval workflows, Step Functions can orchestrate approvals using SNS or Systems Manager integration.
A presentation slide titled "Automated Remediation Services" showing three AWS service icons and headings: AWS Systems Manager Automation, AWS Config Remediation, and AWS Lambda. Each column lists short feature points and limits (automation docs, compliance enforcement/ retry logic, approval workflows, 15-minute timeout, $0.20 per 1M requests, etc.).

Investigation and analysis (forensics and diagnostics)

Tools for deeper investigation and post-incident analysis:
  • CloudWatch Logs Insights — ad-hoc, fast log queries and analytics.
  • AWS X-Ray — distributed tracing for request flows, dependency mapping, and latency analysis.
  • Systems Manager OpsCenter — centralized operational items and remediation tracking.
  • CloudWatch ServiceLens — integrates metrics, logs, and traces for service-level diagnostics.
  • Other options: OpenSearch for log analytics and Amazon Security Hub for aggregated security findings.
Use these tools together for rapid root-cause analysis and to support incident post-mortems.
A presentation slide titled "Investigation and Analysis Services" showing four AWS service icons and brief feature bullets. The services listed are CloudWatch Logs Insights, AWS X‑RAY, Systems Manager OpsCenter, and CloudWatch ServiceLens.

Service integration patterns (common end-to-end flows)

These patterns combine the services above into reliable end-to-end incident response pipelines:
  • Event-driven remediation:
    • Source event (e.g., AWS Config) → EventBridge rule → Systems Manager Automation or Lambda → CloudWatch Logs captures results → OpsCenter tracks lifecycle.
  • Fan-out notifications:
    • Alarm → SNS topic → multiple subscribers (e.g., PagerDuty, Lambda, SQS, email, SMS).
  • Approval workflows:
    • EventBridge → Step Functions (notify human approver via SNS) → upon approval, Systems Manager Automation or Lambda executes remediation.
  • High-volume processing:
    • CloudTrail (or other producer) → EventBridge → Kinesis Data Streams → multiple Lambda consumers → aggregated results stored in DynamoDB → visualized in CloudWatch dashboards.
A slide titled "Service Integration Patterns" showing a high-volume event-processing flow: CloudTrail → EventBridge → Kinesis Data Streams → multiple Lambda consumers → DynamoDB aggregates → CloudWatch dashboard for visualization.

Operational considerations

Key operational topics to plan for early:
  • Permissions and cross-account access: design assume-role flows and resource policies for EventBridge, Lambda, Systems Manager, and SQS in cross-account architectures.
  • Service quotas and concurrency limits: watch Lambda concurrency, Systems Manager throughput, EventBridge rules, and Kinesis shard throughput.
  • SQS FIFO throughput: nominally limited to 300 transactions per second without batching; batching increases effective throughput.
  • Logging retention and tiering: implement hot → warm → cold tiers (e.g., CloudWatch Logs → S3 Glacier) to control cost and query performance.

Cross-account and cost considerations

Centralizing telemetry and choosing efficient cross-account integrations can reduce cost and simplify operations:
  • Centralized logging: consolidate logs into a single S3 bucket or logging account to reduce duplication and centralize retention/archival policies.
  • Cross-region costs: cross-region CloudWatch data transfer and storage can add costs — design region placement carefully.
  • EventBridge cross-account: EventBridge cross-account delivery within the same region does not incur additional transfer charges and can be a cost-effective backbone for aggregation.
A slide titled "Cross-Account Architecture Considerations – Cost Optimization" showing three colored cards: Centralized Logging, Cross-Region Charges, and EventBridge Cross‑Account. Each card gives cost tips (consolidate logs to one S3 bucket, CloudWatch cross‑region transfer ≈ $0.01/GB, and no extra charge for cross‑account EventBridge within the same region).

Service selection decision table (quick reference)

Service limits and notable constraints

  • Lambda maximum execution time: 15 minutes.
  • CloudTrail → S3 delivery latency: typically 5–15 minutes (not suitable for real-time reaction).
  • EventBridge rules: regional quota commonly 10,000 rules per account (check current limits).
  • CloudWatch Alarms: quota examples shown in service documentation and images (e.g., 5K example).
  • SQS FIFO throughput: ~300 TPS without batching; batching increases effective throughput.

Key takeaways

  • Incident response architectures map naturally to five roles: detection, processing, notification, remediation, and investigation.
  • Choose EventBridge and Kinesis for real-time routing and streaming; use SNS or SES for notification depending on protocol and formatting needs.
  • Know key limits up front: Lambda 15-minute timeout, CloudTrail-to-S3 latency, EventBridge and CloudWatch quotas, and SQS FIFO throughput constraints.
  • Design cross-account permissions and centralized telemetry early to simplify operations and control costs.
  • Implement log retention tiers (hot → warm → cold) to optimize cost, access latency, and query performance.
This completes the lesson on incident response and automated remediation with AWS services.

Watch Video