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 2 years, 2 months agochael88
Highly Voted 1 year, 9 months agophidelics
1 year, 8 months agoNi33
Most Recent 1 year, 6 months agoPower123
1 year, 7 months agoadouban
1 year, 11 months agobarracouto
2 years, 1 month agosecdaddy
1 year, 11 months agoasudhin
2 years, 1 month agolegendary7
2 years, 1 month agoRVivek
2 years, 2 months agobora4motion
2 years, 2 months agoBurakko
2 years, 2 months ago