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.
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)- A5% (2)
- B3% (1)
- C3% (1)
- D90% (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.
Terraform can load provider plugins from a local plugins directory, such as `.terraform/providers`, where they are installed during `terraform init`.
Terraform utilizes a provider plugin cache to store downloaded plugins, allowing it to load them from the cache without re-downloading if available.
Terraform loads official providers by downloading their compiled binaries from the official HashiCorp distribution hosted on `releases.hashicorp.com` during the `terraform init` process.
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
Community Discussion
No community discussion yet for this question.