Quiz — GKE, Workload Identity & GCP Networking¶
Quiz results are saved to your browser's local storage and will persist between sessions.
Node service accounts, the remove_default_node_pool transient pool gotcha, Workload Identity's 4-part handshake, node capacity vs allocatable, multi-arch images, VPC peering, and IAP TCP forwarding. Reference: §10 Production Architecture.
13 questions. Back to all topics
GKE node pools implicitly use the default Compute Engine service account unless one is explicitly specified. What are the two independent reasons NOT to rely on it, beyond just "it might not exist yet"?
You set remove_default_node_pool = true on a google_container_cluster resource and give the SEPARATE google_container_node_pool resource a proper node_config with a dedicated service account. Cluster creation still fails on a missing-service-account error. Why?
A Kubernetes ServiceAccount named my-app-sa and a GCP IAM service account named sa-backend-dev@project.iam.gserviceaccount.com both exist. Are these the same identity?
You have roles/owner on a GCP project, confirmed via gcloud projects get-iam-policy, but kubectl get pods still returns "Forbidden" on a freshly created GKE cluster. What's the most likely explanation?
kubectl get pods fails with a Forbidden error, but IAM policy checks confirm the active account has roles/owner with no conditions attached. What's a likely cause worth checking before assuming the IAM policy itself is wrong?
You change a GKE node pool's machine_type in Terraform (e.g. e2-small to e2-standard-2) and run apply. What should you expect?
A GKE node shows Capacity: cpu: 2 but Allocatable: cpu: 940m in kubectl describe node. Why is allocatable so much lower than capacity?
A pod's FailedScheduling event says "Insufficient memory" on an e2-small node. You resize the node pool to e2-medium and the memory error disappears — but scheduling still fails, now with "Insufficient cpu" alone. Why didn't the resize fix the CPU side too?
A GKE cluster has workload_identity_config set correctly. Pods still can't use Workload Identity to authenticate as their intended GCP service account. What's a likely missing piece?
Why create a GKE cluster with remove_default_node_pool = true plus a separate, explicit google_container_node_pool resource, instead of just letting the cluster's inline default node pool exist?
You launch a private GCP VM with no external IP address and try to connect using gcloud compute ssh vm-a --tunnel-through-iap, which fails with error 4033 / 4003. Which firewall rule is required to make IAP SSH work?
You want two VMs in two separate GCP VPCs (vpc-a with subnet 10.10.0.0/24 and vpc-b with subnet 10.20.0.0/24) to ping each other using VPC Peering. What must you configure in Terraform?
You build a Docker image on an Apple Silicon Mac (M1/M2/M3/M4), push it to Artifact Registry, and deploy it via helm_release to a standard e2-standard-2 GKE node pool. The pod fails to start with no match for platform in manifest: not found. Why?
Quiz Progress
0 / 0 questions answered (0%)
0 correct