Skip to content

Terraform Fundamentals Questions

Practice questions for Terraform Fundamentals topic in HashiCorp Certified: Terraform Associate (004). 24 questions covering this domain.

24 questions4 easy13 medium7 hard
Q1
medium

A configuration must use the same provider twice with different settings, such as two regions. Which approach should the practitioner use?

Q2
medium

What is the main purpose of Terraform state?

Q3
hard

Why does Terraform maintain state even though providers can query remote APIs directly?

Q4
easy

A configuration sets a provider version constraint to ~> 5.0. What versions does Terraform allow?

Q5
medium

A practitioner clones a configuration that declares required providers and then runs terraform init. What provider-related action happens during init?

Q6
medium

What is the primary purpose of the .terraform.lock.hcl file?

Q7
medium

Which dependency selection does Terraform record in .terraform.lock.hcl?

Q8
easy

What information does a provider requirement in required_providers contain?

Q9
medium

Why should a team commit .terraform.lock.hcl to version control?

Q10
hard

Which provider address is associated with the built-in provider used for terraform_remote_state?

Q11
medium

A module declares required_providers with a local name and version constraint but omits source. Which provider source does Terraform imply?

Q12
hard

Which provider version strategy follows HashiCorp's documented best practice?

Q13
medium

If a configuration already has a dependency lock file committed, how do Terraform CLI and HCP Terraform normally select provider versions?

Q14
easy

A root module must use two different providers that both have the type name http. What naming approach does HashiCorp recommend in required_providers?

Q15
hard

An organization distributes an internal provider from a filesystem mirror instead of a public registry. What source address can its modules use?

Q16
medium

Why is using a provider's preferred local name such as aws usually recommended?

Q17
hard

A reusable module will be shared across many root modules. What provider version strategy follows official best practice?

Q18
medium

Which statement about a provider source address is correct?

Q19
medium

Your root module must use two different providers that both have the type name http. What naming pattern does HashiCorp recommend?

Q20
medium

A team first installs a provider from a filesystem mirror and then commits the lock file. Why might a coworker on another platform still have trouble ...

Sign in to see all 24 questions

Create a free account to browse all questions — completely free during our launch phase.