
HashiCorp Certified:Terraform Associate
Domain 3Objective 2
3b Initialize a Terraform Working Directory TERRAFORM-ASSOCIATE-004 Practice Questions (Page 2)
Part of the Core Terraform workflow domain, which makes up ~20% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~5–8 in this domain), expect 1–1 from this objective — we provide 37 practice questions to prepare you well beyond it. (estimate)
37questions here
8free pages
10concepts
Questions 6–10
- 6
A team is using a configuration with the AWS provider. They have committed the `.terraform.lock.hcl` file. A new developer joins the team and runs `terraform init`. The init succeeds, but the lock file is modified. What is the most likely reason?
Select an answer first - 7
A developer wants to update all providers to the latest versions allowed by the configuration constraints. They also want to update the lock file to reflect the new versions. Which command should they run?
Select an answer first - 8
A developer is running `terraform init` in a CI/CD pipeline. The pipeline is non-interactive, and the backend requires input for the storage account name. The developer wants the command to fail rather than hang waiting for input. Which flag should they use?
Select an answer first - 9
A team has been using a configuration with the Google Cloud provider. They update the provider version constraint from `~> 4.0` to `~> 5.0`. What must they do to use the new provider version?
Select an answer first - 10
When is the .terraform.lock.hcl file created?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-ASSOCIATE-004” is a trademark of its owner, used for identification only.