Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 80


You write a new Terraform configuration and immediately run terraform apply in the CLI using the local backend.

Why will the apply fail?

Show Answer
Correct Answer: B

When you write a new Terraform configuration, before you apply any changes, you must first run 'terraform init'. This command initializes your configuration by downloading and installing the necessary provider plugins and setting up the backend for state management. Without running 'terraform init' first, the 'terraform apply' command will fail because Terraform will not have the necessary plugins to understand and provision the defined resources.

Discussion

22 comments
Sign in to comment
nez15Option: B
Oct 29, 2022

Need to run Terraform Init first to install the plugins

campsOption: B
Sep 30, 2023

B. Terraform needs to install the necessary plugins first. When running terraform apply for a new Terraform configuration, Terraform needs to install the necessary provider plugins and any dependencies before it can create or modify any resources. Without the necessary plugins, Terraform cannot fully understand the resources that are defined in the configuration file.

vitasacOption: B
Nov 3, 2022

B For sure

EltoothOption: B
Dec 28, 2022

B is correct answer. You need to run terraform init before running apply.

LunarPhobiaOption: B
Jan 26, 2024

B. You need to run init for required plugins

shefulacertificari
Jul 20, 2024

Answer - B. You need to run 'terraform init' command first to initialize the terraform plugins.

bigboi23Option: B
Nov 18, 2022

terraform init. B

Roro_BrotherOption: B
Nov 19, 2022

B Off Course

bp339Option: B
Dec 4, 2022

B for sure

Ahmad_Terraform
Dec 30, 2022

B plugins first

Ahmad_Terraform
Jan 14, 2023

init required Terraform needs to install the necessary plugins first

karapet
Apr 30, 2023

First of all: terraform init

vadeemkaa
Jun 22, 2023

Answer B. terraform init

RybitskaOption: B
Sep 10, 2023

it's B

Power123
Sep 30, 2023

B is correct

Ni33Option: B
Nov 9, 2023

B for sure.

Sunrayk
Nov 12, 2022

B which is terraform init

softarts
Nov 16, 2022

it is B for sure

AnonymousOption: B
Dec 9, 2022

terraform init needs to be run first so it can download required modules and setup backend.

kopper2019
Feb 10, 2023

it is B

adoubanOption: B
Jun 12, 2023

B is the correct, terraform init to download required plugins

godie44Option: B
Oct 23, 2024

Has to run terraform init first