Which statement about the -out option used with terraform plan is true?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Which statement about the -out option used with terraform plan is true?

Explanation:
Saving the execution plan to a file is what the -out option enables. When you run a plan with -out, Terraform writes the exact set of proposed actions to a file. That plan can then be applied later by running terraform apply with the path to that plan file, ensuring you execute exactly what you approved. This is especially useful in automation or review workflows where you want to separate planning from applying and prevent drift between what was planned and what gets applied. The option is not about applying changes immediately, nor about increasing parallelism, nor about selecting which state file to use. Those are controlled by other flags and commands.

Saving the execution plan to a file is what the -out option enables. When you run a plan with -out, Terraform writes the exact set of proposed actions to a file. That plan can then be applied later by running terraform apply with the path to that plan file, ensuring you execute exactly what you approved. This is especially useful in automation or review workflows where you want to separate planning from applying and prevent drift between what was planned and what gets applied.

The option is not about applying changes immediately, nor about increasing parallelism, nor about selecting which state file to use. Those are controlled by other flags and commands.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy