HashiCorpHashiCorp
TA-002-P · Question #64
TA-002-P Question #64: Real Exam Question with Answer & Explanation
The correct answer is C: tree. Among the choices, 'tree' is not a recognized native collection type in Terraform; valid collection types include lists, maps, and sets.
Understand Terraform basics
Question
Which of the following is not a valid Terraform collection type?
Options
- Alist
- Bmap
- Ctree
- Dset
Explanation
Among the choices, 'tree' is not a recognized native collection type in Terraform; valid collection types include lists, maps, and sets.
Common mistakes.
- A. 'list' is a valid Terraform collection type, representing an ordered sequence of values.
- B. 'map' is a valid Terraform collection type, representing a collection of key-value pairs.
- D. 'set' is a valid Terraform collection type, representing an unordered collection of unique values.
Concept tested. Terraform collection data types
Reference. https://developer.hashicorp.com/terraform/language/expressions/types
Topics
#Terraform data types#Collection types#Lists#Maps
Community Discussion
No community discussion yet for this question.