Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 118

You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.

Which Terraform command should you run first?

    Correct Answer: D

    When working with Terraform for the first time, the initial step is to run the 'terraform init' command. This command initializes the working directory containing Terraform configuration files, downloading necessary provider plugins and modules, and setting up the backend configuration. It prepares your environment for the subsequent execution of Terraform commands such as 'terraform plan' and 'terraform apply'.

Discussion
BurakkoOption: D

terraform init if you want to run it for the first time.

bora4motionOption: D

I go with D. init

kprodOption: D

D - init

090200fOption: D

keyword is for the first time: so terraform init is correct ans option : D

PikopoOption: D

D is correct

Ni33Option: D

If it is first time then Terraform init command.

Ravi528Option: D

First we should run terraform init

ManguuOption: D

This will initialize the working directory containing the TF config files

adoubanOption: D

Terraform init

legendary7Option: D

D You need to initialize so all the provider plugin and configurations dependencies get initialized