Exam4Training

What is the result of the following terraform function call?

What is the result of the following terraform function call?

zipmap(["a", "b"], [1, 2])
A . {
"a",
"b",
"1",
"2",
}
B . [
"a",
"b",
"1",
"2",
]
C . {
"a" = 1
"b" = 2
}

D . [
"a" = 1
"b" = 2
]

Answer: C

Explanation:

zipmap constructs a map from a list of keys and a corresponding list of values. A map is denoted by { } whereas a list is donated by [ ].

https://www.terraform.io/docs/configuration/functions/zipmap.html

Latest VA-002-P Dumps Valid Version with 200 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version