Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 239


Before you can use Terraform’s remote backend, you must first execute terraform init.

Show Answer
Correct Answer: A

In Terraform, before you can make use of a remote backend, you need to initialize your working directory using the terraform init command. This command sets up the necessary configurations, downloads provider plugins, and prepares the backend for remote state storage. Without running terraform init first, Terraform would not be able to connect to the remote backend or perform other essential setup tasks.

Discussion

4 comments
Sign in to comment
zanhsieh
May 13, 2024

NEW QUESTION - While calling terraform validate, it will call the provider APIs to validate the code. A. True B. False I think it shall be A, although I got it wrong in the exam.

Foram31
Jun 18, 2024

terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc.

DataEngDP
Feb 4, 2025

Validate command only validates the configuration files, it will not access remote backend, APIs, etc

JhaggarOption: A
May 13, 2024

This command initializes a working directory containing Terraform configuration files, downloads provider plugins and sets up the backend for state storage. If the configuration files have changed, terraform init will also perform an update of the required provider plugins.

Oleg_golOption: A
May 6, 2024

A. True

FawadKOption: A
May 10, 2024

It's A. True