GCP PCA · Question 40 · Design for Security
You are configuring a GKE cluster that runs multiple microservices. One specific microservice (Pod A) needs to read data from a Cloud Storage bucket. You want to follow the principle of least privilege and avoid using long-lived service account keys. Which TWO steps are required to implement Workload Identity for this pod? (Select TWO)
You are configuring a GKE cluster that runs multiple microservices. One specific microservice (Pod A) needs to read data from a Cloud Storage bucket. You want to follow the principle of least privilege and avoid using long-lived service account keys. Which TWO steps are required to implement Workload Identity for this pod? (Select TWO)
Answer options:
Create a Google Cloud Service Account (GSA) and grant it the Storage Object Viewer role.
Download the JSON key for the GSA and mount it as a Kubernetes Secret in Pod A.
Assign the GSA directly to the GKE Node Pool.
Create a Kubernetes Service Account (KSA), annotate it with the GSA, and configure an IAM policy binding between the KSA and GSA.
Enable the Metadata Concealment feature on the GKE cluster.
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Professional Cloud Architect Practice Exam 7
50 questions · hints · full answers · grading
Expert