HashiCorp Certified: Terraform Associate — Question 117

Which of the following is not a valid Terraform variable type?

Answer options

Correct answer: C

Explanation

The correct answer is C, as 'array' is not recognized as a valid variable type in Terraform; instead, Terraform uses 'list' to define a sequence of values. The other options, 'list', 'map', and 'string', are all valid types that Terraform supports for variable definitions.