CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
  • Week 1
    • 1.DevOps as an Operating Model: The Five Axes of CALMS and the Truth DORA Proved Through Measurement
    • 2.Well-Architected Framework: Rereading It Through the Six Lenses of DevOps
    • 3.The AWS DevOps Tool Map: The Code* Series and the Real Picture Beyond It
    • 4.Multi-Account Strategy: The Real Picture of Organizations, Control Tower, and IAM Identity Center
    • 5.Week 1 Wrap-Up: Cementing the DevOps Thinking Frame with Scenarios
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
  • Week 12
    • 1.EventBridge: Event Bus Routing Model and the Nervous System of Asynchronous Automation
    • 2.SSM Automation: Operational Procedures as Code, and People Inside the Workflow
    • 3.Auto-Healing: The Control Theory of Automatic Recovery and the Safety Engineering That Stops Runaway Automation
    • 4.ChatOps and Incident Manager: The Boundary Where Automation Ends and the Human Organization Begins
    • 5.Week 12 Integrated Review: Wiring the Whole Nervous System of Incident Automation Together
  • Week 13
  • Week 14
  • Week 15
  • Week 16
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← DOP-C02/Week 12/Day 5

Based on the DOP-C02 exam guide·Report an error

DOP-C02· ProWeek 12 · Day 5~46 min read

Day 5 - Week 12 Integrated Review: Wiring the Whole Nervous System of Incident Automation Together

Over the past week we dissected the automation domain part by part: EventBridge as the nervous system, SSM Automation as procedures turned into code, Auto-healing as the reflexes, and ChatOps and Incident Manager as the touchpoint with the human organization. Today we reassemble these parts into one living organism. In real life, an incident never uses these components separately. One detection triggers automatic recovery, a failed recovery pages a human, the human coordinates through ChatOps, and when it is over, a postmortem feeds learning back into the cycle. You need to be able to draw this whole flow as a single picture in your head to solve the composite scenarios on the DOP exam.

The Core of Week 12 as a Single Flow

                    [Sense]
   CloudWatch Alarm · GuardDuty · EC2 StatusCheck · Synthetics
                          │
                          ▼
              [Routing - EventBridge Day 1]
       Event Pattern matching (decision tree, partial match, array=OR)
                          │
        ┌─────────────────┼──────────────────┬───────────────┐
        ▼                 ▼                  ▼               ▼
   [Simple auto-recovery] [Standard procedure] [Complex recovery] [Critical]
   Lambda Day 3     SSM Automation     Step Functions   Incident Mgr
   (isolate/restart) Runbook Day 2      (Saga, Day 3)    Day 4 (ICS)
   Cooldown·Bounded  aws:approve gate                    Escalation
   ·Idempotent                                          Timeline·PIR
        │                 │                  │               │
        └─────────────────┴──────────────────┴───────────────┘
                          ▼
              [Notify - Day 4]
   CodeStar Notifications → Chatbot(Slack) · PagerDuty(API Destination)
                          │
                          ▼
              [Learn]  Blameless postmortem · Game Day(FIS)
                          │
                          ▼ (feedback loop: add new patterns to the automated response)

The five stages in this picture, Sense → Route → Respond → Notify → Learn, are the skeleton of the whole of Week 12. Let us revisit the key point of each stage.

  1. EventBridge (Day 1): the nervous system of automation. It implements the message bus and Content-Based Router from EAI/EIP, cutting coupling so that senders do not know their receivers. Event Pattern matching is compiled into a decision tree (the quamina/Rete family) rather than compared sequentially, so it is fast regardless of the number of rules, and it has partial-match and array=OR semantics. Pipes (pipe-and-filter, eliminating polling glue), Scheduler (millions of schedules, and Flexible Time Window jitter prevents the thundering herd), Archive/Replay (event-sourcing reprocessing). Delivery is at-least-once, so consumers must be idempotent.

  2. SSM Automation (Day 2): operational procedures as code. You declare the procedure as a Runbook (aws:executeAwsApi, aws:invokeLambdaFunction, aws:approve) and insert a human gate into the workflow with aws:approve.

  3. Auto-healing (Day 3): the closed loop of control theory (MAPE-K). Lowering MTTR is more cost-effective than raising MTBF. The patterns are restart, replace, isolate, scale, failover, and circuit breaker. Prefer what is built into the platform (ASG ELB health check, StatusCheckFailed_System → ec2:recover). The three pillars of the safety net (Idempotent, Cooldown, Bounded Action) stop blast radius runaway (the lesson of the 2017 S3 incident), a Circuit Breaker cuts cascading failures, and FIS Game Days verify all of it.

  4. ChatOps & Incident Manager (Day 4): the touchpoint with the human organization. Chatbot (the SNS-to-Slack bridge, IAM Role ∩ Guardrail), CodeStar Notifications (the standard for pipeline notifications), Incident Manager (the Incident Command System codified: Response Plan, Escalation, Timeline, PIR), and API Destination (external SaaS integration).

  5. Learn: a blameless postmortem (the Swiss cheese model and Just Culture) turns data into learning and closes the feedback loop.

💡 Related theory: The whole of Week 12 is really one giant MAPE-K loop (IBM Autonomic Computing): Monitor (CloudWatch/GuardDuty) → Analyze (EventBridge pattern matching) → Plan (deciding which response path to send it down) → Execute (Lambda/SSM/Step Functions/Incident Manager), plus the Knowledge shared by all four (runbooks, postmortems, schema registry). If you understand things by which stage of this loop each service belongs to, instead of memorizing individual services, a scenario you have never seen decomposes easily: "this is a routing problem at the Analyze stage → EventBridge." And the learning stage updating Knowledge to improve the next loop is the essence of an autonomous system.

Decision Tree for Choosing a Component

The exam asks "which service fits this situation?" Let us sort out the confusing boundaries.

SituationAnswerWhy not the others
Precise content-based routing, branching to many AWS servicesEventBridge RuleSNS is coarse fan-out, SQS is a point-to-point queue
SQS/Kinesis polling → filter → enrich → targetEventBridge PipesRules are push-only and do not support polling sources
Per-user cron schedules for millions of usersEventBridge SchedulerCloudWatch cron hits the rule count limit
Simple isolate/restart auto-recoveryLambda (the 3 safety nets are mandatory)Unsuitable for complex branching
Recovery with branching, waiting, retries, and compensationStep Functions (Saga)Lambda has the 15-minute limit and loses state
Standard operating procedure + human approval gateSSM Automation Runbookaws:approve is the key
Recovery from underlying EC2 hardware failureStatusCheckFailed_System → ec2:recoverA hand-built Lambda is not verified
Automatic replacement of ASG instanceshealth-check-type ELB + Grace PeriodEC2 status alone cannot catch zombies
Pipeline failure Slack notification (standard)CodeStar Notifications + ChatbotA Lambda webhook is excessive glue
On-call escalation for Critical incidentsIncident Manager Escalation PlanNotifying everyone via SNS diffuses responsibility
EventBridge → authenticated delivery to an external SaaSAPI Destination + ConnectionCalling Lambda directly burdens you with plumbing

A consistent principle runs beneath this table: "the highest abstraction possible, as managed as possible." You could do the same job with Lambda, but if AWS offers a managed option (Pipes, Scheduler, ec2:recover, CodeStar Notifications, API Destination), use it. There are three reasons. (1) A verified safety net: for managed services, AWS has already verified retries, idempotency, and rate limits. (2) Less glue code: if you build it yourself, you must hand-manage the plumbing such as polling, batching, errors, and credential refresh. (3) Operational burden shifts: AWS takes on patching, scaling, and availability. The answer on the DOP exam almost always converges on "the managed option with the least operational overhead," and "build it all with Lambda" is usually a wrong-answer trap (it works, but it goes against the Operational Excellence pillar).

Anti-patterns in Integrated Scenarios

Finally, let us look at the common anti-patterns of assembling these components wrongly. The exam often asks "what is wrong?"

⚠️ Pitfall: The three major anti-patterns of integrated automation. (1) Missing idempotency: EventBridge and CloudWatch are at-least-once, so duplicates are delivered, and if the consumer is not idempotent you get double isolation and double billing. The answer to "events are occasionally processed twice" is almost always a missing idempotency in the consumer. (2) Infinite auto-recovery: repeating "restart → fail → restart" in an open loop (without checking the result), or running away without Cooldown and Bounded Action (2017 S3). (3) Automating irreversible actions: isolation (reversible) is fine to automate, but automating termination or deletion (irreversible) without a human gate permanently destroys data and evidence on a false positive. What prevents these three is idempotency, the three pillars of the safety net, and the aws:approve gate.

Summary

Week 12 stacked five layers (detection, routing, response, notification, and learning) under the single word "automation." The key insight is that these are not separate pieces but one closed feedback loop (MAPE-K); at each layer AWS presents "the most managed option" as the answer; and the safety of all automation rests on three principles: idempotency, blast radius limits, and gates on irreversible actions. We check this integrated picture with the 12 scenarios below.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

GuardDuty detected a Critical threat (a compromised EC2 instance communicating with a C2 server). You want to build a flow that automatically isolates the instance and takes a forensic snapshot, then runs termination only after operator approval. Which is the most suitable?

Question 2

You want to build a flow that polls messages from an SQS queue, does first-pass filtering with an event pattern, enriches the missing information through an external API, and stores the result in DynamoDB, all without glue code. Which is the most suitable?

Question 3

An auto-recovery Lambda isolates the same instance twice because of duplicate delivery of the same alarm, is triggered repeatedly at short intervals and exhausts resources, and touches too many instances at once. Which combination of safety nets stops the runaway?

Question 4

Every day at exactly 3:00 AM, 50,000 per-user backup jobs run simultaneously and the downstream collapses under the load. Also, there are hundreds of thousands of such per-user schedules, so you hit the CloudWatch cron rule count limit. What is the correct solution?

Question 5

In a Critical incident, if the primary on-call person does not respond within 30 minutes, you want to automatically page the secondary group, and if there is still no response, the manager, with the whole process recorded automatically on a timeline. What is the AWS-native solution?

Question 6

In Slack, you want operators to freely run diagnostic commands through Chatbot, but never be able to terminate prod EC2 instances or delete RDS even by mistake. You want to keep the IAM Role broad for operational convenience. What is the correct configuration?

Question 7

An EC2 instance is unresponsive because of a failure in the underlying host hardware. You want to recover it automatically onto healthy hardware while keeping the same IP, ENI, and EBS. What is the correct configuration?

Question 8

You want to build a recovery in which branching, waiting, retries, and compensation are intertwined: "RDS failover → wait for completion → cache invalidation → health check → on failure escalate to a human, on success report to Slack + create a ticket." Which is the most suitable?

Question 9

You want to announce CodePipeline failures to a Slack channel in the simplest, most standard way. Which is the most suitable?

Question 10

The operations team built auto-recovery logic, but when a real failure first occurred, it did not work because of a bug (like the restart path in the 2017 S3 incident). What is the standard approach for discovering such "rusty automation" in normal times?

Question 11

Payment events processed through EventBridge are occasionally processed twice, causing double billing. What are the root cause and the solution?

Question 12

You want to send incidents securely, with authentication, from EventBridge to an external SaaS (PagerDuty), without hand-coding credential refresh, rate limiting, retries, or secret management. Which is the most suitable?

🔜 Week 13 Preview

Resilience: DR and Multi-Region

If Week 12 was the nervous system that detects, recovers, and coordinates failures "within a single Region," Week 13 deals with what happens when that nervous system loses an entire Region: the mathematics of RTO/RPO, the cost-versus-recovery-time trade-offs of Backup, Pilot Light, Warm Standby, and Multi-Site Active/Active, Route 53 failover, and the consistency problems of cross-Region data replication. If Week 12's auto-recovery operated at the "node level," Week 13 is recovery at the "Region level."

PreviousChatOps and Incident Manager: The Boundary Where Automation Ends and the Human Organization BeginsWeek 12 · Day 4Next Multi-AZ High Availability: Distributed Principles Underlying Replication Consistency, Quorum, and FailoverWeek 13 · Day 1

Official references

  • DOP-C02 official exam page(opens in a new tab)
  • Amazon EventBridge documentation(opens in a new tab)
  • AWS Lambda documentation(opens in a new tab)
  • Amazon DynamoDB documentation(opens in a new tab)
  • Amazon EC2 documentation(opens in a new tab)
  • Amazon SQS documentation(opens in a new tab)

On this page

  • The Core of Week 12 as a Single Flow
  • Decision Tree for Choosing a Component
  • Anti-patterns in Integrated Scenarios
  • Summary
  • Practice Questions
  • Week 13 Preview