ExamGecko
Question list
Search
Search

Question 19 - Terraform Associate 003 discussion

Report
Export

Which of these commands makes your code more human readable?

A.
Terraform validate
Answers
A.
Terraform validate
B.
Terraform output
Answers
B.
Terraform output
C.
Terraform show
Answers
C.
Terraform show
D.
Terraform fmt
Answers
D.
Terraform fmt
Suggested answer: D

Explanation:

The command that makes your code more human readable isterraform 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 ofterraform fmtvery important. You can run this command on your configuration files before committing them to source control or as part of your CI/CD pipeline.Reference= :Command: fmt:Using Terraform fmt Command to Format Your Terraform Code

asked 18/09/2024
Reinhard KOhl
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first