ExamGecko
Question list
Search
Search

Question 39 - Terraform Associate 003 discussion

Report
Export

When you use a remote backend that needs authentication, HashiCorp recommends that you:

A.
Write the authentication credentials in the Terraform configuration files
Answers
A.
Write the authentication credentials in the Terraform configuration files
B.
Keep the Terraform configuration files in a secret store
Answers
B.
Keep the Terraform configuration files in a secret store
C.
Push your Terraform configuration to an encrypted git repository
Answers
C.
Push your Terraform configuration to an encrypted git repository
D.
Use partial configuration to load the authentication credentials outside of the Terraform code
Answers
D.
Use partial configuration to load the authentication credentials outside of the Terraform code
Suggested answer: D

Explanation:

This is the recommended way to use a remote backend that needs authentication, as it allows you to provide the credentials via environment variables, command-line arguments, or interactive prompts, without storing them in the Terraform configuration files.

asked 18/09/2024
Sterling White
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first