Exam Terraform Associate All QuestionsBrowse all questions from this 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?

    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
Ramdi1Option: D

use the fmt command