GCP Associate Cloud Engineer Practice Question

A development team wants its Pods running in the default namespace of a GKE cluster to upload objects to a Cloud Storage bucket without storing any service-account key files. They created a Google service account named gsa-uploader and a Kubernetes service account named ksa-uploader, and Workload Identity is already enabled on the cluster. Which IAM configuration will let the Pods obtain short-lived credentials and act as gsa-uploader when calling Cloud Storage?

  • Add the gsa-uploader service account email to a secret in the default namespace so Pods can mount it at runtime.

  • Grant the role roles/iam.workloadIdentityUser on gsa-uploader to the principal serviceAccount:PROJECT_ID.svc.id.goog[default/ksa-uploader].

  • Grant the role roles/iam.serviceAccountUser on ksa-uploader to the principal gsa-uploader@PROJECT_ID.iam.gserviceaccount.com.

  • Grant the role roles/storage.objectAdmin on the Cloud Storage bucket to serviceAccount:PROJECT_ID.svc.id.goog[default/ksa-uploader] and make no other changes.

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