Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 54


Terraform providers are always installed from the Internet.

Show Answer
Correct Answer: B

Terraform providers are not always installed from the Internet. Terraform can fetch providers from multiple sources, including a local mirror or cache, or even a local path specified in the configuration. This is particularly useful in air-gapped environments where internet access is restricted. Therefore, the statement 'Terraform providers are always installed from the Internet' is false.

Discussion

11 comments
Sign in to comment
amrith501Option: B
Jun 16, 2022

For air gapped systems, we can bundle provider along with the Terraform binaries. These Bundle can be installed without internet on air gapped system. NOTE: For downloading the bundle we need internet access, this can be done on a system which as internet access and later transfer to the air gapped system

bigboi23Option: B
May 18, 2022

Terraform CLI finds and installs providers when initializing a working directory. It can automatically download providers from a Terraform registry, or load them from a local mirror or cache. If you are using a persistent working directory, you must reinitialize whenever you change a configuration's providers.

vikramvlrOption: B
Dec 13, 2022

Answer is B. Terraform CLI finds and installs providers when initializing a working directory. It can automatically download providers from a Terraform registry, or load them from a local mirror or cache. If you are using a persistent working directory, you must reinitialize whenever you change a configuration's providers.

BereOption: B
Aug 7, 2023

Terraform providers are not always installed from the Internet. While Terraform does fetch providers from the HashiCorp Terraform Registry by default, it also allows for the usage of providers from other sources or even local sources. Here's an example: terraform { required_providers { aws = { source = "hashicorp/aws" version = "2.70.0" } custom-provider = { source = "/path/to/local/custom-provider" } } } provider "aws" { region = "us-west-2" } provider "custom-provider" { # Configuration for the custom provider } In this example, the AWS provider is fetched from the HashiCorp Terraform Registry, while the "custom-provider" is loaded from a local path. The local provider must be properly compiled and placed in the specified path.

EltoothOption: B
Jul 6, 2022

B is correct answer.

Tyler2023Option: B
Oct 22, 2023

Downloading a plugin directly from its origin registry is not always appropriate, though. For example, the system where you are running Terraform may not be able to access an origin registry due to firewall restrictions within your organization or your locality. To allow using Terraform providers in these situations, there are some alternative options for making provider plugins available to Terraform which we'll describe in the following sections. https://developer.hashicorp.com/terraform/language/providers/requirements#in-house-providers https://developer.hashicorp.com/terraform/cli/config/config-file#provider-installation

Ahmad_TerraformOption: B
Jul 13, 2022

B is correct,

Power123Option: B
Mar 30, 2023

The answer is B

Ni33Option: A
May 9, 2023

A. Terraform Cloud and Terraform Enterprise install providers as part of every run. Terraform CLI finds and installs providers when initializing a working directory.

vibzr2023
Mar 27, 2024

incorrect: think of military/defense systems, nuclear power plants they do air-gapped which they don't rely on intenet.

LunarPhobiaOption: B
Jul 25, 2023

B because you can do air gap installs for networks without internet

debabrata6983Option: B
Aug 26, 2023

terraform can be used in AirGap region too