
HashiCorp Certified:Terraform Associate
Domain 3Objective 7
3g Apply Formatting and Style Adjustments to a Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 1)
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 15 practice questions to prepare you well beyond it. (estimate)
15questions here
3free pages
4concepts
Questions 1–5
- 1
A developer wants to format all Terraform files in the current directory and all subdirectories, including modules. Which terraform fmt command should be used?
Select an answer first - 2
According to Terraform's recommended style conventions, how should blocks and arguments be indented?
Select an answer first - 3
A team is setting up a code review process for Terraform configurations. They want to ensure that all new pull requests are formatted correctly before merging. The CI system should automatically check formatting and block the merge if any file is not compliant. Which approach should the team implement?
Select an answer first - 4
A developer wants to see which files in their Terraform project are not formatted correctly, but they do not want to change anything yet. They also want to see the specific formatting differences. Which command provides this information?
Select an answer first - 5
A Terraform project has a root module and a 'modules/' directory. The developer wants to format only the root module files and the 'modules/networking/' subdirectory, but NOT the 'modules/storage/' subdirectory. Which command sequence achieves this without affecting the storage module?
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.