Exam Terraform-Associate-003 Topic 1 Question 188 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 188
Topic #: 1
Which of these commands makes your code more human readable?

Suggested Answer: D Vote an answer

The command that makes your code more human readable is terraform fmt. This command is used to rewrite Terraform configuration files to a canonical format and style, following the Terraform language style conventions and other minor adjustments for readability. The command is optional, opinionated, and has no customization options, but it is recommended to ensure consistency of style across different Terraform codebases. Consistency can help your team understand the code more quickly and easily, making the use of terraform fmt very important. You can run this command on your configuration files before committing them to source control or as part of your CI/CD pipeline. References = : Command: fmt : Using Terraform fmt Command to Format Your Terraform Code

by unknown69 at Mar 20, 2025, 04:41 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
peter123
2025-03-22 10:09:15
still the answer is wrong despite the fact someone suggested a correction
upvoted 1 times
...
unknown69
2025-03-20 16:41:45
terraform fmt and not terraform file
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10