Question

Difficulty: MediumManaging Encryption Keys with Cloud KMS

A security administration team needs to perform an immediate manual key rotation for a customer-managed key stored in Google Cloud KMS due to a updated corporate compliance policy. The team must ensure that new data is encrypted using the updated key version, existing data can still be decrypted, and least privilege IAM access is maintained without granting administrative control over the key ring. Which of the following actions should you perform to meet these requirements? (Select TWO)

  1. Create a new CryptoKeyVersion under the existing CryptoKey and set it as the primary version.Answer
  2. B
    Delete the old Cloud KMS Key Ring using gcloud to ensure outdated key material cannot be accessed.
  3. Grant the Cloud KMS CryptoKey Encrypter/Decrypter role to application service accounts requiring data access instead of primitive roles.Answer
  4. D
    Assign the primitive Owner role on the project to the application service accounts to ensure uninterrupted key operation permissions.
  5. E
    Configure an IAM deny policy on the child key ring resource to override access permissions granted at the parent project level.

Answer

To perform manual rotation while preserving decryption capabilities and least-privilege security, create a new CryptoKeyVersion and set it as primary, and assign the predefined Cloud KMS CryptoKey Encrypter/Decrypter role to application service accounts.
Creating a new key version and making it primary enables manual key rotation while keeping older versions active for decrypting previously encrypted data. Combining this with the predefined Cloud KMS CryptoKey Encrypter/Decrypter role ensures service accounts have only the cryptographic capabilities required for application workloads without administrative control over key resources.

Step-by-Step Solution

1
Perform key rotation in Cloud KMS
A new CryptoKeyVersion is added and designated as the primary version.
Setting the new version as primary forces new encrypt requests to use the updated key version while retaining older key versions so existing ciphertext can still be decrypted.
2
Configure least-privilege access control
Application service accounts receive the Cloud KMS CryptoKey Encrypter/Decrypter role.
This predefined role limits permissions specifically to cryptographic operations without exposing administrative functions or granting excessive broad permissions.

Key Concept

Cloud KMS Key Rotation and IAM Least Privilege
Rate this question