TERRAFORM-ASSOCIATE-004 · Question #120
Which option cannot be used to keep secrets out of Terraform configuration files?
The correct answer is D. secure string. Terraform provides several legitimate mechanisms for supplying secrets without hardcoding them in .tf files: environment variables prefixed with TF_VAR_ (option B), the -var flag at the command line (option C), and Terraform providers such as HashiCorp Vault (option A) that…
Question
Options
- AA Terraform provider
- BEnvironment variables
- CA -var flag
- Dsecure string
How the community answered
(64 responses)- A2% (1)
- B2% (1)
- C3% (2)
- D94% (60)
Explanation
Terraform provides several legitimate mechanisms for supplying secrets without hardcoding them in .tf files: environment variables prefixed with TF_VAR_ (option B), the -var flag at the command line (option C), and Terraform providers such as HashiCorp Vault (option A) that retrieve secrets dynamically at runtime. 'secure string' is not a Terraform construct - it is a concept from AWS SSM Parameter Store. There is no built-in Terraform feature called 'secure string', making it the invalid option for secret management in Terraform.
Topics
Community Discussion
No community discussion yet for this question.