HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #44
What does state looking accomplish?
The correct answer is B. Blocks Terraform commands from modifying, the state file. This is what state locking accomplishes, by preventing other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss.
Submitted by asante_acc· Apr 18, 2026Manage Terraform State
Question
What does state looking accomplish?
Options
- APrevent accidental Prevent accident deletion of the state file
- BBlocks Terraform commands from modifying, the state file
- CCopies the state file from memory to disk
- DEncrypts any credentials stored within the state file
How the community answered
(30 responses)- A3% (1)
- B87% (26)
- C7% (2)
- D3% (1)
Explanation
This is what state locking accomplishes, by preventing other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss.
Topics
#State locking#Terraform state#Concurrency control#Remote state
Community Discussion
No community discussion yet for this question.