Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 289


Multiple team members are collaborating on infrastructure using Terraform and want to format their Terraform code following standard Terraform-style convention.

How could they automatically ensure the code satisfies conventions?

Show Answer
Correct Answer: D

To automatically ensure that Terraform code follows standard conventions, the `terraform fmt` command should be used. This command formats the configuration files in accordance with standard Terraform style conventions, including indentation and alignment. It is specifically designed for this purpose, ensuring consistency and readability of the code.

Discussion

1 comment
Sign in to comment
Ramdi1Option: D
Nov 25, 2023

use the fmt command