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

28 minutes, 59 seconds remaining!

GCP Associate Cloud Engineer Practice Question

Your three-node GKE Standard cluster in project "proj-a" has Workload Identity enabled. A Deployment uses the Kubernetes service account web-sa and pulls its container image from us-central1-docker.pkg.dev/proj-a/app/backend. After migrating the image from Container Registry to Artifact Registry, every newly created Pod immediately enters ImagePullBackOff with 403 "permission denied" errors, even though the image path is correct. To restore pulls while following Google-recommended least-privilege practises, which single configuration change should you make?

  • Grant the roles/artifactregistry.reader IAM role to the cluster's default Compute Engine service account that runs the nodes.

  • Grant the roles/artifactregistry.reader IAM role directly to the Kubernetes service account web-sa inside the cluster.

  • Edit the node pool to add the OAuth scope https://www.googleapis.com/auth/devstorage.read_only so nodes can pull images from Artifact Registry.

  • Create (or reuse) a Google service account, grant it roles/artifactregistry.reader, annotate the web-sa Kubernetes service account with iam.gke.io/gcp-service-account pointing to that Google service account, and redeploy the Pods.

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
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