Question

Difficulty: MediumProvisioning Storage and Database Systems

A fintech company is setting up an automated provisioning pipeline using Infrastructure as Code (IaC) to deploy a regional, highly available relational database system on Google Cloud. The system must meet strict compliance standards requiring customer-managed encryption keys for data at rest and continuous protection against state file corruption during automated IaC deployments. Which TWO deployment and provisioning actions should the cloud architect implement to fulfill these requirements?

  1. Configure a Cloud Storage bucket with Object Versioning and state locking enabled to store the Terraform remote state files securely.Answer
  2. Provision a Cloud SQL instance with regional High Availability enabled and configure it to use a Customer-Managed Encryption Key (CMEK) hosted in Cloud KMS.Answer
  3. C
    Store the Terraform state files in a local Git repository with pre-commit hooks to handle lock synchronization across concurrent pipeline runs.
  4. D
    Provision a globally distributed Cloud Spanner instance configured with Customer-Supplied Encryption Keys (CSEK) passed via raw keys during creation.

Answer

The architect must configure a Cloud Storage bucket with Object Versioning and state locking for Terraform remote state storage, and provision a Cloud SQL instance with regional High Availability encrypted using a Customer-Managed Encryption Key (CMEK) from Cloud KMS.
Provisioning a Cloud SQL instance with regional High Availability using Cloud KMS Customer-Managed Encryption Keys (CMEK) meets both the availability and compliance requirements for a regional relational database. Storing the Terraform state file in a remote Cloud Storage bucket with Object Versioning and state locking ensures concurrency protection and resilience against state corruption.

Step-by-Step Solution

1
Identify the proper database provisioning configuration for regional high availability and encryption governance.
Cloud SQL configured with regional availability (primary and standby instances across zones) combined with CMEK via Cloud KMS fulfills both high availability and customer-managed key compliance.
Cloud SQL matches single-region relational database demands without introducing the cost or multi-region overhead of Cloud Spanner.
2
Determine the secure Infrastructure as Code (IaC) state management strategy.
Terraform state must be configured to use a remote Cloud Storage backend with Object Versioning and locking enabled.
This prevents race conditions during concurrent CI/CD pipeline executions and enables state recovery in case of accidental corruption.

Key Concept

Provisioning highly available relational databases with CMEK and securing IaC state management in Google Cloud
Rate this question