TERRAFORM-ASSOCIATE-004 · Question #246
TERRAFORM-ASSOCIATE-004 Question #246: Real Exam Question with Answer & Explanation
The correct answer is A: True. Local values (locals {}) are scoped to a module and are not directly visible outside. To make them available to callers, you must define outputs in the module. Outputs act as the interface for exposing values from a child module to the root module.
Question
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module's configuration.
Options
- ATrue
- BFalse
Explanation
Local values (locals {}) are scoped to a module and are not directly visible outside. To make them available to callers, you must define outputs in the module. Outputs act as the interface for exposing values from a child module to the root module.
Topics
Community Discussion
No community discussion yet for this question.