Here is a Terraform module. Five minutes: tell me what you look for, in the order you look for it, and why that order.
A strong answer gives an explicit order: reproducibility first, then secrets and destroy guards, then exposure, then stable keys, then style.
- severity ordering: States an explicit order — reproducibility (backend, locking, pinning), then leak-or-destroy risks (secrets, destroy guards, plan output), then exposure (0.0.0.0/0, public flags), then correctness under change (stable keys, data sources), then style — and says why each tier precedes the next.
- coverage: Remote backend with locking, pinned providers and modules with a committed lock file, no secrets in code or state, prevent_destroy and deletion protection on stateful resources, network exposure, for_each on stable keys, data sources over hard-coded ids, typed and validated variables and outputs; asks for plan output.
- communication: Tiered, each tier justified in a clause, ends with what should be automated versus what needs a human.
Interviewers are listening for an order and a reason for the order, because that reveals whether you review as a mechanism or as a reader. Reproducibility comes first because every later judgement assumes the reviewed plan is the plan that will apply. Leak-or-destroy risks come before exposure because they are irreversible. Style comes last and should mostly be automated. Asking for the plan output is the tell of someone who has been burned by a -/+ line nobody read.
Starting with formatting, naming, or 'does it apply cleanly'. A green validate and a sandbox apply prove it runs once for you today, not that it is safe when a teammate runs it, destroys it, exposes it, or changes its inputs.