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 26 discussion

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

When should you use the force-unlock command?

  • A. You see a status message that you cannot acquire the lock
  • B. You have a high priority change
  • C. Automatic unlocking failed
  • D. You apply failed due to a state lock
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
Egger1992
Highly Voted 2 years, 6 months ago
Selected Answer: C
Be very careful with this command. If you unlock the state when someone else is holding the lock it could cause multiple writers. Force unlock should only be used to unlock your own lock in the situation where automatic unlocking failed. Source: https://www.terraform.io/language/state/locking
upvoted 24 times
...
SilentMilli
Highly Voted 1 year, 8 months ago
Selected Answer: C
The force-unlock command should be used when you need to manually release a Terraform state lock that cannot be released by other means. This command is typically used in scenarios where a Terraform command was interrupted, and the lock was not released automatically. Using the force-unlock command will forcibly release the lock, but it may leave the Terraform state in an inconsistent state, so it should be used with caution. Therefore, the correct answer is: C. Automatic unlocking failed
upvoted 7 times
...
enook
Most Recent 10 months, 3 weeks ago
Selected Answer: C
C for sure
upvoted 1 times
...
karendavtyan
1 year, 6 months ago
Selected Answer: C
C. Automatic unlocking failed
upvoted 1 times
...
Ni33
1 year, 6 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
chimons
1 year, 11 months ago
Selected Answer: C
C. Force unlock should not be used under normal circumstances
upvoted 1 times
...
ceros399
2 years, 2 months ago
Selected Answer: C
answer is c
upvoted 1 times
...
Eltooth
2 years, 4 months ago
Selected Answer: C
C is correct answer. https://www.terraform.io/language/state/locking https://www.terraform.io/cli/commands/force-unlock
upvoted 3 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 ...