nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #27

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

The correct answer is D. Use partial configuration to load the authentication credentials outside of the Terraform code. 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.

Implement and maintain state

Question

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

Options

  • AWrite the authentication credentials in the Terraform configuration files
  • BKeep the Terraform configuration files in a secret store
  • CPush your Terraform configuration to an encrypted git repository
  • DUse partial configuration to load the authentication credentials outside of the Terraform code

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    8% (3)
  • C
    3% (1)
  • D
    76% (28)

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.

Topics

#partial configuration#remote backend#authentication#credentials management

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice