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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise is deploying an automated, non-interactive data processing pipeline to a Google Kubernetes Engine (GKE) cluster. The pipeline runs scheduled nightly jobs and microservices that query BigQuery datasets and write report outputs to Cloud Storage buckets without human intervention.
Security policy requires that:
Which identity configuration should the security team implement to satisfy these requirements?
Assign the required BigQuery and Cloud Storage IAM roles directly to the GKE node pool Compute Engine default service account.
Provision user-managed service account private keys (JSON), store them in Secret Manager, and mount them as files inside the pipeline containers.
Generate OAuth 2.0 user refresh tokens using developer credentials and store them in Kubernetes Secrets for the background jobs to consume.
Configure GKE Workload Identity by binding the roles/iam.workloadIdentityUser role on a dedicated Google Service Account to the Kubernetes Service Account, and annotating the Kubernetes Service Account.
Assign the required BigQuery and Cloud Storage IAM roles directly to the GKE node pool Compute Engine default service account.
Provision user-managed service account private keys (JSON), store them in Secret Manager, and mount them as files inside the pipeline containers.
Generate OAuth 2.0 user refresh tokens using developer credentials and store them in Kubernetes Secrets for the background jobs to consume.
Configure GKE Workload Identity by binding the roles/iam.workloadIdentityUser role on a dedicated Google Service Account to the Kubernetes Service Account, and annotating the Kubernetes Service Account.
GKE Workload Identity is the recommended, best-practice mechanism for granting non-interactive, automated containerized workloads on Google Kubernetes Engine access to Google Cloud APIs. It enables a Kubernetes Service Account (KSA) running within a specific namespace to securely impersonate a Google Service Account (GSA) without requiring static credentials or JSON private keys.
$PROJECT_ID.svc.id.goog), administrators do not need to generate, manage, or store long-lived JSON service account key files in Kubernetes Secrets.roles/iam.workloadIdentityUser IAM role on the target GSA specifically to the principal member string serviceAccount:$PROJECT_ID.svc.id.goog[$NAMESPACE/$KSA_NAME].iam.gke.io/gcp-service-account=$GSA_NAME@$PROJECT_ID.iam.gserviceaccount.com annotation.Workload Identity completely eliminates the attack surface associated with credential exfiltration from local pod storage, enforces strong workload isolation across namespaces, and natively supports non-interactive execution for automated pipelines.