VPC Service Controls, Cloud KMS, Sensitive Data Protection and advanced IAM for the Professional Cloud Security Engineer exam

4 min read

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.

ComponentRole
Service perimeterThe protected projects and services; requests from outside to protected services are blocked
Dry-run modeLogs 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 rulesAllow specific flows into or out of the perimeter (identities, projects, API methods)
Perimeter bridgesLet projects in two perimeters communicate
Private Google Access with restricted.googleapis.comRoutes 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

OptionWho manages keysUse when
Google default encryptionGoogleNo special requirement; all data at rest is encrypted
CMEK (Cloud KMS, software)You manage keys in Cloud KMSYou need to rotate, disable and control access to keys (question #45)
CMEK with HSM (Cloud HSM)You, keys in FIPS 140-2 Level 3 HSMsRegulations require hardware keys
Cloud EKMYou, keys in a key manager outside GoogleRegulations require keys never to reside at Google
CSEKYou supply the key with each requestA 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 techniqueResultWhen
RedactionRemoves the valueNo need to keep the original; hiding PII in images and text (question #36, question #23)
MaskingReplaces characters, e.g. ****1234Showing part of a value to users
Bucketing, generalizationReplaces values with rangesStatistics with lower re-identification risk
Deterministic encryption / tokenizationSame input gives the same token, reversible with the keyJoins across tables plus the ability to restore
Format-preserving encryption (FPE)Token keeps format and length, reversibleLegacy systems needing the format; tracking values over time while protecting identity (question #17)
Cryptographic hashingOne-way hashNo need to recover the original
Date shiftingShifts dates randomly but keeps intervalsHealth 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

ToolUsed for
Allow policies inherited down the hierarchyGrant roles to groups at organization, folder or project; parent grants are inherited (question #39)
IAM deny policiesBlock specific permissions regardless of allow policies, e.g. no one outside security can delete projects
IAM conditionsConditional grants: by time, resource name, tags
Privileged Access ManagerTemporary elevated access with approval and logging (just-in-time access)
Policy IntelligenceIAM Recommender trims excess permissions; Policy Analyzer answers "who has what"; Policy Troubleshooter explains denials
Organization policiesOrg-wide configuration constraints: disable service account key creation, restrict resource locations, domain restricted sharing, require CMEK, block external IPs on VMs
Service account impersonationUsers 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.

Official sources