Encryption and Key Management
In one sentence
What it is
All data stored on Google Cloud is encrypted at rest automatically, with keys the provider manages. This happens whether or not you configure anything, and it requires no action from you.
Key management services exist for the cases where default encryption is not sufficient — usually because a regulation, a contract or an internal policy requires that your organisation controls the key rather than the provider.
Why it matters
Controlling the key gives you a control that permissions alone do not: the ability to make data unreadable everywhere at once by disabling or destroying the key. That is a meaningful guarantee for regulated data and for offboarding.
It also carries real risk. If you destroy a key, the data encrypted with it is unrecoverable — including your backups. Taking control of keys means taking responsibility for a new category of outage, and exams test whether you understand that trade-off rather than treating customer-managed keys as strictly better.
The encryption options
| Option | Who holds the key | When it is the right answer |
|---|---|---|
| Default encryption | The provider, entirely. | The default. Sufficient for most data and requires no operational work. |
| Customer-managed keys (CMEK) | You, in the platform's key management service. | A policy or regulation requires your organisation to control the key lifecycle and be able to revoke access. |
| Customer-supplied keys (CSEK) | You, entirely outside the platform, supplied with each request. | The key may never be stored by the provider at all. Operationally demanding and narrowly applicable. |
| Hardware security module backing | You, with keys held in certified hardware. | Compliance regimes that mandate hardware-protected key storage. |
Key concepts
- Key ring — a container grouping keys in a location. Keys cannot be moved between rings or regions afterwards.
- Key version — keys have versions; rotation creates a new version for encrypting new data while old versions remain available to decrypt existing data.
- Rotation — replacing the active key version on a schedule, limiting how much data any single version protects.
- Destruction and scheduled deletion — destroying a version is deliberately delayed, giving a window to recover from a mistake.
- Envelope encryption — data is encrypted with a data key, and that data key is itself encrypted by the key management key. This is what makes rotation efficient at scale.
- Separation of duties — the identity administering keys should be distinct from the identity administering the data. This is a control the exams expect you to apply.
- Encryption in transit — separate from all of the above and applied automatically to traffic across the provider's network and to its APIs.
Secrets are a different problem
Key management protects data at rest. Secret management handles the credentials your application needs at runtime — API tokens, database passwords, third-party keys. These are related but distinct problems and the exams keep them distinct.
- Store secrets in a dedicated secret management service, never in source control, container images or environment variables baked into a build.
- Grant access to a specific secret version using IAM, so each workload reads only what it needs.
- Version secrets so rotation can happen without a simultaneous change across every consumer.
- Have the application fetch secrets at startup or on demand rather than receiving them through the deployment pipeline.
- Audit access — knowing which identity read which secret and when is often a compliance requirement.
Common use cases
- Encrypting a storage bucket or database with a customer-managed key to satisfy a regulatory requirement.
- Rotating keys automatically on a schedule to limit exposure from any single version.
- Revoking access to a dataset organisation-wide by disabling the key protecting it.
- Keeping key administration in a separate project managed by a security team.
- Storing database credentials in a secret manager and granting access only to the service that needs them.
Certification relevance
Where this topic appears, and how deeply each exam goes into it. These are our own assessments based on published exam guides.
- Professional Cloud Security Engineer
A core domain. CMEK, CSEK, rotation, separation of duties and the operational consequences are all directly tested.
- Professional Cloud Architect
Appears in compliance scenarios and in questions about designing for data sovereignty.
- Associate Cloud Engineer
Conceptual understanding of default encryption and when customer-managed keys are required.
- Professional Cloud Developer
Secret management from the application's perspective, and avoiding credentials in images or code.
Practice questions
Security practice questions
6 original questions with full explanations.
Related Certifications
Related Cloud Topics
- Identity and Access Management (IAM)Who can do what to which resource: members, roles, policy inheritance, service accounts and least privilege.
- Security Posture and Threat DetectionFinding misconfigurations, detecting threats, understanding audit logs and running a detection and response capability.
- Cloud StorageObject storage for files of any size: buckets, storage classes, lifecycle rules and access control.
- Cloud SQLManaged relational databases — MySQL, PostgreSQL and SQL Server — with automated backups, replication and failover.