nerdexam
HashiCorp

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.

Understand Terraform basics

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)
  • A
    93% (27)
  • D
    3% (1)
  • E
    3% (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.

AProvision resources for on-premises infrastructure servicesCorrect

Terraform providers exist for on-premises infrastructure services, allowing users to provision and manage resources within private data centers (e.g., vSphere, OpenStack).

BSimplify API interactionsCorrect

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.

CProvision resources for public cloud infrastructure servicesCorrect

Many popular Terraform providers are specifically designed to provision and manage resources in public cloud infrastructure services like AWS, Azure, and Google Cloud.

DEnforce security and compliance policies

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.

EGroup a collection of Terraform configuration files that map to a single state file

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

#Terraform providers#Infrastructure provisioning#API abstraction

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice