An enterprise security auditor requires read-only access to inspect the configuration and operational status of Google Kubernetes Engine (GKE) clusters within a Google Cloud project. The auditor must not have permission to modify cluster settings, delete nodes, or deploy workloads. Following Google's recommended security best practices for least privilege, which IAM role should be assigned to the auditor?
- Kubernetes Engine Viewer (roles/container.viewer)Answer
- BProject Viewer (roles/viewer)
- CKubernetes Engine Developer (roles/container.developer)
- DKubernetes Engine Cluster Admin (roles/container.clusterAdmin)
Answer
Kubernetes Engine Viewer (roles/container.viewer)
The Kubernetes Engine Viewer role (roles/container.viewer) grants read-only permissions to view GKE clusters, workloads, and related resources without enabling any modification, creation, or deletion capabilities. This aligns strictly with the principle of least privilege.
Step-by-Step Solution
Key Concept
Selecting service-specific predefined IAM roles over primitive roles to satisfy least privilege
Estimated Time:1m 15s