Terraform-Associate-004 practice question 32 of 35

You can develop a custom provider to manage its resources using Terraform.

Full set: 360 questions
Answer options
A: True
B: False
Correct Answer:
TRUE
Explanation

The statement is correct. Terraform is designed with a plugin-based architecture, where providers are the plugins that enable interaction with specific APIs. HashiCorp provides the Terraform Plugin Framework, a Go framework specifically for developing custom providers. This allows developers and organizations to extend Terraform's capabilities to manage any resource that has a CRUD (Create, Read, Update, Delete) API, including in-house services, custom tools, or platforms not yet supported by an official or community provider.

Why Incorrect

The alternative, "False," is incorrect because it misrepresents a core feature of Terraform's architecture. Terraform is not a closed system limited to a fixed set of providers. Its extensibility through custom provider development is a fundamental design principle that allows it to be adapted to a virtually limitless range of technologies.

References

1. HashiCorp Terraform Documentation, "Extending Terraform - Plugin Development": The official documentation explicitly states, "If you want to use a service or tool with Terraform that doesn't yet have a provider, you can write your own. Custom providers are distributed as standalone binary files." This section serves as the primary entry point for developers looking to create their own providers.

Source: HashiCorp, "Plugin Development," Terraform Documentation, accessed 2024, https://developer.hashicorp.com/terraform/plugin.

2. HashiCorp Learn, Tutorial: "Call APIs with Custom Providers": This official tutorial guides users through the entire process of building a custom provider. The introduction clearly states the purpose: "Terraform's ability to manage a wide variety of resources comes from its provider-based architecture. Each provider is responsible for managing a specific set of resources... In this tutorial, you will build a custom Terraform provider for the HashiCups order management application."

Source: HashiCorp, "Call APIs with Custom Providers," HashiCorp Learn, accessed 2024, https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-intro.

3. HashiCorp Terraform Documentation, "Terraform Plugin Framework": The documentation for the framework itself describes its function. "The Terraform Plugin Framework is a Go module for developing Terraform providers. The framework handles the details of the Terraform plugin protocol, allowing developers to focus on the logic for their provider." The existence and promotion of this framework confirm that custom provider development is a supported and intended use case.

Source: HashiCorp, "What is the Terraform Plugin Framework?," Terraform Documentation, accessed 2024, https://developer.hashicorp.com/terraform/plugin/framework.

Scroll to Top