Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 145


What does Terraform use providers for? (Choose three.)

Show Answer
Correct Answer: ABC

Terraform uses providers to manage and provision infrastructure resources. Providers are crucial for Terraform to interact with both on-premises and public cloud infrastructure services by simplifying API interactions. Specifically, providers enable Terraform to provision resources for on-premises infrastructure like VMware or OpenStack, as well as for public cloud services such as AWS, GCP, and Azure. Additionally, providers handle the underlying API communications, abstracting away the complexities of different APIs to present a unified interface. The other options, such as enforcing security and compliance policies and grouping Terraform configuration files, are not primary roles of providers in Terraform.

Discussion

17 comments
Sign in to comment
waldonutsOptions: ABC
Sep 13, 2022

A and C are the same with a alternate target, and terraform can provision to local on prem resources (VMware for example) , B is pretty much the reason providers are there for me.

bora4motionOptions: BCE
Sep 2, 2022

to me BCE sounds ok

keiffo2Options: ABC
Sep 6, 2022

ABC - for me too

Fati_2022Options: ABC
Sep 11, 2022

ABC A Terraform Provider represents an integration that is responsible for understanding API interactions with the underlying infrastructure, such as a public cloud service (AWS, GCP, Azure), a PaaS service (Heroku), a SaaS service (DNSimple, CloudFlare), or on-prem resources (vSphere).

RVivekOptions: ABC
Sep 26, 2022

Provider is used to provison resources A on prem C on cloud. B to use API communication

ZeppoonstreamOptions: ACD
Jan 20, 2023

A. Provision resources for on-premises infrastructure services: Providers can be used to provision resources for on-premises infrastructure services like VMWare, OpenStack, etc. C. Provision resources for public cloud infrastructure services: Providers can be used to provision resources for public cloud infrastructure services like AWS, GCP, Azure, etc. D. Enforce security and compliance policies: Providers can be used to enforce security and compliance policies like IAM roles and policies, security groups, firewall rules, etc.

lezgino
Feb 4, 2023

correct

donathonOptions: BCD
Sep 6, 2022

E is talking about module. "Terraform evaluates all of the configuration files in a module, effectively treating the entire module as a single document. "

campsOptions: BCE
Mar 31, 2023

B. Simplify API interactions. C. Provision resources for public cloud infrastructure services. E. Group a collection of Terraform configuration files that map to a single state file. Terraform uses providers to interact with infrastructure services, both on-premises and in the public cloud. Providers are responsible for managing the lifecycle of resources, including creating, updating, and deleting resources as needed. Providers also simplify API interactions by abstracting away the details of the underlying APIs and presenting a unified interface to Terraform. Enforcing security and compliance policies is not a primary responsibility of providers, although some providers may offer features to help with these tasks. Option A is incorrect because while providers can be used to manage on-premises infrastructure services, this is not their only purpose. Option E is incorrect because while Terraform workspaces can be used to group a collection of Terraform configuration files that map to a single state file, this is not the purpose of providers.

babuappnetOptions: BCE
Sep 21, 2022

sure for BCE

itsVespucciOptions: ABC
Oct 27, 2022

ABC 4 sure

adoubanOptions: ABC
Dec 13, 2022

ABC for me

robertninhoOptions: BCD
Jan 3, 2023

BCD,Option A (provision resources for on-premises infrastructure services) is not necessarily true, as not all providers support on-premises infrastructure. Option E (group a collection of Terraform configuration files that map to a single state file) is not related to providers.

robertninho
Jan 5, 2023

My bad, ABC

kennynelconOptions: ABC
Feb 11, 2023

Def not D and E

sagunala5Options: ABC
Mar 25, 2023

ABC https://developer.hashicorp.com/terraform/language/providers#what-providers-do

kiran15789Options: ABC
May 8, 2023

Terraform can be used for Provision resources for on-premises infrastructure services

[Removed]Options: ABC
Dec 16, 2023

A,B,C sounds good to me.

090200fOptions: ABC
Jul 18, 2024

seems like ABC options are correct