Question 1 · choose 1
An engineer working alone is adding a new subnet to a configuration in a Git repository. Which sequence follows the core Terraform workflow for an individual practitioner?
- AApply after every edit to see the result in the cloud, then write a plan at the end of the day for review
- BPush the commit, wait for the change to appear in the cloud, then run plan to confirm it
- CEdit the configuration and plan repeatedly, apply when the plan looks right, then push the commit
- DRun apply first so that state exists, then edit the configuration and plan the difference
Show the answer and why
AApply after every edit to see the result in the cloud, then write a plan at the end of the day for review
Incorrect
Applying each edit changes real infrastructure before any review; plans come before apply.
BPush the commit, wait for the change to appear in the cloud, then run plan to confirm it
Incorrect
Without HCP Terraform or CI connected, pushing a commit does not change any infrastructure.
CEdit the configuration and plan repeatedly, apply when the plan looks right, then push the commit
Correct
Individuals write configuration while running plans as a feedback loop, apply after a final plan review, and then push their repository to a remote.
DRun apply first so that state exists, then edit the configuration and plan the difference
Incorrect
An apply of an unedited configuration changes nothing useful; the loop starts with writing.
Write, plan, apply: the plan is both the feedback loop while writing and the final check before apply.
HashiCorp documentation