CURRICULUM PREVIEWRevision 1 · Open for reviewReview the full course
CONNECTING THE PIECES8 min read

Drift and idempotent configuration

Converge repeatedly without repeated disruption.

Before you begindsc-get-test-set

The idea

Drift is the difference between desired and observed state. An idempotent resource should converge to the same state when applied repeatedly. A script that restarts a service on every run may reach the desired state while still causing unnecessary disruption. Measure both state and side effects.

Follow the flow

Make it concrete

This excerpt isolates the concept. Connect it to the booking API as you work through the exercise.

Focused example
text
Baseline: set → test says in desired state
Repeat: set → no unnecessary change
Introduce drift in the disposable lab
Observe: test detects the mismatch
Repair: set → test confirms convergence

Decisions that matter

  • A drift report needs a known desired version to be meaningful.
  • Automatic remediation can repeat a bad configuration; stage and review changes.
  • Detecting drift and choosing to repair it are separate policy decisions.

Your turn

Design evidence that a resource is idempotent rather than merely successful twice.

Reveal a worked answer

Record resource state, reported changes, and relevant side effects across two applications. The second should not repeat destructive or disruptive work. Introduce controlled drift and confirm one repair followed by a stable repeat.

Keep exploring

One more piece connected.

Mark this lesson complete when you can explain the idea.