Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
HashiCorp Certified: Terraform Associate (003) · HashiCorp
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Technicall B, but there's no sense of using without provider. haha I'll go with B
No doubt is B
A provider block is not required for all Terraform configurations – it is only required when you need to interact with an external system (e.g., AWS, Azure, Google Cloud). If your Terraform configuration only uses local resources (like terraform local-exec provisioner or null_resource), then you do not need a provider block. However, in most real-world Terraform projects, a provider is needed because Terraform is designed to manage infrastructure on external platforms. Example Where No Provider is Needed hcl Copy Edit resource "null_resource" "example" { provisioner "local-exec" { command = "echo Hello, Terraform!" } } This configuration does not require a provider because it does not interact with any external infrastructure. False. A provider block is only required when using a provider to manage infrastructure. However, most Terraform configurations do require it.