U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

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?
D) Pass variables to Terraform with a -var flag
A) Copy the sensitive variables into your Terraform code
B) Store the sensitive variables in a secure_varS.tf file
C) Store the sensitive variables as plain text in a source code repository

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

Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 10
Topic #: 3
[All Terraform-Associate-004 Questions]

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?

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Georgene
2 months ago
I remember we discussed how sensitive data shouldn't be hardcoded in Terraform files, so A seems wrong.
upvoted 0 times
...

Save Cancel