Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 243


____________ backends support state locking.

Show Answer
Correct Answer: A

Some backends support state locking. This feature is used to ensure data consistency and prevent conflicts when multiple processes are accessing or modifying the state concurrently. Not all backends have this capability, so it is accurate to say that only some of them support state locking.

Discussion

4 comments
Sign in to comment
Oleg_golOption: A
May 6, 2023

Not all backends support locking. The documentation for each backend includes details about whether it supports locking or not. https://developer.hashicorp.com/terraform/language/state/backends

meetplanetOption: D
May 15, 2023

because it indicates that all backends support state locking. State locking is a mechanism used to control access to shared resources to ensure data consistency and prevent conflicts in concurrent or parallel systems.

meetplanet
May 15, 2023

Correct answer is A. sorry for the confusion.

ravi135
Feb 10, 2024

A is right

090200fOption: A
Jul 31, 2024

https://developer.hashicorp.com/terraform/language/state/backends Backends are responsible for storing state and providing an API for state locking. State locking is optional. Not all backends support locking. The documentation for each backend includes details about whether it supports locking or not. key word is not all. so only some backends supports state locking Some of these backends act like plain remote disks for state files, while others support locking the state while operations are being performed. This helps prevent conflicts and inconsistencies.