ExamGecko
Question list
Search
Search

Question 66 - Terraform Associate 003 discussion

Report
Export

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

A.
Set
Answers
A.
Set
B.
Map
Answers
B.
Map
C.
Tuple
Answers
C.
Tuple
D.
list
Answers
D.
list
Suggested answer: B

Explanation:

The Terraform collection type that should be used to store key/value pairs ismap. A map is a collection of values that are accessed by arbitrary labels, called keys. The keys and values can be of any type, but the keys must be unique within a map. For example,var = { key1 = 'value1', key2 = 'value2' }is a map with two key/value pairs. Maps are useful for grouping related values together, such as configuration options or metadata.Reference= [Collection Types], [Map Type Constraints]

asked 18/09/2024
Yedron Rojas Acosta
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first