🔥 40% Off Crucial Exams Memberships — Deal ends today!

22 minutes, 42 seconds remaining!

GCP Associate Cloud Engineer Practice Question

A GKE cluster uses Workload Identity. You create a Google service account (GSA) named ar-writer@PROJECT_ID. Pods running with the Kubernetes service account (KSA) default in namespace prod must push container images to Artifact Registry without using key files. Which single configuration change lets the pods authenticate as ar-writer@PROJECT_ID?

  • Assign the roles/artifactregistry.writer role on the project directly to the KSA default in namespace prod.

  • Set the annotation iam.gke.io/gcp-service-account=serviceAccount:PROJECT_ID.svc.id.goog[prod/default] on ar-writer@PROJECT_ID; no IAM change is required.

  • Add an IAM policy binding on ar-writer@PROJECT_ID that grants the iam.workloadIdentityUser role to serviceAccount:PROJECT_ID.svc.id.goog[prod/default].

  • Grant the roles/iam.serviceAccountTokenCreator role on the project to ar-writer@PROJECT_ID.

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