The official Google Cloud Certified Professional Cloud Security Engineer syllabus, organized by domain. Check off each point as you review it.
Inicia sesión para guardar tu progreso entre sesiones.
Managing Cloud Identity
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.
Best practices for federating Google Cloud with an external identity provider ↗Microsoft Entra ID user provisioning and single sign-on ↗
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.
Workforce Identity Federation ↗Configure Workforce Identity Federation ↗
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.
Best practices for using service accounts securely ↗Organization policy constraints ↗
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.
Best practices for using service accounts securely ↗Service accounts overview ↗
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.
Disable and enable service accounts ↗Attach service accounts to resources ↗
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.
Best practices for managing service account keys ↗Respond to compromised Google Cloud credentials ↗
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.
Create short-lived credentials for a service account ↗Roles for service account authentication ↗
Workload Identity Federation lets workloads on AWS, Azure, GitHub, GitLab or any OIDC or SAML IdP access Google Cloud with federated credentials instead of service account keys. It is configured with workload identity pools, providers, attribute mappings and attribute conditions; with multi-tenant IdPs such as GitHub you must restrict the organization and use immutable attributes.
Workload Identity Federation ↗Best practices for using Workload Identity Federation ↗
Service account impersonation lets an authenticated principal get short-lived credentials for a service account; it requires iam.serviceAccounts.getAccessToken, included in the Service Account Token Creator role, granted on each service account rather than on the project or folder. It is used with --impersonate-service-account, with ADC or with the Service Account Credentials API, and audit logs show both identities.
Service account impersonation ↗Best practices for using service accounts securely ↗
Managing authentication
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.
Policy Intelligence groups tools to understand and improve policies: Policy Analyzer answers who has what access based on allow policies (it ignores deny policies), Policy Troubleshooter explains why a permission is granted or denied, role recommendations and lateral movement insights reduce privileges, and Policy Simulator tests policy changes before you apply them.
Policy Intelligence overview ↗Policy Analyzer for allow policies ↗
Grant IAM roles to Google groups that model job functions and manage membership, rather than granting to individual users; every member inherits all of the group's roles regardless of their Google Groups role. Google distinguishes organizational, collaboration, access and enforcement groups: grant access with access groups that are not nested, stop users from leaving enforcement groups and restrict external members.
Best practices for using Google groups ↗Manage groups in the Google Cloud console ↗
Privileged Access Manager provides just-in-time temporary elevation: an entitlement on an organization, folder or project defines the requesters, the roles (with IAM conditions), the maximum duration, justification and approvers, and the grant is revoked when it expires. It doesn't support the legacy Owner, Editor and Viewer basic roles, doesn't revoke existing standing roles and logs its events to Cloud Audit Logs.
Privileged Access Manager overview ↗Create entitlements in Privileged Access Manager ↗
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.
Decide a resource hierarchy for your Google Cloud landing zone ↗Access control for folders with IAM ↗
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.
Introduction to the Organization Policy Service ↗Create custom constraints ↗
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.