Google Cloud Professional Cloud Developer — Question 172

You are a developer at a large organization. You have an application written in Go running in a production Google Kubernetes Engine (GKE) cluster. You need to add a new feature that requires access to BigQuery. You want to grant BigQuery access to your GKE cluster following Google-recommended best practices. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because it follows the best practice of using Workload Identity, which allows the GKE cluster to automatically manage the association between the Google service account and the Kubernetes service account, ensuring secure access to BigQuery without managing JSON keys directly. The other options involve storing JSON keys, which is not recommended due to security concerns.