Question 50
A CI/CD engineer has a concrete infrastructure task: download the plugins a cloned configuration needs before planning. What is the correct tool or language feature?
Explanation
Correct Answer
Init resolves and installs required provider dependencies. This meets the stated requirement to download the plugins a cloned configuration needs before planning.
Incorrect Answers
required_providers source address is intended to disambiguate two providers sharing a local name but coming from different publishers; source addresses identify which provider implementation Terraform must install. That is not the specific requirement to download the plugins a cloned configuration needs before planning.
.terraform.lock.hcl commit is intended to reproduce selected provider versions across teammates' normal initializations; lock files capture concrete dependency choices within configured constraints. That is not the specific requirement to download the plugins a cloned configuration needs before planning.
Provider version constraint is intended to restrict plugin updates to compatible releases during initialization; version constraints set allowable provider versions but do not by themselves choose a single pinned package. That is not the specific requirement to download the plugins a cloned configuration needs before planning.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests