Incident Response and Operational Excellence
Overview
Technology fails; mature operations teams plan for it. Incident response is the practice of detecting, containing, resolving and learning from failures. Operational excellence (the first pillar of the AWS Well-Architected Framework) means running and monitoring systems to deliver business value and continuously improving procedures.
Consider a fire department. They do not wait for a fire to decide who does what: there are drills, checklists, a clear chain of command, post-incident reviews and a budget for better equipment. Your cloud operations need the same: runbooks, automation, drills and blameless reviews.
For SOA-C03 you should know AWS tools that support this – AWS Health, Systems Manager Incident Manager / OpsCenter, Service Quotas, Support plans, Config and CloudTrail – and the process around them.
Key Concepts
- Incident lifecycle: detect -> triage and severity -> contain/mitigate -> resolve -> post-incident review (blameless) -> improve.
- AWS Health Dashboard shows account-specific events (scheduled maintenance, instance retirement, service issues); events flow to EventBridge for notification and automation, and AWS Health Aware style aggregations cover Organizations.
- Systems Manager Incident Manager provides response plans, on-call schedules, escalation, chat channels and runbooks; OpsCenter tracks OpsItems.
- Support plans: Basic, Developer, Business (24x7, full Trusted Advisor, <1h production-down), Enterprise On-Ramp, Enterprise (TAM, <15 min business-critical). Case severities range from general guidance to business-critical down.
- Service Quotas shows and raises limits; alarms on usage (CloudWatch) prevent hitting quotas during growth.
- Change management: infrastructure as code, change sets, SSM Change Manager with approvals and Change Calendar freezes, canary / blue-green deployments, rollback plans.
- Well-Architected Framework pillars: Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability; use the Well-Architected Tool for reviews.
- Practice failure: game days, AWS Fault Injection Service (FIS) experiments, restore tests and DR drills.
Detailed Notes
Severity and response
| Severity | Example | Response |
|---|---|---|
| Sev1 | Full outage, data loss | Page on-call, open bridge, executive comms |
| Sev2 | Major feature degraded | Page on-call, mitigation within hour |
| Sev3 | Minor degradation | Ticket, next business day |
| Sev4 | Cosmetic / question | Backlog |
Always mitigate first (rollback, fail over, scale) and diagnose root cause afterwards.
Common mitigation moves
| Situation | Move |
|---|---|
| Bad deployment | Roll back (previous launch template, CloudFormation rollback, CodeDeploy rollback, Route 53 weighted back to blue) |
| Resource saturation | Scale out (ASG desired capacity), raise Lambda concurrency, add read replica |
| AZ impairment | Shift traffic away (ALB zonal shift, Route 53 ARC), ensure Multi-AZ |
| Region impairment | Fail over to DR Region per runbook |
| Compromised credentials | Disable keys, revoke sessions, rotate secrets, review CloudTrail |
| Accidental deletion | Restore from versioning/snapshots/PITR; check Recycle Bin |
Notifications from AWS Health
{
"source": ["aws.health"],
"detail-type": ["AWS Health Event"],
"detail": { "service": ["EC2"], "eventTypeCategory": ["scheduledChange"] }
}
Targets: SNS to the ops channel, or SSM Automation to stop/start affected instances ahead of a scheduled retirement.
Incident Manager response plan (concept)
aws ssm-incidents create-response-plan --name prod-outage \
--incident-template title="Prod outage",impact=1 \
--engagements arn:aws:ssm-contacts:us-east-1:111122223333:contact/oncall \
--actions '[{"ssmAutomation":{"documentName":"Custom-CollectDiagnostics","roleArn":"arn:aws:iam::111122223333:role/IncidentRole"}}]'
A CloudWatch alarm can start the response plan, paging on-call, creating a chat channel and running a diagnostics runbook automatically.
Zonal shift and ARC
ARC zonal shift temporarily moves ALB/NLB traffic away from an impaired AZ (and zonal autoshift can do it automatically). Use it when one AZ shows elevated errors while others are healthy.
Post-incident review template
- Summary and customer impact; timeline (use CloudTrail, Config, alarms).
- Detection: how and when did we notice? Could alarms be faster?
- Root cause and contributing factors (5 Whys); no blame.
- What went well / poorly / luck.
- Action items with owners and dates (alarm, runbook, automation, test).
Metrics for operations
| Metric | Meaning |
|---|---|
| MTTD | Mean time to detect |
| MTTR | Mean time to recover |
| Change failure rate | % of changes causing incidents |
| Availability / SLO burn | Error budget consumption |
Practise failure safely
{
"description": "Stop 20% of web instances",
"targets": { "web": { "resourceType": "aws:ec2:instance", "resourceTags": { "Role": "web" }, "selectionMode": "PERCENT(20)" } },
"actions": { "stop": { "actionId": "aws:ec2:stop-instances", "parameters": { "startInstancesAfterDuration": "PT10M" }, "targets": { "Instances": "web" } } },
"stopConditions": [{ "source": "aws:cloudwatch:alarm", "value": "arn:aws:cloudwatch:us-east-1:111122223333:alarm:web-5xx-high" }]
}
A stop condition aborts the experiment if customers are impacted.### Incident lifecycle and runbook design
| Phase | Actions | AWS tooling |
|---|---|---|
| Detect | Alarms, anomaly detection, GuardDuty | CloudWatch, EventBridge |
| Engage | Page responders, open channel | Incident Manager contacts, escalation plans, chat channels |
| Diagnose | Metrics, logs, traces, config history | CloudWatch, X-Ray, Config, CloudTrail |
| Mitigate | Rollback, scale, failover, isolate | SSM Automation, CodeDeploy, Route 53 |
| Review | Blameless post-incident analysis | Incident Manager analysis, action items |
aws ssm-incidents create-response-plan --name checkout-latency --incident-template title="Checkout latency",impact=2 \
--engagements arn:aws:ssm-contacts:us-east-1:111122223333:contact/oncall
aws ssm start-automation-execution --document-name AWSSupport-TroubleshootSSH --parameters InstanceId=i-0abc
aws ssm list-ops-items --ops-item-filters Key=Status,Values=Open,Operator=Equal
Write runbooks as SSM Automation documents so they are repeatable and auditable. Use OpsCenter to track operational work items with related resources and runbooks. Define severity levels, escalate after missed acknowledgement, and practice with game days or fault injection (AWS Fault Injection Service) before real incidents. Keep a rollback plan and known good AMI/template version for each release.
Real World Example
Scenario – a bad release at peak time. A deployment increases checkout latency; a CloudWatch alarm on p99 latency starts an Incident Manager response plan that pages the on-call engineer and opens a chat channel with a diagnostics runbook.
The engineer's first action is to roll back via the previous launch template (instance refresh) rather than debug live. Service recovers in 12 minutes. The blameless review finds missing canary deployment; action items add a CodeDeploy canary configuration, a pre-deployment synthetic test and a Change Calendar freeze for peak shopping days.
Architecture Diagram
- 1Alarms or AWS Health events detect a problem.
- 2EventBridge/Incident Manager engages on-call and starts diagnostics.
- 3The team mitigates quickly using rollback, scaling or failover runbooks.
- 4Evidence from CloudTrail/Config supports a blameless review and follow-up actions.
Best Practices
- ✓Write and rehearse runbooks; automate frequent steps with SSM Automation.
- ✓Mitigate first, investigate after; keep rollback paths tested.
- ✓Route AWS Health events and alarms to on-call and ticketing systems.
- ✓Hold blameless post-incident reviews and track action items to completion.
- ✓Monitor Service Quotas and run game days / FIS experiments regularly.
Common Interview Questions
Exam Tips
SOA-C03 focus
- Scheduled maintenance/retirement notices -> AWS Health (+ EventBridge).
- Business support plan gives 24x7 access and full Trusted Advisor; fastest production-down response needs Business or above.
- Quota near limits -> Service Quotas (alarms and increase requests).
- Operational Excellence pillar: runbooks as code, small reversible changes, learn from failure.
Finished this lesson?
0 of 46 lessons done · 0% of the course

