Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A security engineer is configuring Workforce Identity Federation to grant external security analysts access to Google Cloud resources in a project named analytics-prod. The identity provider (IdP) is integrated via an organization-level workforce pool named corp-analysts-pool.
The engineer must satisfy the following requirements:
roles/storage.objectViewer) to all users belonging to the IdP group sec-analysts.Which configuration should the security engineer apply?
Workforce Identity Federation allows users managed in an external IdP (such as Microsoft Entra ID or Okta) to access Google Cloud resources directly without synchronizing user accounts into Cloud Identity. Group-based access is granted by referencing the mapped google.groups attribute using a specific principalSet:// resource identifier format under the organization-scoped workforce identity pool. The session duration setting manages the credential lifecycle and controls how long federated sessions and security tokens remain valid.
google.groups, IAM requires the principalSet:// prefix targeting the workforce pool resource path followed by /group/GROUP_ID. Specifically, principalSet://iam.googleapis.com/locations/global/workforcePools/corp-analysts-pool/group/sec-analysts ensures all analysts within that group inherit roles/storage.objectViewer on analytics-prod.--session-duration=14400s (4 hours) at the workforce identity pool level directly governs the maximum lifetime of issued Google Cloud access tokens, federated web console sign-in sessions, and gcloud CLI sessions. Google Cloud supports workforce pool session durations between 15 minutes (900s) and 12 hours (43200s), making 14,400 seconds valid.gcloud CLI) access pathways.locations/global/workforcePools/), avoiding hardcoded project numbers in member identifiers.This approach uses the exact workforce pool principal identifier syntax and leverages the native --session-duration parameter on the workforce pool resource to enforce access boundaries and credential lifecycles cleanly.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.