HashiCorp Certified: Terraform Associate — Question 267
When you use a remote backend that needs authentication, HashiCorp recommends that you:
Answer options
- A. Use partial configuration to load the authentication credentials outside of the Terraform code
- B. Push your Terraform configuration to an encrypted git repository
- C. Write the authentication credentials in the Terraform configuration files
- D. Keep the Terraform configuration files in a secret store
Correct answer: A
Explanation
The correct answer is A because using partial configuration allows for loading sensitive authentication credentials securely without hardcoding them into the Terraform files. The other options, such as B, C, and D, either expose credentials or do not align with best practices for managing sensitive information.