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

Posted by: Pdfprep Category: VA-002-P Tags: , ,

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

Leave a Reply

Your email address will not be published.