Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 183


Why does this backend configuration not follow best practices?

Show Answer
Correct Answer: A

Storing credentials, such as access keys and secret keys, directly in a Terraform configuration file is not a best practice. This can lead to security risks, as sensitive information can be exposed in version control systems, logs, or to unauthorized users. Instead, credentials should be managed using more secure methods such as environment variables, AWS IAM roles, or secret management services.

Discussion

7 comments
Sign in to comment
BurakkoOption: A
Sep 3, 2022

%100 A

depal_dhirOption: A
Sep 7, 2022

Access Key and Secret Key inside the config file? Really?

InformationOverloadOption: A
Dec 29, 2022

Nobrainer

kennynelconOption: A
Feb 11, 2023

A is the answer

phidelicsOption: A
Mar 22, 2023

Never and never store your credentials in your terraform config

AlandtOption: A
Jan 23, 2024

Easy come on, everyone should know this.

090200fOption: A
Jul 25, 2024

for better understanding visit https://www.hashicorp.com/blog/managing-credentials-in-terraform-cloud-and-enterprise so never ever store your credentials in terraform config directly