TA-002-P · Question #58
A Terraform provider is not responsible for:
The correct answer is D. Managing actions to take based on resource differences. Terraform providers are responsible for interacting with service APIs and exposing resources, while Terraform Core handles the logical planning and management of resource differences.
Question
A Terraform provider is not responsible for:
Options
- AUnderstanding API interactions with some service
- BProvisioning infrastructure in multiple clouds
- CExposing resources and data sources based on an API
- DManaging actions to take based on resource differences
How the community answered
(47 responses)- A2% (1)
- B6% (3)
- C2% (1)
- D89% (42)
Why each option
Terraform providers are responsible for interacting with service APIs and exposing resources, while Terraform Core handles the logical planning and management of resource differences.
A primary responsibility of a Terraform provider is to encapsulate the logic for `Understanding API interactions with some service` to translate Terraform configurations into API calls.
A Terraform provider is designed to interface with a specific cloud or service, enabling the `Provisioning infrastructure` within that particular environment. Terraform as a whole can manage multiple clouds with multiple providers.
`Exposing resources and data sources based on an API` is a fundamental role of a Terraform provider, defining the schema and behavior of the infrastructure components it manages.
Managing actions to take based on resource differences (i.e., planning what to create, update, or delete) is a responsibility of Terraform Core, not the individual providers. Providers implement the actual operations requested by the core.
Concept tested: Terraform Core vs. Provider responsibilities
Source: https://developer.hashicorp.com/terraform/plugin/how-terraform-works
Topics
Community Discussion
No community discussion yet for this question.