ExamGecko
Question list
Search
Search

Question 172 - Terraform Associate 003 discussion

Report
Export

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

A.
True
Answers
A.
True
B.
False
Answers
B.
False
Suggested answer: A

Explanation:

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.

Terraform documentation on sensitive outputs: Terraform Output Values

asked 18/09/2024
Andrew Kavanagh
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first