Which of the following is not a valid Terraform variable type?
Which of the following is not a valid Terraform variable type?
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'.
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
C, array is not a variable type.
C is the correct answer.
array is not