Oracle Cloud Infrastructure 2019 Developer Associate — Question 121
What happens when you run terraform plan?
Answer options
- A. It configures, reconfigures, and instantiates resources and their dependencies.
- B. It shows the operator the course of action that would be taken if a change is applied.
- C. It deletes all existing resources and re-creates them.
- D. It shows a dependency graph.
Correct answer: B
Explanation
The correct answer is B because running 'terraform plan' provides a preview of the changes that will be made if the configuration is applied, without making any modifications. Options A and C are incorrect as they describe actions performed by other commands, and D, while related, does not represent the primary function of 'terraform plan'.