Which statement accurately distinguishes a Terraform resource from a Terraform data source?
HashiCorp Certified: Terraform Associate
HASHICORP_TERRAFORM_ASSOCIATEReady to test yourself?
A timed, blueprint-proportional exam drawn fresh from this bank โ with a per-domain score report.
๐ Free preview: showing 10 of 60 questions. Unlock the full bank โ every question, explanation, and reference.
Unlock all 60 questions โ10 questions across 5 topics. Choose an answer for each question, then check it to see the correct answer and explanation.
Filter by topic
All 10 questions
Terraform & Infrastructure as Code Fundamentals
10 questions in topicDeclarative vs. imperative IaC, providers, resources, data sources, HCL, and the Terraform Registry.
Why is Infrastructure as Code generally considered to reduce human error compared to manual infrastructure changes?
A team uses the same Terraform configuration, with only a few input differences, to create their development, staging, and production environments. Which IaC benefit does this best illustrate?
Which statement best describes why storing Terraform configuration files in a version control system (such as Git) is considered a core IaC practice?
What role does the Terraform Registry play in a typical Terraform workflow?
A configuration declares a provider block with credentials and a region, followed by several resource blocks that reference resource types from that provider. What is the relationship between the provider and the resources here?
A team maintains a Terraform configuration that provisions virtual machines, and separately uses a configuration management tool to continuously enforce package versions on those same machines after they boot. One engineer proposes replacing the configuration management tool entirely with more frequent terraform apply runs against slightly modified machine resource definitions. What is the most accurate assessment of this proposal, given Terraform's typical paradigm?
Two engineers each write a configuration to reach the same desired end state for a small environment: one lists an explicit ordered sequence of provider API calls to run, and the other writes an HCL configuration describing only the resources that should exist. Both configurations, when fully executed, produce an identical set of infrastructure objects. Which statement correctly classifies the two approaches?
A configuration includes both a resource block managing a database instance and a data source block referencing a security group that was created outside of Terraform by another team. Terraform is then run with a plan that only touches the database resource. What happens to the security group referenced by the data source during this run?
A JSON-syntax Terraform configuration file (.tf.json) and an HCL configuration file (.tf) both live in the same module directory, and each defines a different resource. Which statement about this setup is accurate?