Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud Security Engineer practice bank has 1,343 more like it. Try 10 free: instant score, no account.
An enterprise executes automated CI/CD deployment pipelines on an external computing platform. The security architecture team requires that external workloads access Google Cloud resources to deploy infrastructure across multiple projects without using downloadable service account keys. Furthermore, the team mandates that service account impersonation must be strictly restricted to jobs originating from specific repositories and branch references asserted in the external identity provider's token.
Which strategy should the security engineer implement to establish this federation trust relationship?
Identity-Aware Proxy (IAP) and Identity Platform are Google Cloud services used to control user access to web applications and cloud APIs by authenticating end-users through identity providers (such as OAuth, SAML, OIDC, email/password, or social logins) and issuing Identity Platform JSON Web Tokens.
signInWithIdp endpoint exchanges external provider credentials for an Identity Platform ID token used for application authorization, not a standard Google Cloud IAM access token used for service account impersonation across Google Cloud APIs.principalSet://iam.googleapis.com syntax.The requirement was to enable external business partners or end customers to log into a custom web portal protected by Identity-Aware Proxy using their own corporate identity providers.
For infrastructure automation and direct Google Cloud API access from external workloads, Workload Identity Federation is the native IAM feature designed specifically for keyless machine authentication.
Google Cloud Directory Sync (GCDS) is a one-way directory synchronization utility designed to synchronize user, group, and contact objects from on-premises LDAP or Active Directory systems into Cloud Identity or Google Workspace.
The enterprise needed to provision corporate employee user accounts and security groups from an on-premises Microsoft Active Directory Domain Services (AD DS) environment to enable workforce Single Sign-On (SSO) to the Google Cloud Console.
Workforce identity synchronization via GCDS addresses human directory integration, whereas non-human systems running in third-party clouds or automated pipelines require Workload Identity Federation.
Workload Identity Federation is a Google Cloud Identity and Access Management (IAM) mechanism that allows workloads running outside Google Cloud (such as multi-cloud environments, on-premises data centers, or CI/CD platforms) to authenticate directly to Google Cloud APIs using short-lived credentials derived from their native identity providers (IdPs).
attribute.repository, attribute.ref). Granting the Workload Identity User role (roles/iam.workloadIdentityUser) on the specific Google Cloud service account to a filtered principalSet://iam.googleapis.com/.../attribute.repository/REPO_NAME or principal:// ensures that only authorized jobs matching the exact branch and repository criteria can impersonate the service account.This architecture establishes a secure, standard-compliant trust federation directly at the IAM layer, meeting all zero-trust compliance standards without requiring custom credential broker infrastructure or synchronization tooling.
This approach relies on traditional service account keys, where a long-lived asymmetric key pair is generated by Google Cloud, exported as a JSON credential file, encrypted using a symmetric key hosted in Cloud Key Management Service (Cloud KMS), and provided to the external runner.
The workload ran in an isolated legacy environment that lacked support for OIDC, SAML 2.0, or Workload Identity Federation, and where organizational policy explicitly permitted service account key export with customer-managed encryption.
Google Cloud strongly discourages creating user-managed service account keys for CI/CD environments because Workload Identity Federation replaces them with short-lived, verifiable cryptographic token exchanges.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated