Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 64


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

Show Answer
Correct Answer: C

In Terraform, the valid collection types are list, map, and set. These types are used to group multiple values together. A list is an ordered sequence of values identified by consecutive whole numbers starting from zero. A map is a collection of values where each is identified by a string label. A set is a collection of unique values that do not have secondary identifiers or ordering. A 'tree' is not a valid collection type in Terraform.

Discussion

10 comments
Sign in to comment
EltoothOption: C
Dec 28, 2022

C is correct answer. Tree https://www.terraform.io/language/expressions/type-constraints#collection-types

Ahmad_Terraform
Dec 29, 2022

C is the right answer

godie44Option: C
Oct 23, 2024

C is the right answer

Ignotus
Jan 6, 2023

tree isn't even on that page..

Bluemoon22
Oct 27, 2023

answer is C, tree

debabrata6983Option: C
Feb 26, 2024

the tree is not a valid collection type in terrafrom

Ignotus
Jan 6, 2023

my bad, is NOT a valid... answer C is correct

Power123
Oct 1, 2023

Answer is C - tree

SairamObili
Feb 15, 2024

we dont a have tree type in terraform

Asif_draxiOption: C
Jan 17, 2025

C. tree Here's why: Valid Terraform Collection Types: list: An ordered collection of values. map: An unordered collection of key-value pairs. set: An unordered collection of unique values. tree: Terraform does not have a built-in collection type called "tree." Trees are a data structure typically used in other programming languages for hierarchical data representation.