Which backends support state locking?

Prepare for the HashiCorp Terraform Associate Exam. Utilize flashcards and multiple-choice questions with detailed hints and explanations. Boost your confidence and be ready for success!

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