A cloud architect is creating a Terraform configuration to deploy resources in AWS. The architect needs to store the state file in a remote backend that supports state locking and encryption at rest. Which backend should the architect configure?
Trap 1: Local file system with Terraform Cloud
Local file system is not remote; Terraform Cloud is a separate option.
Trap 2: Azure Blob Storage with a lease blob for locking
Azure Blob is for Azure, not AWS.
Trap 3: Google Cloud Storage with object versioning
GCS is for GCP, not AWS.
- A
Local file system with Terraform Cloud
Why wrong: Local file system is not remote; Terraform Cloud is a separate option.
- B
S3 with DynamoDB for state locking
S3 backend with DynamoDB provides remote state and locking.
- C
Azure Blob Storage with a lease blob for locking
Why wrong: Azure Blob is for Azure, not AWS.
- D
Google Cloud Storage with object versioning
Why wrong: GCS is for GCP, not AWS.