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
2 months 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
Elvera
23 days ago
We should be careful with those actions when the state file is locked.
upvoted 0 times
...
Lemuel
24 days ago
Yes, A, C, and D are the actions forbidden when the state file is locked.
upvoted 0 times
...
Anna
26 days ago
I know, it's frustrating when the state file is locked.
upvoted 0 times
...
...
Alyce
2 months 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
2 months 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
2 months 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
1 months ago
C) terraform destroy
upvoted 0 times
...
Jackie
1 months ago
B) terraform state list
upvoted 0 times
...
Karol
1 months ago
A) terraform apply
upvoted 0 times
...
...
Kate
2 months 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
Desmond
30 days ago
Virgina: Exactly, we need to make sure the state file is unlocked before making any changes.
upvoted 0 times
...
Lavonda
1 months 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
1 months ago
User 2: Yes, you're right. Those actions are forbidden when the Terraform state file is locked.
upvoted 0 times
...
Pok
1 months ago
User 1: I think A, C, and D are the correct answers.
upvoted 0 times
...
...
Lauryn
3 months ago
I think terraform fmt is not allowed when the state file is locked as well.
upvoted 0 times
...
Salome
3 months ago
I believe terraform destroy is also forbidden when the state file is locked.
upvoted 0 times
...
Adelina
3 months ago
I agree with Isabella. terraform apply should not be allowed when the state file is locked.
upvoted 0 times
...
Isabella
3 months ago
I think terraform apply is forbidden when the state file is locked.
upvoted 0 times
...

Save Cancel