nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #190

Your root module contains a variable named num_servers. Which is the correct way to pass its value to a child module with an input named servers?

Sign in or unlock TERRAFORM-ASSOCIATE-003 to reveal the answer and full explanation for question #190. The question stem and answer options stay visible for context.

Interact with Terraform Modules

Question

Your root module contains a variable named num_servers. Which is the correct way to pass its value to a child module with an input named servers?

Options

  • Aservers = num_servers
  • Bservers = var(num_servers)
  • Cservers = var.num_servers
  • Dservers = ${var.num_servers}

Unlock TERRAFORM-ASSOCIATE-003 to see the answer

You've previewed enough free TERRAFORM-ASSOCIATE-003 questions. Unlock TERRAFORM-ASSOCIATE-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#module variables#variable references#child modules#HCL syntax
Full TERRAFORM-ASSOCIATE-003 Practice