ExamGecko
Question list
Search
Search

Question 30 - Terraform Associate 003 discussion

Report
Export

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

A.
Edit your state file to scrub out the sensitive data
Answers
A.
Edit your state file to scrub out the sensitive data
B.
Always store your secrets in a secrets.tfvars file
Answers
B.
Always store your secrets in a secrets.tfvars file
C.
Delete the state file every time you run Terraform
Answers
C.
Delete the state file every time you run Terraform
D.
Store the state in an encrypted backend
Answers
D.
Store the state in an encrypted backend
Suggested answer: D

Explanation:

This is a secure way to protect sensitive data in the state file, as it will be encrypted at rest and in transit2. The other options are not recommended, as they could lead to data loss, errors, or security breaches.

asked 18/09/2024
Md. Soyaeb Hossain
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first