HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #128
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
Sign in or unlock TERRAFORM-ASSOCIATE-003 to reveal the answer and full explanation for question #128. The question stem and answer options stay visible for context.
Use the Terraform CLI (outside of core workflow)
Question
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
Options
- ACopy the sensitive variables into your Terraform code
- BStore the sensitive variables in a secure_varS.tf file
- CStore the sensitive variables as plain text in a source code repository
- DPass variables to Terraform with a -var flag
Unlock TERRAFORM-ASSOCIATE-003 to see the answer
You've previewed enough free TERRAFORM-ASSOCIATE-003 questions. Unlock TERRAFORM-ASSOCIATE-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#sensitive variables#CI/CD pipeline#-var flag#secrets injection