
HashiCorp Certified:Terraform Associate
Domain 3Objective 2
3b Initialize a Terraform Working Directory TERRAFORM-ASSOCIATE-004 Practice Questions (Page 7)
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 31–35
- 31
A team has been using a local backend for state storage. They decide to switch to an S3 backend. After updating the configuration, they run `terraform init` and are prompted to copy the existing state to the new backend. What should they do?
Select an answer first - 32
Which scenario requires re-running terraform init?
Select an answer first - 33
A developer runs `terraform init` in a directory with a new configuration and receives an error: "Failed to query available provider packages... could not retrieve the list of available versions for provider hashicorp/aws: could not connect to registry.terraform.io". The configuration is correct and the provider is valid. What is the most likely cause?
Select an answer first - 34
A team uses a configuration with the AWS provider. They want to ensure that all team members use the exact same provider version, even if a newer version is released. They have committed the `.terraform.lock.hcl` file to version control. What should they do to maintain this consistency?
Select an answer first - 35
A developer is working offline and needs to run `terraform init` for a configuration that uses the Azure provider. They have already downloaded the provider plugin to a local directory. What should they do?
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.