Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam Terraform-Associate-003 Topic 3 Question 30 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 30
Topic #: 3
[All Terraform-Associate-003 Questions]

Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)

Show Suggested Answer Hide Answer
Suggested Answer: A, B, C

When the state file is locked, operations that modify or depend on the state (like terraform apply, terraform destroy, and terraform state list) are blocked. terraform fmt only formats the configuration files and does not interact with the state, so it is allowed.

References:

Terraform State Locking


Contribute your Thoughts:

Cora
15 days ago
Seriously, who keeps locking the state file? I'm just trying to do my job here. *sigh* Anyway, A, C, and D seem like the right answers.
upvoted 0 times
...
Alyce
19 days ago
This question is a real Terraform trap! I'd say A, C, and D are the winners. Can't mess with the state when it's on lockdown.
upvoted 0 times
...
Nida
21 days ago
Ah, the old locked state file trick. I bet the devs just want to make sure we don't accidentally delete the production environment. No pressure, though!
upvoted 0 times
...
Elroy
23 days ago
Hold up, I know B is allowed. Gotta check the state even if it's locked, right? Otherwise, how would I know what's going on?
upvoted 0 times
Wei
5 days ago
C) terraform destroy
upvoted 0 times
...
Jackie
7 days ago
B) terraform state list
upvoted 0 times
...
Karol
13 days ago
A) terraform apply
upvoted 0 times
...
...
Kate
28 days ago
Hmm, I think A, C, and D are the correct answers. Can't do anything that modifies the state file when it's locked!
upvoted 0 times
Lavonda
2 days ago
User 3: So, we should be careful not to run terraform apply, terraform destroy, or terraform fmt when the state file is locked.
upvoted 0 times
...
Virgina
7 days ago
User 2: Yes, you're right. Those actions are forbidden when the Terraform state file is locked.
upvoted 0 times
...
Pok
8 days ago
User 1: I think A, C, and D are the correct answers.
upvoted 0 times
...
...
Lauryn
2 months ago
I think terraform fmt is not allowed when the state file is locked as well.
upvoted 0 times
...
Salome
2 months ago
I believe terraform destroy is also forbidden when the state file is locked.
upvoted 0 times
...
Adelina
2 months ago
I agree with Isabella. terraform apply should not be allowed when the state file is locked.
upvoted 0 times
...
Isabella
2 months ago
I think terraform apply is forbidden when the state file is locked.
upvoted 0 times
...

Save Cancel