Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 248


What features stops multiple users from operating on the Terraform state at the same time?

Show Answer
Correct Answer: C

State locking in Terraform is the feature that prevents multiple users or processes from simultaneously operating on the Terraform state file. This mechanism ensures that only one operation can modify the state at a time, thereby avoiding conflicts and ensuring the integrity of the state file.

Discussion

2 comments
Sign in to comment
Oleg_golOption: C
May 6, 2023

C. State locking

LemonadeSoftwareOption: C
Nov 15, 2023

C. State locking State locking in Terraform prevents multiple users or processes from simultaneously modifying the Terraform state file (terraform.tfstate). It ensures that only one operation (e.g., terraform apply or terraform destroy) can modify the state at a time, preventing conflicts in collaborative or automated environments.