Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 218


Which backend does the Terraform CLI use by default?

Show Answer
Correct Answer: D

By default, the Terraform CLI uses the local backend to store the state file. The local backend stores the state as a file on the local filesystem. This makes it simple to use and requires no additional configuration, suitable for initial setups and testing. For storing state remotely or collaboratively, you would have to explicitly configure a different backend like Terraform Cloud, S3, or Consul in your configuration files.

Discussion

5 comments
Sign in to comment
campsOption: D
Oct 1, 2023

D. Local By default, the Terraform CLI uses the local backend to store the state file. The local backend stores the state as a file on your local filesystem. If you want to use a different backend, such as a remote backend (e.g., Terraform Cloud) or other options like S3 or Consul, you need to configure the backend explicitly in your Terraform configuration files.

JhaggarOption: D
Nov 13, 2023

The Terraform CLI uses the local backend by default, which stores the state file on the local disk of the machine running Terraform.

SilentMilliOption: D
Sep 28, 2023

The Terraform CLI uses a local backend by default, which stores the state of your infrastructure in a local file named terraform.tfstate. This backend is simple to use and requires no additional setup, making it a good option for getting started with Terraform.

FarziWaliMarziOption: D
Oct 22, 2023

Local for sure

awsexamsOption: D
Jun 19, 2024

D. Local