Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 113


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

Show Answer
Correct Answer: A

When using a remote backend that requires authentication, it is recommended to use partial configuration to load the authentication credentials outside of the Terraform code. This approach ensures that sensitive data such as authentication credentials are not included directly in the Terraform configuration files. Instead, these credentials can be provided through environment variables or other secure methods during the initialization process, minimizing the risk of exposing sensitive information.

Discussion

13 comments
Sign in to comment
Hizumi
Sep 5, 2022

Answer is A. Note: We recommend omitting the token from the configuration, and instead using terraform login or manually configuring credentials in the CLI config file. Reference: https://www.terraform.io/language/settings/backends/remote

BereOption: A
Nov 27, 2023

Answer is A This means that you should use environment variables to store these credentials. The partial configuration does not include sensitive data in the file but relies on environment variables that Terraform automatically detects. Credentials and Sensitive Data https://developer.hashicorp.com/terraform/language/settings/backends/configuration#credentials-and-sensitive-data Warning: We recommend using environment variables to supply credentials and other sensitive data. If you use -backend-config or hardcode these values directly in your configuration, Terraform will include these values in both the .terraform subdirectory and in plan files. This can leak sensitive credentials.

BurakkoOption: A
Sep 1, 2022

It should be A.

jjkcoins
Sep 17, 2022

Warning: We recommend using environment variables to supply credentials and other sensitive data. If you use -backend-config or hardcode these values directly in your configuration, Terraform will include these values in both the .terraform subdirectory and in plan files. This can leak sensitive credentials.

jjkcoins
Sep 17, 2022

https://www.terraform.io/language/settings/backends/configuration#credentials-and-sensitive-data

RVivekOption: A
Sep 26, 2022

https://www.terraform.io/language/settings/backends/configuration#credentials-and-sensitive-data

legendary7
Sep 29, 2022

A is the correct answer

shopkittyOption: A
Sep 8, 2022

vote for A

hkacholiya
Sep 8, 2022

Answer is A

campsOption: A
Mar 31, 2023

it's a

cruz95Option: A
Sep 11, 2023

definitely

Tyler2023
Nov 3, 2023

Partial Configuration You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable if some arguments are provided automatically by an automation script running Terraform. When some or all of the arguments are omitted, we call this a partial configuration. With a partial configuration, the remaining configuration arguments must be provided as part of the initialization process. https://developer.hashicorp.com/terraform/language/settings/backends/configuration#partial-configuration

Tyler2023
Nov 3, 2023

Answer is A

MatttOption: A
Sep 16, 2024

Answer is A