Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 133 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 133
Topic #: 1
[All Terraform Associate Questions]

Which Terraform collection type should you use to store key/value pairs?

  • A. tuple
  • B. set
  • C. maׁ€
  • D. list
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Uma10
Highly Voted 2 years, 2 months ago
The answer is correct. Maps/objects are represented by a pair of curly braces containing a series of <KEY> = <VALUE> pairs Source: https://www.terraform.io/language/expressions/types
upvoted 9 times
...
debabrata6983
Most Recent 1 year, 3 months ago
Selected Answer: C
map collection
upvoted 1 times
...
camps
1 year, 7 months ago
Selected Answer: C
C. map is the Terraform collection type that should be used to store key/value pairs. A map is an unordered collection of key/value pairs, where each key is unique. It can be used to store related data that doesn't have a specific order, and it's useful for storing configuration parameters or metadata associated with infrastructure resources. A tuple is an ordered collection of elements, a set is an unordered collection of unique elements, and a list is an ordered collection of elements that can include duplicates. While each of these collection types has its own uses, a map is the most appropriate type for storing key/value pairs.
upvoted 4 times
...
Pinky0289
2 years, 2 months ago
Elements stored in key=value pairs within curly braces is a map. So, the right option is C.
upvoted 1 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: C
C - Map is the correct answer https://www.terraform.io/language/expressions/types
upvoted 1 times
...
keiffo2
2 years, 2 months ago
map variable is key-value
upvoted 1 times
keiffo2
2 years, 2 months ago
so C is the right anwer
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...