TERRAFORM-ASSOCIATE-004 · Question #172
TERRAFORM-ASSOCIATE-004 Question #172: Real Exam Question with Answer & Explanation
The correct answer is A: True. 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
Question
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
Options
- ATrue
- BFalse
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.
Topics
Community Discussion
No community discussion yet for this question.