BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Terraform-Associate-004 Exam - Topic 3 Question 10 Discussion

Posted by Lorenza on May 16, 2026 at 01:11 PM

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?

Suggested Answer: D

This is a secure way to inject sensitive variables into your Terraform run, as they will not be stored in any file or source code repository. You can also use environment variables or variable files with encryption to pass sensitive variables to Terraform.


Get Premium Terraform-Associate-004 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
29 comments · newest first
MI
Millie 3 days ago
Option A is risky. Sensitive data shouldn't be in the code.
KE
Keneth 8 days ago
Agreed! A secure_varS.tf file keeps things organized and safe.
WI
Willow 13 days ago
I think option B is the best choice. Secure storage is key.
HO
Hoa 18 days ago
Definitely B! We need to protect sensitive data at all costs.
TO
Tori 23 days ago
Storing as plain text? That's just asking for trouble.
MA
Markus 29 days ago
Copying sensitive variables into the code? That's a big no for me!
TA
Tasia 1 month ago
Passing variables with -var is okay, but not as secure as B.
TR
Tresa 1 month ago
Agreed! A secure_varS.tf file keeps things organized and safe.
AN
Annmarie 1 month ago
I think option B is the best choice. Secure storage is key.
JE
Jerrod 2 months ago
Definitely B! We need to protect sensitive data at all costs.
CL
Clorinda 2 months ago
Storing as plain text? That's just asking for trouble.
JE
Jesusita 2 months ago
Copying sensitive variables into the code? That's a big no for me!
EU
Eun 2 months ago
Passing variables with -var is okay, but not as secure as B.
EL
Elouise 2 months ago
Agreed! A secure_varS.tf file keeps things organized and safe.
WI
Wilbert 3 months ago
I think option B is the best choice. Secure storage is key.
DE
Derrick 3 months ago
Surprised people still use plain text in repos!
TH
Thomasena 3 months ago
I thought plain text was okay for testing?
VA
Val 3 months ago
A is a definite no-go!
ST
Stephaine 3 months ago
Storing in a secure_varS.tf? Sounds risky.
JI
Jill 3 months ago
D is the best option for security!
CA
Carol 4 months ago
B sounds like a good compromise, but how secure is it really?
SH
Sheron 4 months ago
I thought passing variables with -var was less secure, is it really safe?
TA
Tambra 4 months ago
A is definitely a no-go, that's just asking for trouble.
PA
Paris 4 months ago
Storing in a secure_varS.tf? Seems risky to me.
SH
Shaniqua 4 months ago
D is the best option for security!
ET
Ethan 4 months ago
Storing sensitive variables as plain text in a repo is definitely a no-go, so C is out for sure!
AN
Annmarie 5 months ago
Passing variables with the -var flag sounds familiar, but I can't recall if it's secure enough for sensitive data.
SI
Sina 5 months ago
I think using a secure_varS.tf file could be a good option, but I'm not entirely sure if that's the best practice.
GE
Georgene 6 months ago
I remember we discussed how sensitive data shouldn't be hardcoded in Terraform files, so A seems wrong.
0/2000 characters

Save Cancel