Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam Terraform-Associate-004 Topic 6 Question 134 Discussion

Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 134
Topic #: 6
When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.

Suggested Answer: B Vote an answer

Rationale for Correct answer: Marking a variable (or output) as sensitive = true primarily prevents Terraform from displaying the value in CLI output and in some UI contexts. It does not prevent the value from being stored in the state file if that value is used by resources. Terraform state must often store attribute values to track and manage infrastructure; sensitive marking is about redaction, not state omission.
Analysis of Incorrect Options (Distractors):
A (True): Incorrect-sensitive values can still be written to state; you must protect state storage (encryption, access control) and avoid storing secrets in state where possible.
Key Concept: Sensitive values are redacted in output, but still can exist in state.
Reference:

by Pearl at Sep 23, 2026, 01:40 AM

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
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.