0
0
Terraformcloud~5 mins

State encryption at rest in Terraform - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does state encryption at rest mean in Terraform?
It means the Terraform state file is stored securely so that its data is protected from unauthorized access when saved on disk or cloud storage.
Click to reveal answer
beginner
Why is encrypting Terraform state at rest important?
Because the state file contains sensitive information like resource IDs and secrets, encrypting it prevents data leaks if storage is compromised.
Click to reveal answer
intermediate
How do you enable state encryption at rest when using AWS S3 as backend in Terraform?
You enable server-side encryption by configuring the S3 bucket to use SSE-S3 with AES256 or SSE-KMS using AWS KMS keys.
Click to reveal answer
intermediate
What Terraform backend supports automatic encryption of state files by default?
Terraform Cloud and Terraform Enterprise automatically encrypt state files at rest without extra configuration.
Click to reveal answer
intermediate
Give an example of enabling encryption at rest for Terraform state using Azure Blob Storage backend.
In Azure Blob Storage, encryption at rest is enabled by default. You just configure the backend with the storage account and container, and Azure handles encryption automatically.
Click to reveal answer
What is the main purpose of encrypting Terraform state at rest?
ATo reduce the size of the state file
BTo speed up Terraform apply operations
CTo protect sensitive data in the state file from unauthorized access
DTo enable multi-user collaboration
Which Terraform backend encrypts state files automatically without extra setup?
ALocal backend
BTerraform Cloud
CAWS S3 without encryption enabled
DAzure Blob Storage without encryption enabled
How can you enable encryption for Terraform state stored in AWS S3?
AUse local backend instead
BNo encryption is possible with S3
CEncrypt the state file manually before upload
DConfigure server-side encryption with AES256 or KMS keys on the S3 bucket
What sensitive information might be exposed if Terraform state is not encrypted at rest?
AResource IDs and secrets
BTerraform version number
CTerraform CLI commands history
DUser login credentials
Which cloud provider's storage encrypts Terraform state at rest by default?
AAzure Blob Storage
BAWS S3 without configuration
CGoogle Cloud Storage without configuration
DLocal filesystem
Explain why encrypting Terraform state at rest is a best practice and how it protects your infrastructure data.
Think about what information is stored in the state file and why it needs protection.
You got /4 concepts.
    Describe how you would configure encryption at rest for Terraform state using AWS S3 backend.
    Focus on backend settings and AWS encryption options.
    You got /4 concepts.