Soru

Zorluk: OrtaProvisioning Storage and Database Systems

A cloud engineering team is automating the provisioning of an enterprise data archive on Google Cloud using Terraform. Regulatory compliance requires that all archived objects remain immutable and unmodifiable for seven years after upload. Additionally, company governance requires data at rest to be encrypted using keys managed in Cloud KMS, with automated infrastructure state tracking to prevent concurrency conflicts. Which TWO actions should the team incorporate into their automated provisioning design?

  1. Configure a Object Retention Policy on the Cloud Storage bucket with a seven-year duration and retain the policy in a locked state.Cevap
  2. Grant the Cloud Storage Service Agent service account the Cloud KMS CryptoKey Encrypter/Decrypter role on the dedicated Cloud KMS key.Cevap
  3. C
    Supply raw 256-bit key strings via Terraform configuration variables to implement Customer-Supplied Encryption Keys (CSEK) on the target bucket.
  4. D
    Store the primary Terraform state file in an unversioned local directory within the deployment pipeline workspace.

Cevap

To meet compliance and security requirements, the team must configure and lock a seven-year retention policy on the Cloud Storage bucket and grant the Cloud Storage Service Agent the Cloud KMS CryptoKey Encrypter/Decrypter role on the specified CMEK key.
Locking a Cloud Storage retention policy enforces WORM compliance so objects cannot be deleted or overwritten during the retention period. Granting the Cloud Storage service agent encrypter/decrypter rights on the Cloud KMS key enables seamless server-side CMEK encryption during bucket resource provisioning.

Adım Adım Çözüm

1
Identify the immutability requirement mechanism
Cloud Storage Retention Policies with Bucket Lock provide WORM (Write Once, Read Many) compliance.
Locking the policy prevents shortening or removing the retention period even by privileged identity accounts.
2
Determine key management authorization requirements
The Cloud Storage service agent (service-PROJECT_NUMBER@gs-project-accounts.iam.gserviceaccount.com) requires `roles/cloudkms.cryptoKeyEncrypterDecrypter` permissions.
Cloud Storage uses service-agent impersonation to encrypt and decrypt data using Cloud KMS keys.
3
Evaluate distractor configurations
Reject local state file storage and CSEK raw key configurations.
CSEK introduces raw key exposure risks in IaC code, and local unversioned state fails to provide state locking or durability.

Anahtar Kavram

Provisioning Immutable Cloud Storage with CMEK and IaC Best Practices
Bu soruyu puanla