exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 58 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 58
Topic #: 1
[All Terraform Associate Questions]

A Terraform provider is not responsible for:

  • A. Understanding API interactions with some service
  • B. Provisioning infrastructure in multiple clouds
  • C. Exposing resources and data sources based on an API
  • D. Managing actions to take based on resource differences
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
amrith501
Highly Voted 2 years, 9 months ago
Selected Answer: B
The answer should be B A terraform can only provision resouce in one Cloud not multiple cloud
upvoted 21 times
Nunyabiznes
1 year, 11 months ago
No, it can provision in multiple clouds: provider "aws" { region = "us-west-2" } provider "azurerm" { features {} } resource "aws_instance" "example" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" } resource "azurerm_resource_group" "example" { name = "example" location = "East US" }
upvoted 7 times
jerikoo
1 year, 10 months ago
those are 2 providers, each provider can only deploy resources in one cloud.. several providers, in multicloud.. so "A Terraform provider" can only provision in one Cloud... B!
upvoted 27 times
...
...
...
Spandrop
Highly Voted 1 year, 2 months ago
Selected Answer: D
I'm not a native English speaker, but I think that in the context of the question, "A Terraform provider" is referring to the concept of providers in Terraform as a whole, not a specific individual provider. I would go with D "Terraform providers are a plugin for Terraform that makes a collection of related resources available. A provider plugin is responsible for understanding API interactions and exposing resources. Providers generally are IaaS (like AWS, GCP, Microsoft Azure, OpenStack), PaaS (like Heroku), or SaaS services (like Terraform Cloud, DNSimple, CloudFlare). However, the management of actions based on resource differences (i.e., what to create, update, or delete) is handled by Terraform's core engine, not by the providers. The providers simply inform Terraform's core about what resources they can manage and how to manage them."
upvoted 10 times
...
sultaz
Most Recent 2 weeks, 2 days ago
Selected Answer: B
While Terraform itself supports managing infrastructure across multiple clouds, individual providers are designed to focus on a single API or domain (e.g., AWS, Azure). They do not inherently provision infrastructure across multiple clouds; this is achieved by combining multiple providers in a Terraform configuration.
upvoted 1 times
...
YesPlease
1 month, 1 week ago
Selected Answer: B
Answer B Poorly worded question, but a single Terraform provider is designed to work with only one specific cloud platform. For example, you can not ask AWS to create an infrastructure on Azure and vice versa.
upvoted 1 times
...
d759fb3
1 month, 1 week ago
Selected Answer: B
It should be B. Multiple Clouds (NOT a Provider Responsibility): # Use multiple providers for multiple clouds provider "aws" { region = "us-west-2" } provider "azurerm" { features {} } Managing Resource Differences (IS a Provider Responsibility): # Provider handles: # - Detecting changes # - Planning updates # - Applying changes resource "aws_instance" "example" { instance_type = "t2.micro" # Provider detects if this changes tags = { Name = "example" # Provider manages tag updates } }
upvoted 1 times
...
cerepx
1 month, 3 weeks ago
Selected Answer: D
Terraform itself is responsible for comparing the desired configuration (in .tf files) with the current state (in the .tfstate file) and determining the appropriate actions (create, update, delete) to achieve the desired state. Providers execute those actions once Terraform decides what needs to be done, but they are not responsible for managing those actions based on resource differences. Terraform itself handles the planning and state comparison logic. Therefore, this is the correct answer as something a provider is not responsible for.
upvoted 1 times
...
rraabbbind
2 months, 1 week ago
Selected Answer: B
A terraform can only provision resouce in one Cloud not multiple cloud
upvoted 1 times
...
suri_surendra
2 months, 1 week ago
Selected Answer: D
The correct answer is: D. Managing actions to take based on resource differences Explanation: In Terraform, providers are responsible for interacting with APIs, provisioning resources, and exposing resources and data sources. However, the task of managing actions based on resource differences (such as determining what actions to take when the desired state differs from the current state) is handled by Terraform itself during the plan and apply phases, not by the provider.
upvoted 2 times
...
pyxgzm
2 months, 1 week ago
Selected Answer: D
The correct answer is D. Managing actions to take based on resource differences. However, managing actions to take based on resource differences is the responsibility of Terraform Core, not the provider. Terraform Core is responsible for: - Determining the desired state of the infrastructure based on the configuration - Comparing the desired state to the current state of the infrastructure - Determining the actions needed to reconcile any differences between the desired and current states So, while providers are responsible for interacting with external services and managing resources, Terraform Core is responsible for managing the overall provisioning process and determining the actions needed to achieve the desired state.
upvoted 2 times
...
Greysi
2 months, 2 weeks ago
Selected Answer: D
A resource provider may provision to multiple clouds. you can write your own resource provider which covers multiple clouds. It's not part of resource provider to managing actions based on differences between existing resource and configuration. Resource provider will only execute actions. Managing actions and triggering resource provider to execute this action is part of terraform itself.
upvoted 2 times
...
shant_haghverdian
2 months, 3 weeks ago
Selected Answer: B
each provider is dedicated to its related infrastructure, you cant provision azure resources using was provider
upvoted 1 times
...
muammer32
2 months, 4 weeks ago
Selected Answer: D
The provider's role is focused on API interactions, provisioning infrastructure, and exposing resources. Managing actions based on resource differences is handled by Terraform’s core logic during the terraform plan and terraform apply processes, not by the provider itself. Thus, D is the correct answer.
upvoted 1 times
...
khvan84
4 months, 3 weeks ago
B. Provisioning infrastructure in multiple clouds: Providers enable provisioning across different cloud platforms, so this is also a responsibility of the provider .
upvoted 1 times
...
a45e482
5 months, 3 weeks ago
The answer is B Tricky question a provider can only provision resources in one cloud platform, you will need multiple providers to provision in multiple cloud.
upvoted 1 times
...
Algol
6 months ago
Answer is B: provisioning infrastructure in multiple clouds is not the direct responsibility of a single provider; each provider typically manages one cloud or service platform.
upvoted 1 times
...
bora4motion
6 months, 3 weeks ago
Selected Answer: B
one provider will deploy to a single cloud provider not to many.
upvoted 1 times
...
JHkdigital
6 months, 4 weeks ago
Selected Answer: B
The answer should be B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago