Exam Terraform Associate All QuestionsBrowse all questions from this 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?

    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
nez15Option: B

Need to run Terraform Init first to install the plugins

campsOption: B

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.

shefulacertificariOption: B

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

LunarPhobiaOption: B

B. You need to run init for required plugins

EltoothOption: B

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

Ni33Option: B

B for sure.

Power123Option: B

B is correct

RybitskaOption: B

it's B

vadeemkaaOption: B

Answer B. terraform init

karapetOption: B

First of all: terraform init

Ahmad_TerraformOption: B

init required Terraform needs to install the necessary plugins first

Ahmad_TerraformOption: B

B plugins first

bp339Option: B

B for sure

godie44Option: B

Has to run terraform init first

adoubanOption: B

B is the correct, terraform init to download required plugins

kopper2019Option: B

it is B

rfdOption: B

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