ExamGecko
Question list
Search
Search

Question 135 - Terraform Associate 003 discussion

Report
Export

Which are forbidden actions when the terraform state file is locked? Choose three correct answers.

A.
Terraform state list
Answers
A.
Terraform state list
B.
Terraform destroy
Answers
B.
Terraform destroy
C.
Terraform validate
Answers
C.
Terraform validate
D.
Terraform validate
Answers
D.
Terraform validate
E.
Terraform for
Answers
E.
Terraform for
F.
Terraform apply
Answers
F.
Terraform apply
Suggested answer: B, C, F

Explanation:

The terraform state file is locked when a Terraform operation that could write state is in progress. This prevents concurrent state operations that could corrupt the state. The forbidden actions when the state file is locked are those that could write state, such asterraform apply,terraform destroy,terraform refresh,terraform taint,terraform untaint,terraform import, andterraform state *. Theterraform validatecommand is also forbidden, because it requires an initialized working directory with the state file. The allowed actions when the state file is locked are those that only read state, such asterraform plan,terraform show,terraform output, andterraform console.Reference= [State Locking] and [Command: validate]

asked 18/09/2024
lawrence Ajibolade
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first