HashiCorp VA-002-P Question Answer
What is the result of the following terraform function call?
zipmap(["a", "b"], [1, 2])
{
"a",
"b",
"1",
"2",
}
[
]
"a" = 1
"b" = 2
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
TESTED 01 Jan 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved