Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 294

Which of the following is the correct way to pass the value in the variable num_servers into a module with the input server?

    Correct Answer: D

    In HashiCorp Configuration Language version 2 (HCL2), the correct syntax to refer to a variable is by using the format 'var.variable_name'. Therefore, 'servers = var.num_servers' is the proper way to pass the value in the variable num_servers into a module.

Discussion
boapaulo

same question as question 31

Stargazer11Option: D

D. servers = var.num_servers (HCL2 syntax)