TERRAFORM-ASSOCIATE-004 · 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 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 of
Question
Options
- ACloud infrastructure
- BThe .terraform directory
- CThe execution plan
- DState file
- ETerraform code
How the community answered
(32 responses)- A94% (30)
- B3% (1)
- C3% (1)
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
Community Discussion
No community discussion yet for this question.