TERRAFORM-ASSOCIATE-003 · Question #54
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
The correct answer is A. terraform plan -refresh-onlyly. This is the command that always causes a state file to be updated with changes that might have been made outside of Terraform, as it will only refresh the state file with the current status of the real resources, without making any changes to them or creating a plan.
Question
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Options
- Aterraform plan -refresh-onlyly
- Bterraform show -json
- Cterraform apply -lock-false
- Dterraform plan -target-state
How the community answered
(41 responses)- A78% (32)
- B7% (3)
- C2% (1)
- D12% (5)
Explanation
This is the command that always causes a state file to be updated with changes that might have been made outside of Terraform, as it will only refresh the state file with the current status of the real resources, without making any changes to them or creating a plan.
Topics
Community Discussion
No community discussion yet for this question.