TA-002-P · Question #206
What happens when a terraform apply command is executed?
The correct answer is B. Applies the changes required in the target infrastructure in order to reach the desired. terraform apply executes the changes defined in a Terraform plan to reach the desired state of the infrastructure. It provisions, modifies, or destroys resources as needed. Option A describes terraform plan, Option C describes terraform init, and Option D describes terraform refr
Question
What happens when a terraform apply command is executed?
Options
- ACreates the execution plan for the deployment of resources.
- BApplies the changes required in the target infrastructure in order to reach the desired
- CThe backend is initialized and the working directory is prepped.
- DReconciles the state Terraform knows about with the real-world infrastructure.
How the community answered
(59 responses)- A2% (1)
- B90% (53)
- C7% (4)
- D2% (1)
Explanation
terraform apply executes the changes defined in a Terraform plan to reach the desired state of the infrastructure. It provisions, modifies, or destroys resources as needed. Option A describes terraform plan, Option C describes terraform init, and Option D describes terraform refresh.
Topics
Community Discussion
No community discussion yet for this question.