Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 259 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 259
Topic #: 1
[All Terraform Associate Questions]

Which of these actions will prevent two Terraform runs from changing the same state file at the same time?

  • A. Refresh the state after running Terraform
  • B. Delete the state before running Terraform
  • C. Configure state locking for your state backend
  • D. Run Terraform with parallelism set to 1
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
090200f
3 months, 3 weeks ago
Selected Answer: C
will prevent to change something in state file means state locking is the correct answer so option C is the correct answer
upvoted 1 times
...
DevoteamAnalytix
1 year, 5 months ago
Selected Answer: C
"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." https://developer.hashicorp.com/terraform/language/state/locking
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...