Stage 6, Part 8 of 9, RBAC, ServiceAccounts & Security
Text
PART 8: INTERVIEW PREPARATION
38. Junior-Level Questions
| Question | Expected Answer |
| What is RBAC? | Role-Based Access Control |
| What is a ServiceAccount? | Identity for Pods |
| What is the difference between Role and ClusterRole? | Role = namespace; ClusterRole = cluster |
| What is Pod Security Standards? | Privileged, Baseline, Restricted |
| What is a webhook? | External admission callback |
39. Mid-Level Questions
| Question | Expected Answer |
| How do you debug RBAC denials? | kubectl auth can-i, describe events |
| What's the difference between Kyverno and OPA? | Kyverno = YAML, OPA = Rego |
| What is IRSA? | IAM Roles for Service Accounts (AWS) |
| What is a validating vs mutating webhook? | Mutating modifies, validating allows/denies |
| What's the failurePolicy? | Fail (reject if down) or Ignore (allow if down) |
40. Senior-Level Questions
| Question | Expected Answer |
| How do you enforce least privilege? | Scoped RBAC, non-default SA, audit |
| How do you handle over-privileged SAs? | Audit + tighten RBAC + use ValidatingAdmissionPolicy |
What's the risk of cluster-admin? | Full cluster compromise |
| How do you prevent webhook outages? | HA, failurePolicy, timeout tuning |
| How do you secure images? | Sign (cosign), verify at admission (Kyverno) |
41. Staff/Principal Questions
| Question | Expected Answer |
| Design a zero-trust Kubernetes platform. | OIDC + RBAC + PSS + NetworkPolicies + image signing + runtime detection |
| How do you handle multi-tenancy security? | Namespaces + RBAC + NetworkPolicy + Quotas + PSA |
| How do you respond to a cluster-admin compromise? | Rotate all credentials, audit, rebuild trust |
| How do you migrate from privileged to restricted PSA? | Audit → warn → enforce baseline → restricted |
| How do you enforce policy at scale? | Kyverno/OPA + CI validation + audit + gradual enforcement |
1:1 copy of the class Google Doc, code in code blocks.