Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.
3.4. Reflection Checkpoint
Key Takeaways
- The core loop is write → init → plan → apply (with destroy to tear down);
initruns at setup and when dependencies change, not every iteration. fmtstandardizes style andvalidatechecks syntax/internal consistency — both are offline and neither guarantees a successful apply.planis read-only on infrastructure and previews the diff; saving a plan (-out) letsapplyenact exactly what you reviewed with no prompt.applyis the only command that changes real infrastructure and it updates state;destroyreverses creation in reverse-dependency order, scoped to managed resources.
Connecting Forward
You now know the commands; Phase 4 covers the language you feed them. We'll dig into the configuration itself — resources and data sources, references and dependencies, variables and outputs, complex types and functions, and the newer validation and sensitive-data features that 004 emphasizes. This is the largest objective on the exam.
Self-Check Questions
- Place each command on a spectrum from "changes nothing" to "changes real infrastructure":
fmt,validate,plan,apply,destroy. Justify the two endpoints. - A
planyou reviewed looked correct, but a later bareapplydid something different. What's the most likely cause, and what practice prevents it? - Explain why
validatecan succeed on a configuration thatapplythen fails to deploy.
Written byAlvin Varughese
Founder•18 professional certifications