PdfPrep.com

What is the result of the following terraform function call? index(["a", "b", "c"], "c")

What is the result of the following terraform function call? index(["a", "b", "c"], "c")
A . 1
B . true
C . 2
D . 0

Answer: C

Explanation:

index finds the element index for a given value in a list starting with index 0. https://www.terraform.io/docs/configuration/functions/index.html

Exit mobile version