Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Cloud KMS Study Notes

Cloud Key Management Service (Cloud KMS) lets you create, manage, and use cryptographic keys to protect data in Google Cloud. It underpins customer-managed encryption keys (CMEK) for services such as Cloud Storage, BigQuery, and Compute Engine persistent disks.

Exam tip: If the question mentions controlling rotation or revoking access to encrypted data at rest, the answer is CMEK with Cloud KMS.

Key facts

What the exam expects you to know

Cloud KMS vs Secret Manager: when to use which

Use Cloud KMS when you need cryptographic keys to encrypt data, sign artifacts, or provide CMEK for Google services such as BigQuery and Cloud Storage. Use Secret Manager when you need to store and retrieve a secret value itself, such as a password, token, or API key, for an application to use at runtime. KMS never returns your key material to you; Secret Manager does return the stored secret to authorized callers. Exam wording decides it: 'encrypt this dataset with our own key' is KMS, while 'store this database password securely' is Secret Manager. See also the Secret Manager notes.

Useful gcloud commands

gcloud kms keyrings create my-ring --location=global
gcloud kms keys create my-key --keyring=my-ring --location=global --purpose=encryption
gcloud kms encrypt --key=my-key --keyring=my-ring --location=global --plaintext-file=plain.txt --ciphertext-file=cipher.txt
gcloud kms keys versions destroy 1 --key=my-key --keyring=my-ring --location=global

Common exam traps

Frequently asked questions

What is the difference between CMEK and CSEK?

With CMEK, keys live in Cloud KMS under your control and Google services request them when needed, so rotation and disabling are managed centrally. With CSEK, you supply the raw key with each operation and Google does not persist it, which gives control but puts key delivery and loss risk entirely on you.

Does deleting a project delete its KMS keys?

No, key destruction is a separate scheduled operation with a waiting period by default, and key material is not removed simply because a resource using it is deleted. Administrators must explicitly disable or destroy key versions. This separation protects against accidental permanent data loss from a single mistaken deletion.

Why choose an HSM key over a software key?

HSM keys keep key material inside FIPS 140-2 Level 3 certified hardware modules, which some regulations and enterprise policies require. Software keys use the same API and features but are protected in software. On the exam, wording about strict compliance or hardware-backed protection points to the HSM protection level.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.