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 contractors access to Google Cloud resources using their corporate OpenID Connect (OIDC) identity provider, eliminating the need to synchronize user accounts to Cloud Identity.
After creating the workforce pool and configuring the OIDC provider with the appropriate issuer URL, client ID, client secret, and attribute mappings, the engineer must enable the contractors to authenticate securely through the Google Cloud CLI (gcloud) using interactive browser-based sign-in.
Which command should the security engineer execute to generate the configuration file required for browser-based sign-in?
gcloud iam workforce-pools create-login-config isThe gcloud iam workforce-pools create-login-config command generates a client-side configuration file containing the necessary authorization endpoints and audience URI to facilitate interactive, browser-based authentication for external identities using Workforce Identity Federation.
https://auth.cloud.google/authorize), Security Token Service endpoints (token_url and token_info_url), and the external account audience matching the workforce pool provider.gcloud sign-in: Users can initiate interactive authentication by executing gcloud auth login --login-config=login.json or by activating the file with gcloud config set auth/login_config_file login.json.//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID/providers/PROVIDER_ID) as the target audience.gcloud CLI, the browser, Google's authorization endpoint, and the external identity provider.Generating a login configuration via create-login-config is the standard, documented method in Google Cloud for interactive browser-based workforce federation. It explicitly prepares the client environment to redirect to the configured external identity provider for credential challenge and returns the federated token to the CLI.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.