Let’s Get Certified
Module 16 / 20 · Incident and event response

Make automatic remediation safe to repeat

Validate current resource state and bound the action before changing configuration.

Make automatic remediation safe to repeat

An incident event describes the resource when the event occurred. Re-read its current configuration before making a change. Limit the automation role to the approved action and resource scope. Add approval for consequential changes. Test in a small target set before enabling a fleet-wide policy.

A redelivered event can repeat a side effect. Use a durable operation key plus a conditional claim, track progress and design for a crash after the external action but before confirmation. Prefer idempotent destination APIs and reconciliation of uncertain outcomes. Verify the original violation cleared and the application remains healthy.

Worked case 1

The alarm recovered before a delayed event reached the remediation runbook. What should the runbook do?

Check your reasoning

Read the resource again and exit when the remediation precondition no longer holds. Record the decision so an operator can explain the skipped change.

Worked case 2

A function applies a change, times out and receives the same event again. How can the second attempt avoid applying the change twice?

Check your reasoning

Check current state and a durable operation record, using destination idempotency where supported. Reconcile an unknown result before issuing another change.

Make retries safe with idempotent APIs

Official DOP-C02 skills for this topic

Related lesson in AWS Certified CloudOps Engineer – Associate. Turn a signal into a controlled recovery action.

Practice with the recording

AWS Config flags an old instance as noncompliant after it has already been replaced. How should the runbook behave?

Check your reasoning

Re-read the resource identity, current configuration and ownership before acting. Stop cleanly if the resource has disappeared or already complies. Bound retries and retain the execution record so repeated evaluations cannot trigger repeated changes.

sthithapragna · DOP-C02 full course · 5:38:50

Knowledge check

Make automatic remediation safe to repeat quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Event age