GCP Associate Cloud Engineer Practice Question

Your team is migrating a GKE workload from service-account key files to Workload Identity. You have:

  • Enabled Workload Identity on the cluster.
  • Created the Google service account data-reader@PROJECT_ID.iam.gserviceaccount.com.
  • Annotated the Kubernetes service account default/ksa-reader with iam.gke.io/gcp-service-account=data-reader@PROJECT_ID.iam.gserviceaccount.com.

After redeploying, pods still receive "403 Permission denied" when calling Cloud Storage. What additional step is required so the pods can successfully authenticate as the Google service account?

  • Add an IAM policy binding that grants the roles/iam.workloadIdentityUser role on the Google service account to default/ksa-reader.

  • Enable the IAM Credentials API in the project that hosts the cluster.

  • Create a JSON key for the Google service account and mount it into the pods as a secret.

  • Grant the Kubernetes service account the Storage Object Viewer role on the target Cloud Storage bucket.

GCP Associate Cloud Engineer
Configuring access and security
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