TA-002-P · Question #434
What does Terraform use providers for? (Choose three.)
The correct answer is A. Provision resources for on-premises infrastructure services B. Simplify API interactions C. Provision resources for public cloud infrastructure services. Terraform uses providers to abstract and simplify complex API interactions, enabling the provisioning of resources across various infrastructure platforms, including both public clouds and on-premises services.
Question
What does Terraform use providers for? (Choose three.)
Options
- AProvision resources for on-premises infrastructure services
- BSimplify API interactions
- CProvision resources for public cloud infrastructure services
- DEnforce security and compliance policies
- EGroup a collection of Terraform configuration files that map to a single state file
How the community answered
(29 responses)- A93% (27)
- D3% (1)
- E3% (1)
Why each option
Terraform uses providers to abstract and simplify complex API interactions, enabling the provisioning of resources across various infrastructure platforms, including both public clouds and on-premises services.
Terraform providers exist for on-premises infrastructure services, allowing users to provision and manage resources within private data centers (e.g., vSphere, OpenStack).
Providers act as a translation layer, simplifying complex API calls from various infrastructure services into a consistent set of resources and data sources that Terraform can manage.
Many popular Terraform providers are specifically designed to provision and manage resources in public cloud infrastructure services like AWS, Azure, and Google Cloud.
While Terraform can be used in conjunction with security and compliance tools, providers themselves are primarily for resource provisioning and API interaction, not for enforcing security and compliance policies directly.
This describes the function of a Terraform workspace or module, which groups configuration files and maps to a state file, not the purpose of a provider.
Concept tested: Purpose of Terraform providers
Source: https://developer.hashicorp.com/terraform/language/providers/overview
Topics
Community Discussion
No community discussion yet for this question.