terraform-associate question 370 discussion

View all HashiCorp Certified: Terraform Associate Exam here
back to hashicorp forum

Question 370

A Terraform output that sets the ''sensitive'' argument to true will not store that value in the state
file.

  • A. True
  • B. False
Answer:

B


User Votes:
A
50%
B 1 votes
50%
Discussions
0 / 1000
Aamir_Ahmed
4 weeks ago

Setting the sensitive = true argument for a Terraform output does not prevent the value from being stored in the state file.

Instead, it only affects how the value is displayed. Specifically, it prevents the value from being shown in the Terraform output when you run terraform output. The value will still be stored in the state file, but it will be masked when you run commands that display outputs to the console.