Question

Difficulty: HardProvisioning Compute Engine and Kubernetes Engine Clusters

A healthcare enterprise is provisioning a private Google Kubernetes Engine (GKE) cluster in GCP to execute clinical processing workloads. The architecture must enforce strict security controls: administrative API access to the GKE control plane must be restricted exclusively to the corporate management subnet (192.168.10.0/24192.168.10.0/24) routed over Dedicated Interconnect, and pods must authenticate to Google Cloud SQL instances without using static service account keys or relying on node-level identities. Which TWO configuration actions should the Cloud Architect execute to satisfy these security requirements?

  1. Enable Control Plane Authorized Networks on the GKE cluster and specify 192.168.10.0/24192.168.10.0/24 as an authorized IP range.Answer
  2. Enable Workload Identity on the GKE cluster and bind the Kubernetes service account to a Google Cloud service account with minimal IAM roles.Answer
  3. C
    Disable the public endpoint on the cluster while leaving Control Plane Authorized Networks disabled, relying on default VPC Peering routing to limit access.
  4. D
    Assign the primitive Editor role (roles/editor) to the Compute Engine default service account attached to the GKE node pool.
  5. E
    Grant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the GKE node pool service account so pods can generate short-lived credentials.

Answer

The Cloud Architect must enable Control Plane Authorized Networks specifying the corporate subnet 192.168.10.0/24192.168.10.0/24, and enable Workload Identity to map Kubernetes service accounts to GCP service accounts for keyless Cloud SQL authentication.
Enabling Control Plane Authorized Networks restricts administrative endpoint access strictly to specified IP ranges like the corporate management subnet (192.168.10.0/24192.168.10.0/24). Enabling Workload Identity provides secure pod-level authentication to Google Cloud SQL using IAM service accounts without downloading or managing static security keys.

Step-by-Step Solution

1
Configure GKE control plane access security controls.
Enable Control Plane Authorized Networks on the GKE cluster and add CIDR block 192.168.10.0/24192.168.10.0/24.
This blocks unauthorized endpoints from reaching the Kubernetes master API server, restricting access solely to the dedicated corporate management subnet.
2
Configure pod-level identity and IAM access.
Enable Workload Identity on the GKE cluster, create a dedicated GCP Service Account with Cloud SQL Client permissions, and bind it to the Kubernetes Service Account.
This allows containerized applications to authenticate to GCP APIs seamlessly without embedding or managing long-lived JSON service account keys.

Key Concept

Private GKE Cluster Hardening and Workload Identity Federation
Estimated Time:2m 30s
Rate this question