Hashicorp Certified Terraform Associate 003 · Free Practice Question Easy
Question 30
True or False? Using the latest versions of Terraform, terraform init cannot automatically download community providers.

-
A
False
-
B
True
Reveal correct answer
Correct answer: A
Explanation
False. With the latest versions of Terraform, terraform init can automatically download community providers. More specifically, this feature was added with Terraform 0.13. Before 0.13, terraform init would NOT download community providers.
Terraform includes a built-in provider registry that allows you to easily install and manage the providers you need for your Terraform configuration. When you run terraform init, Terraform will check your configuration for any required providers and download them automatically if they are not already installed on your system. This includes both official Terraform providers and community-maintained providers.
To use a community-maintained provider in your Terraform configuration, you need to specify the provider in your configuration using the provider block and include the provider's source repository in your configuration. Terraform will download and install the provider automatically when you run terraform init, provided that the provider is available in the Terraform provider registry.
https://www.hashicorp.com/blog/automatic-installation-of-third-party-providers-with-terraform-0-13
A. The statement "False" is correct because using the latest versions of Terraform, the command terraform init can automatically download community providers. This functionality simplifies the process of integrating community providers into Terraform configurations, enhancing the overall user experience.
B. The statement "True" is incorrect because using the latest versions of Terraform, the command terraform init can automatically download community providers. This feature allows users to easily access and utilize community-created providers without manual intervention.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
