HashiCorpHashiCorp
TA-002-P · Question #35
TA-002-P Question #35: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #35. The question stem and answer options stay visible for context.
Read, generate, and modify configuration
Question
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability. How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
Options
- ARun the terraform fmt command during the code linting phase of your CI/CD process
- BDesignate one person in each team to review and format everyone's code
- CManually apply two spaces indentation and align equal sign "=" characters in every
- DWrite a shell script to transform Terraform files using tools such as AWK, Python, and sed
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#HCL formatting#Code style#Readability#Configuration standards