Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate 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?

Show Answer
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

3 comments
Sign in to comment
Stargazer11Option: D
Nov 27, 2023

D. servers = var.num_servers (HCL2 syntax)

boapaulo
Feb 4, 2024

same question as question 31

090200fOption: D
Aug 5, 2024

correct option is D, repeated question