TERRAFORM-ASSOCIATE-003 · Question #231
What is modified when executing Terraform in refresh-only mode?
The correct answer is C. Your state file. In refresh-only mode (terraform apply -refresh-only), Terraform updates the state file to match the actual infrastructure without modifying resources. A (Terraform configuration) - Not modified in refresh-only mode. B (Terraform plan) - Plan is generated but not modified. D…
Question
What is modified when executing Terraform in refresh-only mode?
Options
- AYour Terraform configuration.
- BYour Terraform plan.
- CYour state file.
- DYour cloud infrastructure.
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- C83% (19)
- D9% (2)
Explanation
In refresh-only mode (terraform apply -refresh-only), Terraform updates the state file to match the actual infrastructure without modifying resources. A (Terraform configuration) - Not modified in refresh-only mode. B (Terraform plan) - Plan is generated but not modified. D (Cloud infrastructure) - Not modified in refresh-only mode.
Topics
Community Discussion
No community discussion yet for this question.