nerdexam
HashiCorp

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.

Understand Terraform basics

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)
  • A
    2% (1)
  • B
    6% (3)
  • C
    2% (1)
  • D
    89% (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.

AUnderstanding API interactions with some service

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.

BProvisioning infrastructure in multiple clouds

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.

CExposing resources and data sources based on an API

`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.

DManaging actions to take based on resource differencesCorrect

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

#Terraform Provider#Terraform Core#Provider responsibilities#Terraform architecture

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice