TA-002-P · Question #172
Which of the below datatype is not supported by Terraform.
The correct answer is A. Array. Terraform does not have a native 'array' type; its collection types are list, map, set, object, and tuple.
Question
Which of the below datatype is not supported by Terraform.
Options
- AArray
- BList
- CObject
- DMap
How the community answered
(50 responses)- A88% (44)
- B2% (1)
- C2% (1)
- D8% (4)
Why each option
Terraform does not have a native 'array' type; its collection types are list, map, set, object, and tuple.
Terraform's type system includes primitive types (string, number, bool) and collection/structural types (list, map, set, object, tuple) - there is no 'array' type, making it the unsupported type among the choices.
List is a fully supported Terraform collection type representing an ordered sequence of values that share the same type.
Object is a valid Terraform structural type that groups named attributes which can each have different types.
Map is a valid Terraform collection type representing key-value pairs where all values share the same type.
Concept tested: Terraform supported primitive and collection data types
Source: https://developer.hashicorp.com/terraform/language/expressions/types
Topics
Community Discussion
No community discussion yet for this question.