Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 42


Where does the Terraform local backend store its state?

Show Answer
Correct Answer: C

The local backend in Terraform stores its state in a file named terraform.tfstate. This file resides in the root directory of the Terraform project and contains a detailed representation of the managed infrastructure. Terraform uses this state file to map real-world resources to your configuration, keep track of metadata, and improve performance for large infrastructures.

Discussion

9 comments
Sign in to comment
mav3r1ckOption: C
Sep 1, 2022

C. https://www.terraform.io/language/settings/backends/local

gekkehenkOption: C
Mar 2, 2023

The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally. https://developer.hashicorp.com/terraform/language/settings/backends/local

root_i_amOption: C
Sep 15, 2022

The state is stored in the terraform.tfstate file in the root directory of the terraform project

kennynelconOption: C
Jan 16, 2023

C state.tf file

samkobadevOption: C
Feb 28, 2023

C. .tfstate file

Power123Option: C
Mar 30, 2023

C. terraform.tfstate

Ni33Option: C
May 1, 2023

C is the correct answer.

Ni33Option: C
May 9, 2023

C is the correct answer

090200fOption: C
Jul 10, 2024

terraform.tfstate , C is the correct ans