CertifyDeck
All cheat sheets
Professional Cloud Security Engineer · CHEAT SHEET

Google Cloud Certified Professional Cloud Security Engineer

Key concepts grouped by official exam weight.

Download as PDF (free, no sign-up)

1. Configuring access

25–25%

Managing Cloud Identity

  • Configuring Google Cloud Directory Sync and implement single sign-on (SSO) with a third-party identity provider
  • Managing a super administrator account
  • The external IdP or HR system should be the source of truth: changes are made there and automated provisioning (GCDS, Entra ID or Okta connectors) propagates them to Cloud Identity. Propagate suspensions and deletions too: suspending in Cloud Identity ends sessions and invalidates tokens, and orphaned accounts allow username reuse. Keep Cloud Identity identities a subset of the IdP's.
  • The Admin SDK Directory API creates, updates, suspends, deletes and restores users and manages groups and their members (OWNER, MANAGER, MEMBER). Request the narrowest OAuth scope, such as admin.directory.user.readonly or admin.directory.group.member. To let a service account administer the directory, assign it an admin role (never Super Admin) rather than domain-wide delegation.
  • Workforce Identity Federation lets users of an external OIDC or SAML 2.0 IdP access Google Cloud with SSO without syncing accounts or running GCDS. It uses organization-level workforce identity pools and providers with attribute mappings and CEL attribute conditions. Map google.subject to an immutable value and grant roles with principal:// or principalSet:// (group or attribute) identifiers.

Managing service accounts

  • Service accounts are both principals and resources: limit their permissions and protect them against impersonation. Avoid default service accounts with Editor by enforcing iam.automaticIamGrantsForDefaultServiceAccounts and iam.managed.preventPrivilegedBasicRolesForDefaultServiceAccounts. Grant Service Account Token Creator on the specific account, not the project, and restrict SSH and metadata server access on VMs with privileged accounts.
  • Service accounts are for workloads without user involvement: attach them to the resource, use Workload Identity Federation for GKE on GKE and Workload Identity Federation outside Google Cloud. To act on a user's behalf use OAuth 2.0; for local development, user credentials or impersonation. Don't use service accounts in client apps or the console, and they can't own Workspace assets.
  • Create single-purpose service accounts with gcloud iam service-accounts create and grant Service Account User (iam.serviceAccounts.actAs) on the account to whoever must attach it to resources. Disable before deleting: an account recreated with the same name is a new identity and loses its IAM bindings. iam.managed.disableServiceAccountCreation blocks creation, and cross-project use depends on iam.disableCrossProjectServiceAccountUsage.
  • Service account keys are the exception: enforce iam.managed.disableServiceAccountKeyCreation at the organization root with per-project exceptions, and set iam.serviceAccountKeyExposureResponse to DISABLE_KEY. When a key is compromised, disabling it does not revoke issued tokens: disable the account or apply a deny policy. Check usage with Activity Analyzer and Cloud Monitoring before disabling and deleting.
  • Short-lived credentials (OAuth 2.0 access tokens, OIDC ID tokens, signed JWTs and blobs) are created with the Service Account Credentials API and are safer than service account keys. The Service Account Token Creator role lets a caller create them; for ID tokens only, the Service Account OpenID Connect Identity Token Creator role is enough. Tokens come without a refresh token and self-impersonation is prohibited.

Managing authentication

  • Creating a password and session management policy for user accounts
  • Setting up Security Assertion Markup Language (SAML) and OAuth
  • Configuring and enforcing 2-step verification

Managing and implementing authorization controls

  • Separation of duties keeps any single principal from holding every permission needed for a malicious action: Cloud KMS separates key managers from key users, and the Project IAM Admin or Folder IAM Admin roles manage policies without direct data access. Privileged Access Manager grants roles temporarily with justification and approval, but it does not revoke existing permanent role bindings.
  • In Cloud Storage, IAM and ACLs act in parallel: only one needs to grant access, so a public ACL can expose an object even when IAM is restrictive. Uniform bucket-level access disables ACLs, is required for managed folders, IAM conditions on the bucket and federated identities, can be required with an organization policy and can only be reverted for 90 days.
  • IAM conditions (CEL) grant roles only when an expression is true, such as a date with request.time or a prefix with resource.name scoped by resource.type; they don't apply to legacy basic roles or allUsers. Deny policies attach to organizations, folders or projects, are evaluated before allow policies, support exception principals and sets such as all service accounts in a folder, and their conditions only use tags.
  • Grant the most limited predefined or custom role at the smallest scope that works: a Pub/Sub topic or a dataset rather than the project, and the organization only when a team needs access to every project. Allow policies are inherited downwards, so avoid basic roles in production and use roles such as Folder IAM Admin to manage access without direct access to the resources.
  • Access Context Manager defines access policies that hold access levels (IP, identity, device; basic or custom in CEL) and service perimeters, but it enforces nothing itself: VPC Service Controls, IAP or Context-Aware Access bindings do. There is only one organization-level policy; scoped policies delegate folders or projects, although IAP only accepts levels from the organization policy.

Defining the resource hierarchy

  • Use a single organization and folders designed around your cloud needs (environments, regions or subsidiaries, product accountability) rather than the org chart. Create folders and projects from a pipeline with standardized names, control who holds Project Creator (granted to the whole domain by default) and use roles such as Folder Mover and inheritable tags to manage at scale.
  • An organization policy applies one constraint on an organization, folder or project and is inherited by its descendants. Managed constraints (iam.managed.*) replace legacy ones and support Policy Simulator and dry-run mode; custom constraints use CEL on resource fields with ALLOW or DENY. Policies are usually not retroactive, and inherited legacy lists merge when inheritFromParent is set.
  • Allow, deny and organization policies are inherited from the organization and folders down to projects and their resources. Allow policies are additive, so a project cannot remove an inherited role: blocking it takes a deny policy, which is always checked first and supports exception principals. Moving a project changes what it inherits, and custom roles are defined in the organization or a project, never in folders.

2. Securing communications and establishing boundary protection

22–22%

Designing and configuring perimeter security

  • Cloud NGFW groups rules into hierarchical firewall policies (organization or folders, not overridable from below, with goto_next to delegate), global and regional network firewall policies, and VPC firewall rules; secure tags are governed by IAM. IAP TCP forwarding gives SSH or RDP without external IPs, Application Load Balancers validate mTLS with a trust config, and CA Service runs private CAs.
  • Cloud NGFW Enterprise Layer 7 inspection uses zonal firewall endpoints associated with the VPC network, security profile groups (threat-prevention for intrusion prevention, url-filtering for URL filtering) and firewall policy rules with the apply_security_profile_group action. Inspecting HTTPS needs a TLS inspection policy backed by a CA Service CA pool. Cloud IDS only detects and alerts.
  • External IP addresses are publicly advertised; internal addresses are reachable only inside the VPC network and its peered or connected networks, and include privately used public IPs. VMs without external IPs reach the internet through Cloud NAT, which allows no unsolicited inbound connections, and reach Google APIs through Private Google Access. Constraints such as compute.vmExternalIpAccess limit external IPs and are not retroactive.
  • Cloud Armor applies security policies to inbound requests at load balancers: backend policies support preconfigured WAF rules based on the OWASP CRS, reCAPTCHA, throttling and rate-based bans; edge policies filter before the cache and are the only type for backend buckets. Test rules in preview mode and start with a low sensitivity level before enforcing them.
  • Secure Web Proxy controls outbound web traffic (HTTP and HTTPS) with a default deny and rules by service account, secure tag and destination host. It is deployed in the host project with a PRIVATE subnet and a proxy-only subnet per region, in explicit or next hop routing mode. With TLS inspection and a CA Service CA pool it can filter full URL paths.

Configuring boundary segmentation

  • Shared VPC centralizes networks and firewalls in the host project: compute.networkUser per subnet limits where each team deploys, and networkAdmin and securityAdmin separate network and firewall duties. VPC Network Peering only exchanges routes, is not transitive and shares no firewall rules, and compute.restrictVpcPeering limits who can peer. Hierarchical firewall policies enforce rules that projects cannot override.
  • To isolate application tiers, create one ingress rule per permitted flow using service accounts or secure tags (GCE_FIREWALL, IAM-controlled) instead of network tags, which anyone allowed to edit the VM can change. Hierarchical firewall policies apply rules to folders with target service accounts, and Private Service Connect exposes a single service from another VPC network without exchanging routes.
  • VPC Service Controls creates service perimeters that stop data in services such as BigQuery or Cloud Storage from being copied to outside resources, even with valid IAM permissions. Ingress and egress rules grant specific access by identity, source, service and method, also across organizations; bridges only join perimeters in the same organization. Dry-run mode logs violations without blocking them before you enforce changes.

Establishing private connectivity

  • Shared VPC attaches service projects to a host project's network under central administration; compute.networkUser can be granted per subnet and constraints such as compute.restrictSharedVpcSubnetworks limit usage. VPC Network Peering is not transitive and does not exchange firewall rules. On-premises hosts reach Google APIs with DNS pointing to private or restricted.googleapis.com and custom routes advertised by Cloud Router.
  • HA VPN encrypts traffic between on-premises and the VPC network with IPsec over the internet, using two interfaces per gateway. Cloud Interconnect does not encrypt traffic by default: MACsec encrypts at Layer 2 between your router and Google's edge, and HA VPN over Cloud Interconnect adds IPsec over the VLAN attachments without the internet. The compute.managed.allowedVlanAttachmentEncryption constraint can require IPsec attachments.
  • Private Google Access is enabled per subnet for VMs without external IP addresses and needs routes whose next hop is the default internet gateway. restricted.googleapis.com allows only APIs supported by VPC Service Controls, while private.googleapis.com allows most APIs. Private Service Connect endpoints use an internal IP address you choose, reachable from on-premises, with the all-apis or vpc-sc bundle.
  • Public NAT, configured on a Cloud Router in the region, gives internet egress to resources without external IP addresses and never allows unsolicited inbound connections; manual assignment provides fixed source IPs. An external IP on the interface always takes precedence over NAT. Firewall rules apply to the VMs, egress rules are evaluated before NAT, and compute.restrictCloudNATUsage limits which subnets can use Cloud NAT.

3. Ensuring data protection

23–23%

Protecting sensitive data and preventing data loss

  • The Sensitive Data Protection discovery service continuously profiles data in an organization, folder or project, while inspection jobs scan a specific location. De-identification options include redaction, replacement, masking and pseudonymization: AES-SIV and format-preserving encryption are reversible, cryptographic hashing is not. A key wrapped by Cloud KMS is the preferred way to supply keys.
  • In BigQuery, authorized views share a subset without access to the source dataset, policy tags control columns and row-level access policies filter rows by grantee list. In Cloud Storage, uniform bucket-level access disables ACLs and public access prevention blocks allUsers, both enforceable by organization policy. Cloud SQL supports IAM database authentication with roles/cloudsql.instanceUser.
  • Secret Manager stores versioned secrets encrypted at rest and in transit. Best practice is to grant roles/secretmanager.secretAccessor per secret, reference version numbers instead of latest, disable before destroying and call the API with client libraries instead of environment variables. Rotation schedules send SECRET_ROTATE to Pub/Sub, and AccessSecretVersion is recorded in Data Access audit logs.
  • Any process that can query the metadata server can read all of its values, so secrets belong in Secret Manager and processes that should not reach it must be sandboxed. On Shielded VM, the HTTPS endpoint prevents spoofing and tampering. OS Login replaces metadata-based SSH keys and compute.managed.requireOsLogin enforces it; block-project-ssh-keys stops a VM from accepting project keys.

Managing encryption at rest, in transit, and in use

  • Google default encryption encrypts all data at rest with AES-256 and no setup, but you cannot manage the keys or see their usage. CMEK with Cloud KMS or Cloud HSM gives control over rotation, destruction (crypto-shredding) and key access logs, and Autokey automates it. Cloud EKM keeps key material in an external key manager, never in Google Cloud; over a VPC it offers better availability than over the internet.
  • Cloud KMS offers the SOFTWARE, HSM (multi-tenant Cloud HSM), HSM_SINGLE_TENANT (dedicated partitions you administer) and EXTERNAL or EXTERNAL_VPC (Cloud EKM, key outside Google) protection levels. All work as CMEK and with the same APIs; Cloud HSM keys carry an attestation statement, and the cloudkms.allowedProtectionLevels constraint limits which levels can be created in a folder.
  • CMEKs are created manually or with Cloud KMS Autokey. Rotation creates a new primary version but does not re-encrypt data or disable old versions; before destroying a version, disable it and watch the logs. An imported version does not become primary on its own. In Cloud EKM, only coordinated keys over a VPC rotate automatically, and revoking access in the EKM stops the key from being used.
  • Internal-IP traffic between VMs in a VPC or peered VPCs is encrypted and authenticated automatically; external-IP traffic is not. Application-layer encryption uses envelope encryption: a local DEK per write, wrapped with a Cloud KMS KEK. CSEK applies per object only; for keys held outside Google as a default, use Cloud EKM, and GKE can encrypt Secrets with a Cloud KMS key.
  • Object Lifecycle Management applies rules with the Delete, SetStorageClass or AbortIncompleteMultipartUpload actions when an object meets all conditions (age, numNewerVersions, daysSinceNoncurrentTime, matchesPrefix and others). A new configuration replaces all existing rules. Delete does not act on held objects or on objects that have not met the retention policy, and it can delete objects in a locked bucket once eligible.

Securing AI workloads

  • To prevent unintentional exposure of data or models: minimize and de-identify training data with Sensitive Data Protection, screen prompts and responses with Model Armor (separate input and output templates, inspect and block mode) and isolate in separate projects the models not everyone may deploy. AI Protection in Security Command Center inventories models and flags those Model Armor does not protect.
  • In IaaS (your own Compute Engine VMs) you own most security: dedicated least-privilege service accounts, Shielded VM or Confidential VM (also with NVIDIA GPUs), CMEK and patching. In PaaS, Agent Platform manages the training VMs; you attach custom service accounts to each job and use CMEK, VPC Service Controls and a Private Service Connect interface or private IP to keep it unexposed.
  • Gemini Enterprise Agent Platform controls: least-privilege custom roles (for example only aiplatform.endpoints.predict), VPC Service Controls to stop exfiltration of data and models (with access levels and ingress rules for authorized sources), CMEK, Model Armor floor settings to screen every call in a project, and constraints such as vertexai.allowedModels or ainotebooks.disableRootAccess.

4. Managing operations

19–19%

Automating infrastructure and application security

  • Artifact Analysis scans Artifact Registry images automatically on push (once per digest) and keeps them current through continuous analysis, publishing changes to the container-analysis-occurrences-v1 Pub/Sub topic. On-Demand Scanning scans local or registry images from gcloud and, in Cloud Build, can fail the build before the push when blocked severities appear (list them all, for example CRITICAL|HIGH).
  • Binary Authorization enforces one policy per project (a default rule and, on GKE, specific rules) that can require signed attestations, verified by attestors whose keys can live in Cloud KMS. Dry-run mode only logs, breakglass allows emergency deployments recorded in Cloud Audit Logs, and on Cloud Run it should be required with the run.allowedBinaryAuthorizationPolicies constraint.
  • Hardened custom images are grouped in image families and retired with gcloud compute images deprecate (DEPRECATED only warns; OBSOLETE blocks VM creation). The compute.trustedImageProjects constraint limits which image projects can supply boot disks. VM Manager runs scheduled patch deployments through the OS Config agent, and OS policies keep packages and agents in their desired state.
  • Custom organization policy constraints use CEL on resource fields to block create or update operations, and should first be tested in dry-run mode. Security Health Analytics custom modules detect misconfigurations in existing resources. A security posture bundles preventive and detective controls, is deployed per level of the hierarchy, and reports drift as findings.

Configuring logging, monitoring, and detection

  • VPC Flow Logs sample and aggregate connections (denied ingress packets are not sampled), firewall rules logging is enabled per rule, and Packet Mirroring copies full packets to collectors. Cloud IDS inspects mirrored traffic and only alerts, while Cloud NGFW intrusion prevention blocks threats inline. Observability Analytics lets you aggregate logs with SQL.
  • Admin Activity and System Event audit logs are always written; Data Access logs must be enabled and, when enabled on the organization, projects cannot disable them. Aggregated sinks (intercepting or not) centralize logs, Pub/Sub feeds external SIEMs, locked log buckets fix retention, and default resource settings set location and CMEK for new buckets.
  • Security Command Center gathers findings from Event Threat Detection, Container Threat Detection and Virtual Machine Threat Detection; continuous exports to Pub/Sub enable automated response and dynamic mute rules hide findings temporarily. When responding, back up disks for forensic analysis and disable compromised accounts before deleting them.
  • Logs Viewer does not show Data Access logs in _Default; Private Logs Viewer does. Log views, with roles/logging.viewAccessor in their policy, limit which entries each user sees, and restricted fields with Logs Field Accessor hide single fields, although BigQuery does not honor them. Sinks write with their writer identity, and CMEK is set when a bucket is created.
  • To send logs to an external SIEM, create an aggregated sink at the organization or folder with a Pub/Sub topic as destination and grant the sink's writer identity the publisher role. Sinks do not route older entries: for history, copy logs from the log bucket to Cloud Storage. The push pattern with Dataflow avoids service account keys and keeps the SIEM token in Secret Manager.

5. Supporting compliance requirements

11–11%

Adhering to regulatory and industry standards requirements for the cloud

  • Each regulatory requirement maps to technical controls per layer: Bucket Lock and detailed audit logging mode for immutable records in storage; pseudonymization with Sensitive Data Protection, because encryption at rest doesn't tokenize data such as PANs; sql.restrictPublicIp for network; Confidential VM, Shielded VM and OS Login for compute; and gcp.restrictNonCmekServices with gcp.restrictCmekCryptoKeyProjects to require CMEK.
  • In shared responsibility, Google always secures the underlying infrastructure and network, and the customer always owns its access policies and data. In IaaS the customer handles most controls, such as the operating system and packages; in PaaS Google takes on more controls, and in SaaS most of them. Controls inherited from Google serve as evidence for auditors, and shared fate adds secure blueprints and the Risk Protection Program.
  • Assured Workloads applies data boundaries with residency, access and personnel controls; its frameworks support detective mode before preventive mode on existing folders. gcp.resourceLocations, ideally with value groups such as in:eu-locations, limits where new resources are created. Access Transparency logs Google access, Access Approval requires approving it first, and Key Access Justifications decides key use by justification.
  • Delimit the regulated environment by isolating in-scope workloads in dedicated projects, separate from production, dev and QA, and locate sensitive data with Sensitive Data Protection discovery. Google is responsible for the infrastructure it manages; the OS, applications, access policies and data are yours, and a BAA only covers the listed services.
  • Each requirement maps to a control: segmentation with explicit firewall rules and their logging, VPC Service Controls perimeters against exfiltration, Data Access audit logs enabled on the folder or organization, Access Transparency for Google personnel, and aggregated sinks to locked storage. Compliance Manager maps frameworks such as PCI DSS to cloud controls.