The Runtime Theory
mediumSystemInternals#explain-the-model#reason-about-tradeoffs

Explain Infrastructure Changes Need Reviewable State

Explain the model, execution steps, complexity, and limits of infrastructure changes need reviewable state.

TRT practice prompt — not a verified question from a named employer.

The Runtime Theory Team6 min read

Interview prompt

Explain infrastructure changes need reviewable state to an engineer who understands the surrounding system but has not used this technique. Walk from its contract to a concrete operation, then discuss where it fails or becomes expensive.

A strong answer

Infrastructure as code describes resources and their relationships in versioned files. A planning step compares the declared target with provider state and proposes changes. This makes infrastructure reviewable alongside application changes, but the plan is only as trustworthy as its inputs and state handling.

A change that adds a database replica can be reviewed for cost, networking, and failover consequences before apply. State records resource identities so the tool can update existing resources rather than create duplicates. Remote state storage and locking help teams coordinate concurrent changes.

A complete answer also calls out the assumptions that control correctness. Drift occurs when real infrastructure changes outside the declared workflow or provider state becomes stale. Applying a broad plan can replace resources or expose secrets if review misses destructive effects. Secrets should not be committed in plain text, and state files often contain sensitive values.

Close by describing one representative test or measurement. A plan proposes replacing a production database after a naming change. What should reviewers check before applying it, and how can resource identity be preserved?

Follow-up questions

Answer the follow-ups in the frontmatter. Use the linked article for the concept and the trace to make the explanation concrete.

This answer walks

Practice follow-ups

  1. 01Which assumption is essential for the approach to be correct?
  2. 02What is the worst case, and how does it change the resource cost?
  3. 03How would you adapt the design if the input or workload became much larger?
  4. 04What boundary test would give you the most confidence in the implementation?

One dispatch a week

The trace behind each question, the tradeoff that explains it, and one technical dispatch per week — no noise.

One technical dispatch per week. No noise.

Not started

Sign in to save your learning progress.

Sign in to save