nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #85

You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?

The correct answer is C. Terraform needs to install the necessary plugins first. The reason why the apply fails after adding a new provider to the configuration and immediately running terraform apply in the CD using the local backend is because Terraform needs to install the necessary plugins first. Terraform providers are plugins that Terraform uses to inte

Submitted by eva_at· Apr 18, 2026Use Terraform CLI

Question

You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?

Options

  • AThe Terraform CD needs you to log into Terraform Cloud first
  • BTerraform requires you to manually run terraform plan first
  • CTerraform needs to install the necessary plugins first
  • DTerraform needs you to format your code according to best practices first

How the community answered

(34 responses)
  • A
    9% (3)
  • B
    3% (1)
  • C
    85% (29)
  • D
    3% (1)

Explanation

The reason why the apply fails after adding a new provider to the configuration and immediately running terraform apply in the CD using the local backend is because Terraform needs to install the necessary plugins first. Terraform providers are plugins that Terraform uses to interact with various cloud services and other APIs. Each provider has a source address that determines where to download it from. When Terraform encounters a new provider in the configuration, it needs to run terraform init first to install the provider plugins in a local directory. Without the plugins, Terraform cannot communicate with the provider and perform the desired actions.

Topics

#terraform init#provider installation#terraform CLI workflow#dependencies

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice