A media streaming company is deploying a regional user profile microservice on Google Cloud that requires a relational database with high availability across zones. Company policy mandates that all database data at rest must be encrypted using key management controls in Cloud KMS to meet compliance audit requirements without managing raw encryption keys manually. The operations team uses Terraform to manage cloud resources and must maintain state file integrity during automated deployments. Which provisioning strategy meets these architectural, compliance, and infrastructure management requirements?
- Provision a Cloud SQL PostgreSQL instance configured for High Availability across multiple zones, integrated with a Cloud KMS key for Customer-Managed Encryption Keys (CMEK), and store the Terraform state in a Cloud Storage bucket with object versioning enabled.Cevap
- BProvision a Cloud Spanner multi-region instance integrated with Cloud KMS encryption, and store the Terraform state in a Cloud Storage bucket with object versioning enabled.
- CProvision a Cloud SQL PostgreSQL instance configured for High Availability using Customer-Supplied Encryption Keys (CSEK) specified via raw 256-bit key strings in Terraform configuration variables, and store the state in Cloud Storage.
- DProvision a Cloud SQL PostgreSQL instance configured for High Availability using a Cloud KMS key for Customer-Managed Encryption Keys (CMEK), while storing the Terraform state file in a local directory committed to the project's Git repository.
Cevap
Provision a Cloud SQL PostgreSQL instance configured for High Availability across multiple zones, integrated with a Cloud KMS key for Customer-Managed Encryption Keys (CMEK), and store the Terraform state in a Cloud Storage bucket with object versioning enabled.
The correct response combines appropriate database service sizing (Cloud SQL for regional high-availability relational needs), cloud-native key governance (CMEK with Cloud KMS), and enterprise IaC best practices (remote state storage in Cloud Storage with versioning).
Adım Adım Çözüm
Anahtar Kavram
Cloud SQL Provisioning with CMEK and IaC Remote State Management