nerdexam
HashiCorp

TA-002-P · Question #291

True or False? terraform init cannot automatically download Community providers.

The correct answer is B. True. The statement is True - terraform init cannot automatically download Community providers because they require an explicit source address declared in the required_providers block.

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

True or False? terraform init cannot automatically download Community providers.

Options

  • AFalse
  • BTrue

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    90% (36)

Why each option

The statement is True - terraform init cannot automatically download Community providers because they require an explicit source address declared in the required_providers block.

AFalse

It is not false - terraform init genuinely cannot automatically download community providers without an explicit source declaration, unlike official HashiCorp providers which follow a well-known default namespace.

BTrueCorrect

Community providers do not reside in the default HashiCorp namespace and cannot be auto-discovered by terraform init from provider usage alone. They must be explicitly declared with a full source address (e.g., registry.terraform.io/community-namespace/provider) in the required_providers block before terraform init can locate and download them.

Concept tested: Terraform community provider source addressing and auto-download limitations

Source: https://developer.hashicorp.com/terraform/language/providers/requirements

Topics

#terraform init#providers#community providers#provider installation

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice