open atlas
↑ Back to track
Deployment & Infra DEP · 05 · 08

Infrastructure as Code: free-recall review

Free-recall prompts across the IaC unit. Answer each in your own words first, then reveal the model answer and compare.

DEP Senior ◷ 14 min
Level
FoundationsJuniorMiddleSenior

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the mechanism stick when you are the one at the terminal.

Goal

Reconstruct the unit’s core mechanisms — declarative desired state and idempotency, the plan/apply diff engine, the state file as identity map and hazard, locking under concurrency, and drift handling — without looking back at the lesson.

Recall before you leave
  1. 01
    What does it mean that IaC is declarative, and why does idempotency fall out of that?
  2. 02
    Walk through what terraform plan actually does, and name its three inputs.
  3. 03
    Why is the state file both the source of truth and the biggest hazard?
  4. 04
    Why do concurrent applies corrupt state, and what exactly does a lock prevent?
  5. 05
    Define drift, the safe way to detect it, and the silent-revert trap.
  6. 06
    What is immutable infrastructure, and how does it relate to drift?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: declarative desired state makes apply idempotent; plan is a three-input diff engine (config, state, refreshed reality); the state file is the identity map that is also the hazard, so it lives locked and versioned and never carries secrets; concurrent writes corrupt state, which is why locking exists; and drift surfaces in plan but is reconciled silently, so you detect it with -refresh-only and decide intent before applying — leaning on immutable infrastructure so there is less to drift in the first place. Now when you open a plan and see an unexpected destroy or modification after an overnight incident, you will reach for -refresh-only before apply and ask who made that change and whether it should stay.

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.