Question

Difficulty: MediumManaging Encryption Keys with Cloud KMS

A security team alerts a cloud administrator that a specific version of a Cloud KMS CryptoKey used for encrypting database backups may have been exposed. The administrator must quickly stop any new data from being encrypted with the compromised key version while retaining the ability to decrypt existing backups. Additionally, the organization wants to comply with Cloud KMS resource lifecycle constraints. Which two actions should the administrator take to resolve this security incident? (Select TWO)

  1. Disable the compromised key version and set a new, uncompromised key version as the primary key version for the CryptoKey.Answer
  2. Retain the KeyRing and CryptoKey resource metadata in Google Cloud, recognizing that Cloud KMS KeyRings and CryptoKeys cannot be deleted once created.Answer
  3. C
    Issue a command to permanently delete the entire KeyRing resource from the GCP project to immediately purge all associated keys and metadata.
  4. D
    Grant the primitive Owner role to the automated backup service account to allow it to bypass key state checks and overwrite the key state.
  5. E
    Revoke the Cloud KMS Encrypter role at the resource level while leaving it assigned at the organization level, expecting resource-level revocation to deny inherited access.

Answer

The administrator should disable the compromised key version while creating a new primary version for new encryptions, and recognize that KeyRing and CryptoKey metadata resources cannot be deleted in Cloud KMS.
Disabling the affected CryptoKey version prevents any service from using it to encrypt new data while preserving decrypt capabilities when re-enabled. Setting a new primary version ensures seamless transition for ongoing encryption. Furthermore, Cloud KMS enforces immutability on KeyRing and CryptoKey objects, meaning these administrative containers cannot be deleted.

Step-by-Step Solution

1
Analyze key state management for compromised key material.
Disabling a key version prevents future encrypt operations using that version without deleting the material immediately.
Allows rotation to a new primary key version while keeping existing ciphertexts decryptable when required.
2
Evaluate Cloud KMS resource lifecycle constraints.
Cloud KMS KeyRings and CryptoKeys cannot be deleted from a project.
Maintains immutable audit records and resource naming consistency across GCP.

Key Concept

Cloud KMS Key Lifecycle Management and KeyRing Immutability
Rate this question