ExamGecko
Question list
Search
Search

Question 182 - Terraform Associate 003 discussion

Report
Export

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

A.

terraform apply

Answers
A.

terraform apply

B.

terraform state list

Answers
B.

terraform state list

C.

terraform destroy

Answers
C.

terraform destroy

D.

terraform fmt

Answers
D.

terraform fmt

Suggested answer: A, B, C

Explanation:

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

asked 29/10/2024
Muhammad Imran Khan
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first