HashiCorp Certified: Terraform Associate — Question 90
If writing Terraform code that adheres to the Terraform style conventions, how would you properly indent each nesting level compared to the one above it?
Answer options
- A. With four spaces
- B. With a tab
- C. With three spaces
- D. With two spaces
Correct answer: D
Explanation
The correct answer is D, as Terraform style conventions recommend using two spaces for indentation to maintain readability and consistency. Options A, B, and C are incorrect because they do not conform to the specified style guidelines for Terraform code indentation.