Infrastructure as Code & Configuration
38 questionsDONEUNLOCKEDLOCKED
Terraform & Infrastructure as Code Interview Questions
Terraform and OpenTofu state, remote backends and locking, drift detection, count versus for_each, module design, lifecycle blocks, Ansible idempotence, and the BUSL license split every interviewer now probes.
Grounded in researched DevOps, SRE and platform engineering interview loops, written to a senior-engineer editorial bar, and never padded to hit a word count.
You have 10 free answers unlocked here.Sign in free for 10 more · 18 are premium.
01–16Foundationsthe words and mechanisms every loop takes as given0/16 done
17–30Core loopsthe questions every loop actually asks0/14 done
31–38Field scenariosthe half-specified problems a real estate throws at you0/8 done
The concepts behind Infrastructure as Code & Configuration
The ideas from the curriculum that these questions take as given. The foundations are open to everyone; the ones that decide a senior round sit behind Premium.
Core
State and drift: why infrastructure as code needs a ledgerTerraform state is not a cache and not an optimisation. It is the mapping between the names in your configuration and the identifiers in the provider, and without it there is no way to know whether a resource in your code is the same resource that exists in the cloud. Every confusing Terraform behaviour, from destroy and recreate to import, follows from what state is for.Sign in
Foundational
Immutable infrastructure, and the replacement nobody planned forImmutability means a change produces a new resource rather than an edited one, which supports reproducibility when definitions and inputs are controlled. It also means some innocuous-looking edits destroy and recreate a live resource, and knowing which ones is the difference between a routine plan and an outage.