Free quiz · random questions each time

Terraform Associate (004): Terraform fundamentals Quiz

Questions on objective 2 of the Terraform Associate (004) exam, "Terraform fundamentals". Every attempt draws a new set, with an explanation and an official docs link for every answer. Written by our team from the official objectives; not real exam questions.

Loading the exam settings…

Sample questions

  1. Where should a configuration declare which providers it needs and where Terraform can download them?
  2. A configuration contains version = "~> 5.4" for a provider. Which versions are allowed?
  3. A team pinned version = "~> 3.6" and committed .terraform.lock.hcl, which selected 3.9.1. Someone changes the constraint to ~> 3.5.0 and runs terraform init. What happens?
  4. What is the purpose of the .terraform.lock.hcl file?
  5. Should .terraform.lock.hcl be committed to version control?

Exam study guide · Course

All quizzes · Sign in to save your scores and get the questions you miss back in Daily Review.

Was this page helpful?

Report a mistake