nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #195

What is the Terraform style convention for indenting a nesting level compared to the one above it?

The correct answer is A. With two spaces. Terraform's Indentation Standards: Terraform's style convention uses two spaces per nesting level for readability, helping to maintain uniform code across teams. Configuration Files: Consistent indentation is crucial for Terraform's HCL syntax, as it improves readability and…

Read, Generate, and Modify Configuration

Question

What is the Terraform style convention for indenting a nesting level compared to the one above it?

Options

  • AWith two spaces.
  • BWith four spaces.
  • CWith three spaces.
  • DWith a tab.

How the community answered

(27 responses)
  • A
    78% (21)
  • B
    7% (2)
  • C
    4% (1)
  • D
    11% (3)

Explanation

Terraform's Indentation Standards: Terraform's style convention uses two spaces per nesting level for readability, helping to maintain uniform code across teams. Configuration Files: Consistent indentation is crucial for Terraform's HCL syntax, as it improves readability and avoids parsing issues.

Topics

#HCL style#indentation#terraform fmt#code conventions

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice