TA-002-P · Question #380
Choose the answer that correctly completes the sentence: _______backends support state locking.
The correct answer is D. Some. Not all Terraform backends inherently support state locking; however, many remote backends offer this critical feature for collaborative environments.
Question
Choose the answer that correctly completes the sentence: _______backends support state locking.
Options
- AAll
- BNo
- COnly local
- DSome
How the community answered
(35 responses)- A9% (3)
- B3% (1)
- C3% (1)
- D86% (30)
Why each option
Not all Terraform backends inherently support state locking; however, many remote backends offer this critical feature for collaborative environments.
The local backend does not support state locking, meaning not all backends have this feature.
Many remote backends, like S3 or Azure Storage, do support state locking, so 'No' is incorrect.
The local backend is specifically one that does not support state locking, making this choice incorrect.
While the local backend does not support state locking, many remote backends, such as Amazon S3, Azure Blob Storage, HashiCorp Consul, and Terraform Cloud, explicitly support state locking to prevent concurrent operations from corrupting the state file.
Concept tested: Terraform backend state locking
Source: https://developer.hashicorp.com/terraform/language/settings/backends/locking
Topics
Community Discussion
No community discussion yet for this question.