nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #113

A provider configuration block is required in every Terraform configuration. Example:

The correct answer is B. False. A provider configuration block is not required in every Terraform configuration. A provider configuration block can be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured. However…

Submitted by neha2k· Apr 18, 2026Understand Terraform Providers

Question

A provider configuration block is required in every Terraform configuration. Example:

Options

  • ATrue
  • BFalse

How the community answered

(44 responses)
  • A
    14% (6)
  • B
    86% (38)

Explanation

A provider configuration block is not required in every Terraform configuration. A provider configuration block can be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured. However, some providers may require some configuration arguments (such as endpoint URLs or cloud regions) before they can be used. A provider's documentation should list which configuration arguments it expects. For providers distributed on the Terraform Registry, versioned documentation is available on each provider's page, via the "Documentation" link in the provider's header.

Topics

#providers#provider configuration#required providers#default configuration

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice