In regards to Terra...
 
Notifications
Clear all

In regards to Terraform state file, select all the statements below which are correct?

1 Posts
1 Users
0 Likes
283 Views
(@monvillemauro)
Noble Member
Joined: 2 years ago
Posts: 721
Topic starter  

In regards to Terraform state file, select all the statements below which are correct?

  • A . When using local state, the state file is stored in plain-text.
  • B . The state file is always encrypted at rest.
  • C . Storing state remotely can provide better security.
  • D . Using the mask feature, you can instruct Terraform to mask sensitive data in the state file.
  • E . The Terraform state can contain sensitive data, therefore the state file should be protected from unauthorized access.
  • F . Terraform Cloud always encrypts state at rest.

Show Answer Hide Answer

Suggested Answer: A,C,E,F

Explanation:

Terraform state can contain sensitive data, depending on the resources in use and your definition of "sensitive." The state contains resource IDs and all resource attributes. For resources such as databases, this may contain initial passwords. When using local state, state is stored in plain-text JSON files.

When using remote state, state is only ever held in memory when used by Terraform. It may be encrypted at rest, but this depends on the specific remote state backend. Storing Terraform state remotely can provide better security. As of Terraform 0.9, Terraform does not persist state to the local disk when remote state is in use, and some backends can be configured to encrypt the state data at rest. Recommendations

If you manage any sensitive data with Terraform (like database passwords, user passwords, or private keys), treat the state itself as sensitive data.

Storing state remotely can provide better security. As of Terraform 0.9, Terraform does not persist state to the local disk when remote state is in use, and some backends can be configured to encrypt the state data at rest.

For example:

* Terraform Cloud always encrypts state at rest and protects it with TLS in transit. Terraform Cloud also knows the identity of the user requesting state and maintains a history of state changes. This can be used to control access and track activity. Terraform Enterprise also supports detailed audit logging.

* The S3 backend supports encryption at rest when the encrypt option is enabled. IAM policies and logging can be used to identify any invalid access. Requests for the state go over a TLS connection.

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: