Soru

Zorluk: OrtaData Encryption at Rest, in Transit, and Key Management (KMS/CMEK/CSEK)

A media streaming company hosts user profile data in Cloud SQL for PostgreSQL and media assets in Cloud Storage. The security team mandates that all data at rest must be encrypted using customer-managed keys hosted in a Hardware Security Module (HSM) with automated key rotation enabled. Additionally, access to key operations must strictly follow the principle of least privilege. Which of the following actions should you perform? (Select TWO.)

  1. Create a key in Cloud KMS using the HSM protection level and grant the Cloud KMS CryptoKey Encrypter/Decrypter role specifically to the Cloud SQL and Cloud Storage Service Agents.Cevap
  2. Configure an automated rotation schedule on the Cloud KMS key so that new key versions are periodically generated without requiring manual re-encryption of existing stored data.Cevap
  3. C
    Supply Customer-Supplied Encryption Keys (CSEK) in request headers for both Cloud SQL and Cloud Storage to guarantee Google never stores key material.
  4. D
    Assign the primitive Editor role on the GCP project to the service accounts managing Cloud SQL and Cloud Storage to ensure they have encryption rights.

Cevap

Create an HSM-backed key in Cloud KMS (CMEK) with the Cloud KMS CryptoKey Encrypter/Decrypter role granted to service agents, and configure an automated rotation schedule on the Cloud KMS key.
Using Cloud KMS keys backed by Cloud HSM fulfills regulatory mandates for hardware-based key management (CMEK) while granting the Cloud KMS CryptoKey Encrypter/Decrypter role to service agents enforces least privilege. Configuring automated key rotation ensures ongoing key security compliance without disrupting access to existing encrypted data.

Adım Adım Çözüm

1
Identify key management requirements
Requirements specify HSM protection, automated key rotation, and least privilege service access for Cloud SQL and Cloud Storage.
Choosing CMEK via Cloud KMS satisfies HSM requirements and enables automated key lifecycle management.
2
Configure key protection and IAM roles
Provision a Cloud KMS key with HSM protection level and grant 'roles/cloudkms.cryptoKeyEncrypterDecrypter' to the GCP service agents for Cloud SQL and Cloud Storage.
GCP service agents require granular key access permissions rather than broad primitive roles to encrypt and decrypt data.
3
Establish key rotation policy
Set an automated rotation period on the Cloud KMS CryptoKey.
Cloud KMS handles rotating key versions automatically while retaining older key versions for existing ciphertexts.

Anahtar Kavram

Customer-Managed Encryption Keys (CMEK) with Cloud HSM and IAM Least Privilege
Bu soruyu puanla