GCP Professional Cloud Security Engineer Practice Question

Your organization has created a workforce identity pool called europe-contractors and an OIDC workforce identity provider that trusts Azure AD. The Azure AD application issues ID tokens with claims such as sub, oid, email, and upn. Contractors can authenticate to Azure AD, but when they run gcloud auth login with the new pool, the Security Token Service returns an error stating "subject is empty." Which Google Cloud configuration change will resolve this issue?

  • Assign the iam.serviceAccountTokenCreator role to the Azure AD enterprise application on the workforce identity pool.

  • Delete the existing workforce identity provider and recreate it as a workload identity provider that supports service account impersonation.

  • Add an attribute mapping in the workforce identity provider that maps the Azure AD oid claim to the reserved attribute google.subject.

  • Use Google Cloud Directory Sync to import the contractors' Azure AD accounts into Cloud Identity so google.subject can be resolved.

GCP Professional Cloud Security Engineer
Configuring Access
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot