Exam4Training

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

When you use a remote backend that needs authentication, HashiCorp recommends that you:
A . Write the authentication credentials in the Terraform configuration files
B . Keep the Terraform configuration files in a secret store
C . Push your Terraform configuration to an encrypted git repository
D . Use partial configuration to load the authentication credentials outside of the Terraform code

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.

Exit mobile version