Exam Terraform-Associate-003 Topic 3 Question 5 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 5
Topic #: 3
Terraform variables and outputs that set the description argument will store that description in the state file.

Suggested Answer: B Vote an answer

Comprehensive and Detailed in-Depth Explanation:The description argument for Terraform variables and outputs is purely for documentation purposes and isnotstored in the Terraform state file.
* Terraform variables and outputs can have descriptions for readability and clarity in .tf files.
* However, these descriptions are not retained in the Terraform state file.
* The state file only stores actual values and references needed for resource management, not metadata such as descriptions.
Official Terraform Documentation Reference:Terraform Variables - HashiCorp Documentation Terraform Outputs - HashiCorp Documentation

by Uknown69CYP at Mar 22, 2025, 03:33 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
Uknown69CYP
2025-03-22 15:33:46
Terraform variables and outputs that set the "description" argument are not stored in the state file. The "description" argument is used to provide a human-readable description of the variable or output, and it is intended to be used as documentation for other users of the Terraform code.
upvoted 1 times
...
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.

0
0
0
10