Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 18


You should store secret data in the same version control repository as your Terraform configuration.

Show Answer
Correct Answer: B

It is not recommended to store secret data, such as passwords, API keys, or other sensitive information, in the same version control repository as your Terraform configuration. This is because version control systems are designed for sharing and collaboration and may not have robust security mechanisms to protect against unauthorized access. Storing secrets in a dedicated secret store that enforces encryption and strict access control is a more secure practice.

Discussion

12 comments
Sign in to comment
fabiomlopOption: B
Jun 18, 2022

If you store secrets in a version control system, they will be exposed in plain text to anyone with access to the repository.

EltoothOption: B
Jul 6, 2022

B is correct answer : false.

SilentMilliOption: B
Feb 11, 2023

It is generally considered insecure to store secret data, such as passwords, API keys, and other sensitive information, in the same version control repository as your Terraform configuration. This is because version control repositories are often publicly accessible, and if sensitive information is stored in the repository it can be easily accessed by unauthorized individuals. Additionally, version control repositories typically have a history of all changes made to files, so even if sensitive information is deleted at a later point, it can still be retrieved from the repository history. To properly secure secret data, it is recommended to store it in a secure and encrypted format, such as in a secure vault or by using a tool specifically designed for storing secrets.

EnirasOption: B
May 5, 2022

It's false. Your secrets are stored in a dedicated secret store that enforces encryption and strict access control.

tfdestroyOption: B
Jul 27, 2023

B: It is not recommended to store secret data such as passwords, API keys, or other sensitive information in your version control system (VCS). This is a general best practice in software development, not just with Terraform.

Molly1994Option: B
May 31, 2024

You should store secrets in vaults. And retrieve the secrets when used in your terraform application. So the answer is B false.

NunyabiznesOption: A
Mar 19, 2023

I know it is not recommended, but technically you really "could" store it. SO, this is kinda confusing since it is not asking for Best Security Practices, but just want to check if it is possible or not

Multi_Cloud
Mar 26, 2023

If you re-read the question it says, You "should" - which means the answer should be B - false. Had it been "could/might" your argument would have been correct.

campsOption: B
Apr 1, 2023

B. False Storing secret data in the same version control repository as Terraform configuration is not recommended as it increases the risk of exposing sensitive information. Version control systems are designed for sharing and collaboration, which means that they may not have robust security mechanisms to protect against unauthorized access.

karendavtyanOption: B
May 5, 2023

B. False

IK912Option: B
Jun 18, 2023

Answer Definitely B

Busi57Option: B
Jul 23, 2023

it's no secure B

JayanthOption: B
Jul 28, 2023

B. False