Stage 4, Part 8 of 9 · p. 36, Workloads & Lifecycle Deep Dive
PART 8: INTERVIEW PREPARATION
38. Junior-Level Questions
| Question | Expected Answer |
| Difference between Deployment and StatefulSet? | Identity: Deployment = random, StatefulSet = stable |
| What is a DaemonSet? | Runs one Pod per node |
| What is a Job? | Runs Pods to completion |
| What's the difference between liveness and readiness? | Liveness = restart, readiness = remove from service |
| What is a PDB? | Limits concurrent disruptions |
39. Mid-Level Questions
| Question | Expected Answer |
| RollingUpdate vs Recreate? | RollingUpdate = gradual, Recreate = kill all then create |
| What is maxSurge/maxUnavailable? | Extra and unavailable Pods during update |
| What are init containers? | Sequential setup before main containers |
| What is a native sidecar? | Init container with restartPolicy: Always |
| How do probes interact? | Startup disables others until success |
40. Senior-Level Questions
| Question | Expected Answer |
| Why not use liveness probes on external deps? | Cascading failures |
| How do you achieve zero-downtime deploys? | maxUnavailable:0, readiness, graceful shutdown, PDBs |
| How do PDBs work during node drains? | Block evictions that violate the budget |
| What is the termination sequence? | preStop → SIGTERM → grace → SIGKILL |
| How do you tune probes? | Based on app behavior, test in staging |
41. Staff/Principal Questions
| Question | Expected Answer |
| Design a workload architecture for a global service. | Multi-region, anti-affinity, PDB, probes, graceful shutdown |
| How do you migrate a legacy app to K8s? | Containerize, extract config, use StatefulSet for state, tune |
| How do you standardize workloads across 100 teams? | Templates, policies, admission controllers |
| How do you cost-optimize workloads? | VPA, right-sizing, spot, bin-packing |
| How do you handle disruptive upgrades? | PDBs, node-by-node, blue/green clusters |
1:1 copy of the class Google Doc, code in code blocks.