Terraform Configuration Questions
Practice questions for Terraform Configuration topic in HashiCorp Certified: Terraform Associate (004). 40 questions covering this domain.
An external policy engine modifies a managed resource tag after every apply, and the team does not want Terraform to keep planning that tag change. Wh...
A team wants to validate an infrastructure behavior at the end of plan or apply, but a failure should only warn and not block the run. Which Terraform...
A resource already exists outside the current configuration, and the team only needs to read its attributes for use elsewhere. Which block should they...
Resource B references an attribute from Resource A in its arguments. What kind of dependency does Terraform usually infer from that reference?
A configuration needs to combine two maps into one map value. Which built-in function should be used?
A provider supports a password_wo argument and matching password_wo_version. What is the benefit of using that write-only argument?
What does setting sensitive = true on a Terraform variable do?
A root module calls a child module and wants to use a value produced inside that child. What must be true first?
A practitioner wants to set a Terraform input variable named region through the shell environment. Which environment variable name should they use?
A team must replace a resource but avoid downtime by creating the replacement before deleting the original. Which lifecycle rule should they use?
You want to reject an invalid assumption before Terraform tries to create a resource. Which validation mechanism best fits?
What is the role of a Terraform data source?
A root module declares a variable without a default value and no other value is assigned. What happens before Terraform can generate a plan?
Which expression is valid in replace_triggered_by?
An output is marked sensitive = true. Which statement is correct?
A data block argument depends on a resource attribute that will be known only after apply. What should you expect during planning?
What is the documented effect of a failed postcondition?
How does Terraform handle values assigned to an undeclared root module variable?
When should you add depends_on explicitly?
A root module variable receives different values from an auto.tfvars file, an environment variable prefixed with TF_VAR_, and a -var flag. Which sourc...
Sign in to see all 40 questions
Create a free account to browse all questions — completely free during our launch phase.