ExamGecko
Question list
Search
Search

Question 27 - Terraform Associate 003 discussion

Report
Export

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?

A.
Copy the sensitive variables into your Terraform code
Answers
A.
Copy the sensitive variables into your Terraform code
B.
Store the sensitive variables in a secure_varS.tf file
Answers
B.
Store the sensitive variables in a secure_varS.tf file
C.
Store the sensitive variables as plain text in a source code repository
Answers
C.
Store the sensitive variables as plain text in a source code repository
D.
Pass variables to Terraform with a -var flag
Answers
D.
Pass variables to Terraform with a -var flag
Suggested answer: D

Explanation:

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.

asked 18/09/2024
Morris Djavaheri
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first