If supported by your backend, Terraform will lock your state for all operations that could write state. This prevents others from acquiring the lock and potentially corrupting your state.
Source: https://www.terraform.io/language/state/locking
Just passed the exam. There was a similar question not listed here on ExamTopic:
What backend types supports state locking?
A. local
B. None
C. All
D. Some
I chose D. Some as according to Hashicorp document: "Not all backends support locking"
Source: https://developer.hashicorp.com/terraform/language/state/backends
Blocks Terraform commands from modifying the state file. Since already one command is doing a modification and mutiple simultaneous writes can make it inconsistant
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Uma10
Highly Voted 1 year, 1 month agochael88
Highly Voted 8 months, 4 weeks agophidelics
7 months agoNi33
Most Recent 5 months, 2 weeks agoPower123
6 months, 3 weeks agoadouban
10 months, 2 weeks agobarracouto
1 year agosecdaddy
10 months, 3 weeks agoasudhin
1 year agolegendary7
1 year agoRVivek
1 year, 1 month agobora4motion
1 year, 1 month agoBurakko
1 year, 1 month ago