Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 214

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

    Correct Answer: C

    In Terraform, the valid variable types are string, number, bool, list, map, set, object, and tuple. 'Array' is not recognized as a valid variable type. Therefore, the correct answer is 'array'.

Discussion
InformationOverloadOption: C

Array is not a variable type. Variable types in terraform are: string: A sequence of Unicode characters number: A numeric value, either an integer or a floating-point number bool: A Boolean value of either true or false list: An ordered collection of values, all of which must be of the same type map: A collection of key-value pairs, where the keys and values can be of any type set: An unordered collection of unique values, all of which must be of the same type object: A complex structure that can contain other objects, lists, and scalar values tuple: A fixed-length array of specific types. (Terraform version 0.13 and later) https://developer.hashicorp.com/terraform/language/expressions/types

DeragOption: C

C, array is not a variable type.

Jlee7Option: C

C is the correct answer.

agmesasOption: C

array is not