nerdexam
Oracle

1Z0-1072-20 · Question #42

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…

Implement OCI Compute

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

(28 responses)
  • A
    11% (3)
  • B
    79% (22)
  • C
    7% (2)
  • D
    4% (1)

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

#Terraform#terraform plan#IaC#infrastructure preview

Community Discussion

No community discussion yet for this question.

Full 1Z0-1072-20 Practice