Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 214


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

Show Answer
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

4 comments
Sign in to comment
InformationOverloadOption: C
Jan 17, 2023

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

agmesasOption: C
Feb 7, 2023

array is not

Jlee7Option: C
Jun 27, 2023

C is the correct answer.

DeragOption: C
Sep 25, 2023

C, array is not a variable type.