1Z0-1072 · Question #2
What happens when you run terraform plan?
The correct answer is B. It shows the operator the course of action that would be taken if a change is applied. The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state specified in the configuration files. This command is a convenient way to check…
Question
What happens when you run terraform plan?
Options
- AIt configures, reconfigures, and instantiates resources and their dependencies.
- BIt shows the operator the course of action that would be taken if a change is applied.
- CIt deletes all existing resources and re-creates them.
- DIt shows a dependency graph.
How the community answered
(53 responses)- A13% (7)
- B77% (41)
- C6% (3)
- D4% (2)
Explanation
The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state specified in the configuration files. This command is a convenient way to check whether the execution plan for a set of changes matches your expectations without making any changes to real resources or to the state. For example, terraform plan might be run before committing a change to version control, to create confidence that it will behave as expected.
Topics
Community Discussion
No community discussion yet for this question.