Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 291 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 291
Topic #: 1
[All Terraform Associate Questions]

The Terraform CLI will print output values from a child module after running terraform apply.

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Ramdi1
Highly Voted 12 months ago
Selected Answer: B
Output values have several uses: A child module can use outputs to expose a subset of its resource attributes to a parent module. A root module can use outputs to print certain values in the CLI output after running terraform apply.
upvoted 5 times
...
090200f
Most Recent 3 months, 2 weeks ago
Selected Answer: B
Accessing Child Module Outputs In a parent module, outputs of child modules are available in expressions as module.<MODULE NAME>.<OUTPUT NAME>. For example, if a child module named web_server declared an output named instance_ip_addr, you could access that value as module.web_server.instance_ip_addr.
upvoted 1 times
090200f
3 months, 2 weeks ago
https://developer.hashicorp.com/terraform/language/values/outputs
upvoted 1 times
...
...
PolitoMex
11 months, 3 weeks ago
Selected Answer: B
child modules send outputs to root module and then the root module prints the outputs.
upvoted 1 times
...
Stargazer11
12 months ago
Selected Answer: A
True. Output values are stored in state file. Only after a terraform apply, it knows that there are values in state file. Running terraform output output_name results in warning Warning: No outputs found. The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration with the `output` keyword and run `terraform refresh` for it to become available. If you are using interpolation, please verify the interpolated value is not empty. You can use the `terraform console` command to assist.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...