Exam Terraform-Associate-003 Topic 1 Question 4 Discussion
Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 4
Topic #: 1
Question #: 4
Topic #: 1
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
Suggested Answer: A Vote an answer
A Terraform output that sets the "sensitive" argument to true will store that value in the state file. The purpose of setting sensitive = true is to prevent the value from being displayed in the CLI output during terraform plan and terraform apply, and to mask it in the Terraform UI. However, it does not affect the storage of the value in the state file. Sensitive outputs are still written to the state file to ensure that Terraform can manage resources correctly during subsequent operations.
Reference:
Terraform documentation on sensitive outputs: Terraform Output Values
Reference:
Terraform documentation on sensitive outputs: Terraform Output Values
by None at Jun 10, 2024, 07:55 AM
0
0
0
10
Comments
None
2024-06-10 07:55:42Upvoting 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.
Report Comment
Commenting
You can sign-up / login (it's free).