Which backends support state locking?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Which backends support state locking?

Explanation:
State locking prevents concurrent writes to the Terraform state, protecting it from corruption when multiple operations run at the same time. Not all backends offer locking, and only some remote or integrated backends provide a locking mechanism (for example, S3 with a DynamoDB lock, Consul, or Terraform Cloud). Local backends do not support locking. Because locking is available only for certain backends, the correct idea is that state locking is supported by some backends.

State locking prevents concurrent writes to the Terraform state, protecting it from corruption when multiple operations run at the same time. Not all backends offer locking, and only some remote or integrated backends provide a locking mechanism (for example, S3 with a DynamoDB lock, Consul, or Terraform Cloud). Local backends do not support locking. Because locking is available only for certain backends, the correct idea is that state locking is supported by some backends.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy