VPC Service Controls, Cloud KMS, Sensitive Data Protection and advanced IAM for the Professional Cloud Security Engineer exam
Four groups of controls show up constantly on the Professional Cloud Security Engineer exam: VPC Service Controls, Cloud KMS and encryption options, Sensitive Data Protection, and advanced IAM (deny policies, conditions, organization policies, Privileged Access Manager). They're spread across sections 1, 2 and 3, about 70% of the exam combined. This article explains each as "when to use it, key configuration, what it's confused with", with practice questions.
Key takeaways
- Four groups of controls appear heavily in the PCSE exam: VPC Service Controls, Cloud KMS and encryption choices, Sensitive Data Protection, and advanced IAM; they sit in sections 1, 2 and 3 and make up about 70% of the exam.
- Blocking BigQuery data from being copied to another project is VPC Service Controls' job, not a firewall's; run dry-run before enforcing.
- If you only need to manage your own keys, CMEK is simpler than CSEK; if you must recover the original value, use tokenization or FPE, not redaction.
- For temporary elevated access, use Privileged Access Manager instead of granting Owner to the operations group.
VPC Service Controls
VPC Service Controls (VPC SC) puts a perimeter around projects and restricts API calls to managed services (BigQuery, Cloud Storage and many others) so data can't be copied out, even by users with valid IAM permissions.
| Component | Role |
|---|---|
| Service perimeter | The protected projects and services; requests from outside to protected services are blocked |
| Dry-run mode | Logs violations without blocking, for testing before enforcement |
| Access levels (Access Context Manager) | Allow outside access by condition: IP, identity, device (practice question #358) |
| Ingress and egress rules | Allow specific flows into or out of the perimeter (identities, projects, API methods) |
| Perimeter bridges | Let projects in two perimeters communicate |
| Private Google Access with restricted.googleapis.com | Routes VPC and on-premises traffic to VPC SC-supported APIs over a dedicated IP range |
VPC SC doesn't replace IAM: IAM decides who can do what, VPC SC decides where requests may come from. Questions often need both.
Encryption and Cloud KMS
| Option | Who manages keys | Use when |
|---|---|---|
| Google default encryption | No special requirement; all data at rest is encrypted | |
| CMEK (Cloud KMS, software) | You manage keys in Cloud KMS | You need to rotate, disable and control access to keys (question #45) |
| CMEK with HSM (Cloud HSM) | You, keys in FIPS 140-2 Level 3 HSMs | Regulations require hardware keys |
| Cloud EKM | You, keys in a key manager outside Google | Regulations require keys never to reside at Google |
| CSEK | You supply the key with each request | A Cloud Storage feature (CSEK for Compute Engine is deprecated); heavy management burden |
- Structure: key rings (per location) hold keys, keys have versions; rotation creates a new version and old data still decrypts with old versions.
- Separation of duties: key administrators (Cloud KMS Admin) differ from key users (CryptoKey Encrypter/Decrypter); keep KMS in a dedicated project.
- Envelope encryption: a DEK encrypts data locally, a KEK in Cloud KMS encrypts the DEK, and the encrypted DEK is stored with the data (question #19).
- Encryption in use: Confidential Computing (Confidential VMs, Confidential GKE Nodes) encrypts data in memory.
Sensitive Data Protection
Sensitive Data Protection (formerly Cloud DLP) discovers and transforms sensitive data in Cloud Storage, BigQuery, images and text.
| De-identification technique | Result | When |
|---|---|---|
| Redaction | Removes the value | No need to keep the original; hiding PII in images and text (question #36, question #23) |
| Masking | Replaces characters, e.g. ****1234 | Showing part of a value to users |
| Bucketing, generalization | Replaces values with ranges | Statistics with lower re-identification risk |
| Deterministic encryption / tokenization | Same input gives the same token, reversible with the key | Joins across tables plus the ability to restore |
| Format-preserving encryption (FPE) | Token keeps format and length, reversible | Legacy systems needing the format; tracking values over time while protecting identity (question #17) |
| Cryptographic hashing | One-way hash | No need to recover the original |
| Date shifting | Shifts dates randomly but keeps intervals | Health data, time-series analysis |
The discovery service periodically profiles BigQuery, Cloud Storage and other sources for sensitive data and can publish findings to Security Command Center.
Advanced IAM
| Tool | Used for |
|---|---|
| Allow policies inherited down the hierarchy | Grant roles to groups at organization, folder or project; parent grants are inherited (question #39) |
| IAM deny policies | Block specific permissions regardless of allow policies, e.g. no one outside security can delete projects |
| IAM conditions | Conditional grants: by time, resource name, tags |
| Privileged Access Manager | Temporary elevated access with approval and logging (just-in-time access) |
| Policy Intelligence | IAM Recommender trims excess permissions; Policy Analyzer answers "who has what"; Policy Troubleshooter explains denials |
| Organization policies | Org-wide configuration constraints: disable service account key creation, restrict resource locations, domain restricted sharing, require CMEK, block external IPs on VMs |
| Service account impersonation | Users borrow a service account's permissions temporarily via Service Account Token Creator instead of downloading keys |
IAM governs who can do what; organization policies govern how resources may be configured. "Make sure nobody in the organization can create ..." usually means an organization policy.
Common traps
- Using firewalls to stop BigQuery data being copied to another project: that's VPC SC's job.
- Choosing CSEK when you just need to manage your own keys: CMEK is simpler and more widely supported; older questions mentioning CSEK for Compute Engine are outdated since that feature is deprecated.
- Choosing redaction when the original must be recoverable: use tokenization or FPE.
- Enforcing VPC SC immediately: run dry-run first so legitimate flows aren't blocked.
- Giving operators Owner instead of using Privileged Access Manager for temporary elevation.
Start practicing
Try the 60 free Professional Cloud Security Engineer questions, then a timed exam (Pro). For the exam overview, see the Professional Cloud Security Engineer study guide.