
HashiCorp Certified:Terraform Associate
Domain 3Objective 7
3g Apply Formatting and Style Adjustments to a Configuration TERRAFORM-ASSOCIATE-004 Practice Questions (Page 3)
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 11–15
- 11
A team is adopting Terraform and wants to establish consistent style across all their configurations. They notice that some developers put resource arguments in alphabetical order, while others group them logically. The team wants to enforce a single canonical style that Terraform itself uses. What should they do?
Select an answer first - 12
A CI pipeline for a Terraform project needs to verify that all configuration files, including those in modules directory, are formatted correctly. The pipeline should fail if any file is not formatted, but it must not modify the repository. Which command should be used in the pipeline?
Select an answer first - 13
What is the primary purpose of the `-check` flag with `terraform fmt`?
Select an answer first - 14
Which terraform fmt command formats only the file named variables.tf in the current directory?
Select an answer first - 15
A developer has a Terraform configuration with a mix of .tf and .tfvars files. They want to format all the .tf files in the current directory and all subdirectories, but they are not concerned about the .tfvars files. Which command should they run?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to TERRAFORM-ASSOCIATE-004
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.