nerdexam
HashiCorp

TA-002-P · Question #327

Where can Terraform not load a provider from?

The correct answer is D. Source code. Terraform requires providers to be pre-compiled into binary plugins and cannot directly load a provider from its uncompiled source code.

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

Question

Where can Terraform not load a provider from?

Options

  • APlugins directory
  • BProvider plugin cache
  • COfficial HashrCorp distribution on releases, hashicorp.com
  • DSource code

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    3% (1)
  • D
    90% (36)

Why each option

Terraform requires providers to be pre-compiled into binary plugins and cannot directly load a provider from its uncompiled source code.

APlugins directory

Terraform can load provider plugins from a local plugins directory, such as `.terraform/providers`, where they are installed during `terraform init`.

BProvider plugin cache

Terraform utilizes a provider plugin cache to store downloaded plugins, allowing it to load them from the cache without re-downloading if available.

COfficial HashrCorp distribution on releases, hashicorp.com

Terraform loads official providers by downloading their compiled binaries from the official HashiCorp distribution hosted on `releases.hashicorp.com` during the `terraform init` process.

DSource codeCorrect

Terraform providers must be compiled into binary executables (plugins) before they can be loaded and used by Terraform; Terraform cannot directly load or execute provider source code files.

Concept tested: Terraform provider loading mechanism

Source: https://developer.hashicorp.com/terraform/cli/plugins/install-providers

Topics

#Provider loading#Terraform init#Plugins#Provider installation

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice