Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HashiCorp logo

HashiCorp Certified:Terraform Associate

Domain 5Objective 2

5b Describe Variable Scope Within Modules TERRAFORM-ASSOCIATE-004 Practice Questions (Page 3)

Part of the Terraform modules domain, which makes up ~8% of our current practice bank. HashiCorp does not publish an official question count, but from its 60-minute exam (~25–40 total, ~2–3 in this domain), expect 1–1 from this objective — we provide 26 practice questions to prepare you well beyond it. (estimate)

26questions here
6free pages
5concepts

Questions 11–15

  1. 11expert · medium

    A module creates a security group and defines `output "sg_id" { value = aws_security_group.this.id }`. The root configuration references `module.sg.sg_id` in a resource. A developer accidentally removes the output block from the module. What happens on the next plan?

    Select an answer first
  2. 12foundation · easy

    A module defines a local value named `common_tags`. How can the root module reference this local value?

    Select an answer first
  3. 13application · easy

    A module defines `locals { common_tags = { Env = "prod" } }` and uses it in several resources. The root configuration also defines a local named `common_tags` with different content. The module block does not pass any variables. What happens?

    Select an answer first
  4. 14foundation · easy

    What is the scope of a local value defined in a child module?

    Select an answer first
  5. 15expert · easy

    A root configuration defines `variable "name_prefix" { default = "app" }` and calls a module that declares `variable "name_prefix" { default = "svc" }`. The module block passes `name_prefix = "web"`. Inside the module, a resource uses `var.name_prefix`. What value does the resource get?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-ASSOCIATE-004” is a trademark of its owner, used for identification only.