🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It is too small
  2. B.Git cannot store JSON
  3. C.Terraform deletes it after every apply
  4. 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 →