Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 198


The ________ determines how Terraform creates, updates, or deletes resources.

Show Answer
Correct Answer: AC

The Terraform provider determines how Terraform creates, updates, or deletes resources. Providers are responsible for translating Terraform configurations into API requests that manipulate resources in the target environment. They implement the necessary operations for specific types of infrastructure, such as AWS, Azure, or Google Cloud Platform. While the Terraform configuration defines what resources are needed and their desired state, the provider is the component that knows how to interact with the underlying service to manage these resources.

Discussion

17 comments
Sign in to comment
gekkehenkOption: C
Jan 14, 2023

The question specifically states "how". The provider is the only component of Terraform that know HOW to create, update, delete a resource, as it knows all the specifics.

ManguuOption: C
Mar 22, 2023

"What" = config "How" = provider

dkd123Option: C
Feb 2, 2023

Terraform config determines what , Provider determines how. Answer should be provider.

Agil09Option: A
Jan 23, 2023

correct is A

ozbeyucelOption: A
Jan 31, 2023

correct is A

rotimislawOption: C
Feb 24, 2023

as gekkehenk wrote, it's C

Atila50Option: A
Mar 13, 2023

https://developer.hashicorp.com/terraform/language/resources/behavior

David_C_90
Mar 14, 2023

Terraform configuration determines the "what" i.e. what infrastructure to build. Not the "how"; that's the whole point behind IaC

campsOption: C
Mar 31, 2023

C. Terraform provider

ZeppoonstreamOption: A
Jan 20, 2023

A. Terraform configuration The Terraform configuration determines how Terraform creates, updates, or deletes resources. It is written in HashiCorp Configuration Language (HCL) and it includes the resources that will be managed by Terraform, their properties, and the dependencies between them. The configuration is read by the Terraform core and used to generate an execution plan that is then passed to the Terraform provider to make the necessary changes to the infrastructure.

AbuuOption: A
Jan 24, 2023

Applying a Terraform configuration is the process of creating, updating, and destroying real infrastructure objects in order to make their settings match the configuration. https://developer.hashicorp.com/terraform/language/resources/behavior

AbuuOption: A
Jan 28, 2023

State file should be included; because The State File determines how Terraform creates, updates, or deletes resources. The state file is a JSON file that is used to persistently store all the resources created by Terraform. It stores the state of the resources, as well as their properties, so that Terraform knows what actions to take on the next run.

AbuuOption: A
Feb 6, 2023

The Terraform configuration is the main input for Terraform, defining the desired state of the resources in the infrastructure. It is the definition of how Terraform should create, update, or delete resources in order to reach the desired state.

agmesasOption: C
Feb 7, 2023

C, provider = how, .tf = what

crickmeisterOption: C
Feb 16, 2023

C. Terraform provider determines how Terraform creates, updates, or deletes resources. A provider is responsible for understanding API interactions and exposing resources. Providers can represent physical resources like compute instances, or abstract resources like DNS records. A provider is responsible for translating the Terraform configuration into API calls to the underlying service, and for handling the response from the service. The Terraform configuration specifies which provider to use for each resource block. The provider block itself specifies the configuration necessary to connect to the API of a particular service, such as credentials or endpoint information.

princajenOption: C
Feb 16, 2023

The Terraform provider determines how Terraform interacts with a specific API or service provider to create, update, or delete resources. The provider translates Terraform configuration files into API requests, and then interacts with the API to manage resources on the service provider.

Stanislav4907Option: C
Apr 10, 2023

The Terraform provider determines how Terraform creates, updates, or deletes resources. Providers are responsible for translating Terraform configurations into API requests that manipulate resources in the target environment. Each provider implements the necessary operations for a specific type of infrastructure, such as AWS, Azure, or Google Cloud Platform. When Terraform applies a configuration, it reads the provider information from the configuration and uses it to interact with the target environment. The provider then manages the lifecycle of the resources by creating, updating, or deleting them as needed. Note that while the Terraform configuration defines the desired state of the resources, and the Terraform core is responsible for managing the planning and execution of changes, it is ultimately the provider that determines how those changes are implemented in the target environment.

7b5b962Option: B
Jun 17, 2024

B. Terraform core Terraform core is responsible for reading the configuration, generating the execution plan, and applying the changes by interacting with the providers.