A financial services firm is provisioning a relational database on Google Cloud to process transactional ledger records confined strictly within a single GCP region. The system architecture requires full ACID compliance, automated point-in-time recovery, multi-zone high availability, and customer-managed encryption keys (CMEK) integrated with Cloud KMS. The platform engineering team must manage all infrastructure using Terraform and ensure that multiple engineers can execute provisioning safely without risk of state corruption or concurrent execution conflicts. Which architecture provisioning design fulfills all business and operational requirements?
- Provision a Cloud SQL instance configured for High Availability using Customer-Managed Encryption Keys (CMEK), and configure the Terraform remote backend in a Cloud Storage bucket with object versioning and state locking enabled.Answer
- BProvision a multi-region Cloud Spanner instance configured with Customer-Managed Encryption Keys (CMEK), and store the Terraform state in a Cloud Storage bucket with object versioning and state locking enabled.
- CProvision a Cloud SQL instance configured for High Availability using Customer-Supplied Encryption Keys (CSEK) passed via environment variables, and store the Terraform state in a Cloud Storage bucket with object versioning enabled.
- DProvision a Cloud SQL instance configured for High Availability using Customer-Managed Encryption Keys (CMEK), while storing the Terraform state file in an unversioned local directory synced across engineers via cloud file backup.
Answer
Deploy a Cloud SQL instance with High Availability enabled and CMEK encryption, while maintaining Terraform state in a remote Cloud Storage bucket with object versioning and state locking.
The correct strategy leverages Cloud SQL to fulfill single-region high-availability relational requirements with CMEK integration, combined with a Google Cloud Storage Terraform remote backend configured with object versioning and state locking to protect infrastructure state during team operations.
Step-by-Step Solution
Key Concept
Provisioning Cloud SQL database instances with CMEK and managing Terraform state securely via remote GCS backends.