What is a Terraform provider?

  1. A plugin that enables Terraform to interact with APIs of cloud services or platforms ✓
  2. A company that offers Terraform services
  3. A directory where Terraform stores its code
  4. A user who creates Terraform configurations

Correct answer: A plugin that enables Terraform to interact with APIs of cloud services or platforms

Option A is correct because a Terraform provider is a plugin that acts as an abstraction layer, allowing Terraform to communicate with the APIs of cloud platforms, SaaS services, and other infrastructure targets such as AWS, Azure, or Kubernetes. Option B is incorrect because a provider is a software plugin within the Terraform ecosystem, not a company offering commercial services. Option C is incorrect because the directory where Terraform stores local state and downloaded plugins is called the '.terraform' working directory or the backend, not a provider. Option D is incorrect because a provider is a software component, not a human role; the person writing configurations is simply a Terraform user or engineer.

Topic: · terraform, providers, infrastructure as code, hashicorp

Practice HashiCorp Terraform Associate (003) Questions Free