nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #253

TERRAFORM-ASSOCIATE-004 Question #253: Real Exam Question with Answer & Explanation

The correct answer is C: Use environment variables to configure authentication credentials outside of your Terraform. Credentials should not be hardcoded in Terraform files. Best practice is to configure them via environment variables or secret managers.

Submitted by ngozi_ng· Apr 18, 2026Manage Terraform State

Question

When you use a backend that requires authentication, it is best practice to:

Options

  • ARun all Terraform commands on a shared server or container.
  • BConfigure the authentication credentials in your Terraform configuration files, and store them in
  • CUse environment variables to configure authentication credentials outside of your Terraform
  • DNone of the above.

Explanation

Credentials should not be hardcoded in Terraform files. Best practice is to configure them via environment variables or secret managers.

Topics

#Authentication#Backend Configuration#Security Best Practices#Environment Variables

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions