nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #116

Which of the following does terraform apply change after you approve the execution plan? (Choose two.)

The correct answer is A. Cloud infrastructure Most Voted D. State file. The terraform apply command changes both the cloud infrastructure and the state file after you approve the execution plan. The command creates, updates, or destroys the infrastructure resources to match the configuration. It also updates the state file to reflect the new state…

Use the core Terraform workflow

Question

Which of the following does terraform apply change after you approve the execution plan? (Choose two.)

Options

  • ACloud infrastructure Most Voted
  • BThe .terraform directory
  • CThe execution plan
  • DState file
  • ETerraform code

How the community answered

(36 responses)
  • A
    86% (31)
  • B
    3% (1)
  • C
    3% (1)
  • E
    8% (3)

Explanation

The terraform apply command changes both the cloud infrastructure and the state file after you approve the execution plan. The command creates, updates, or destroys the infrastructure resources to match the configuration. It also updates the state file to reflect the new state of the infrastructure. The .terraform directory, the execution plan, and the Terraform code are not changed by the terraform apply command.

Topics

#terraform apply#state file#infrastructure provisioning#execution plan

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice