HashiCorp Certified: Terraform Associate — Question 348

Why should secrets not be hard coded into Terraform code? (Choose two.)

Answer options

Correct answer: A, B

Explanation

The correct answers are A and B because hardcoding secrets makes the code less flexible for reuse and poses security risks when the code is stored in version control systems that might not be secure. Option C, while relevant, does not directly address the main concerns about hardcoding secrets, and option D is unrelated to the issue of hardcoding since it discusses password rotation instead.