← Quiz: Infrastructure as Code: all 10 questions
Quiz: Infrastructure as Code · Question 9 of 10
Why should terraform.tfstate never be committed to Git?
Why should terraform.tfstate never be committed to Git?
- A.It is too small
- B.Git cannot store JSON
- C.Terraform deletes it after every apply
- D.It can contain secrets and must be shared through a locked remote backend instead
Answer & explanation
Correct answer: It can contain secrets and must be shared through a locked remote backend instead
State may hold passwords and keys, and a copy in Git also causes conflicting versions.
Can you get the rest right without peeking?
Take the timed Quiz: Infrastructure as Code quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →