Question 160
In a Terraform deployment, a cloud migration team needs to prevent sensitive output values from appearing in ordinary CLI output displays. Which option is the best technical fit?
Explanation
Correct Answer
Sensitive marking changes presentation but does not remove the value from state. This meets the stated requirement to prevent sensitive output values from appearing in ordinary CLI output displays.
Incorrect Answers
Output description is intended to document an output's meaning for people consuming a module interface; descriptions make module return values understandable. That is not the specific requirement to prevent sensitive output values from appearing in ordinary CLI output displays.
Output depends_on edge is intended to defer a root output until a side-effect resource finishes even though its value does not reference that resource; output depends_on declares hidden ordering requirements for published values. That is not the specific requirement to prevent sensitive output values from appearing in ordinary CLI output displays.
Child module output is intended to pass a generated subnet ID to a root module consumer; module outputs create explicit return-value interfaces. That is not the specific requirement to prevent sensitive output values from appearing in ordinary CLI output displays.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests