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 160 discussion

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

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

  • 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
Burakko
Highly Voted 2 years, 2 months ago
Selected Answer: B
"Terraform will still record sensitive values in the state, and so anyone who can access the state data will have access to the sensitive values in cleartext."
upvoted 14 times
...
camps
Highly Voted 1 year, 7 months ago
Selected Answer: B
B. False. A Terraform output that sets the "sensitive" argument to true will still store that value in the state file. The "sensitive" argument is used to prevent the value from being displayed in plain text in the Terraform CLI output, Terraform Cloud UI, and other locations where output values may be displayed. However, the value will still be stored in the Terraform state file, which is used to track the current state of the infrastructure. It is important to be aware that while the "sensitive" argument can help to prevent accidental exposure of sensitive values, it is not a substitute for proper security practices such as role-based access control and data encryption.
upvoted 5 times
...
Bilalglg93350
Most Recent 1 year, 8 months ago
This statement is true. When you set the sensitive argument to true in a Terraform output, the output value will not be shown in plain text in the Terraform state file or in Terraform command output. This is useful for sensitive information such as passwords, keys, or other secrets. While the value of the output is still stored in the state file, it is stored in a hashed format that is not easily readable. Additionally, the value will not be shown in plain text when running the terraform output command or when viewing the state file. Setting the sensitive argument to true in a Terraform output can help prevent sensitive information from being accidentally exposed or leaked.
upvoted 1 times
...
Loopjoke
1 year, 9 months ago
Y’all wrong. Answer A and ChatGPT has as True as well.
upvoted 1 times
lezgino
1 year, 9 months ago
The answer is B. ChatGPT also can say wrong anwer. It should learn first)
upvoted 6 times
...
...
nakikoo
1 year, 11 months ago
Selected Answer: B
it still store in statefile, but is hidden for security when accessing provider information that requires sensitive information such as credentials
upvoted 1 times
...
G4Exams
2 years ago
Selected Answer: B
When we mark something as sensitive in the configuration then it's hidden from the CLI for example when an output is set. But it will still be plain text in the state file.
upvoted 1 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: B
https://www.terraform.io/language/values/outputs
upvoted 3 times
...
Hizumi
2 years, 2 months ago
Answer is B. Reference: https://www.terraform.io/language/values/outputs
upvoted 2 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 ...