Stage 1, Part 8 of 9, Kubernetes Fundamentals (Day 0/1)

Text

PART 8: INTERVIEW PREPARATION

36. Junior-Level Questions

QuestionExpected Answer
What is a Pod?Smallest deployable unit, one or more containers
What is a Deployment?Controller that manages ReplicaSets and Pods
What is a Service?Stable network endpoint for Pods
What's the difference between ConfigMap and Secret?ConfigMap = plain config, Secret = sensitive (base64)
What is a Namespace?Logical partition of a cluster

37. Mid-Level Questions

QuestionExpected Answer
How does a Service find Pods?Label selectors
What is a headless Service?clusterIP: None, returns Pod IPs
Why use StatefulSet over Deployment?Stable identity + per-Pod storage
What is an Ingress?HTTP/HTTPS routing into the cluster
What is Helm?Package manager for Kubernetes
What is the difference between requests and limits?Requests = guaranteed, limits = max

38. Senior-Level Questions

QuestionExpected Answer
How do you debug CrashLoopBackOff?describe, logs --previous, check exit codes
How do you achieve zero-downtime deployments?maxUnavailable: 0, readiness probes, graceful shutdown
What's the difference between Deployment and StatefulSet?Identity, storage, ordering
How do you isolate tenants in a cluster?Namespaces + RBAC + NetworkPolicies + Quotas
What is QoS and why does it matter?Guaranteed/Burstable/BestEffort, eviction priority

39. Staff/Principal Questions

QuestionExpected Answer
Design a multi-tenant Kubernetes platform.Namespaces + RBAC + NetworkPolicies + Quotas + PSS + audit
How do you migrate from one cluster to another?Velero, GitOps, blue-green clusters
How do you choose between Deployments and StatefulSets?Stateful → identity + storage; Deployment → stateless
How do you reduce Kubernetes costs by 50%?Right-size, Spot, bin-packing, autoscaling, multi-tenancy
How do you enforce security across 100 teams?Admission policies (Kyverno/OPA) + PSS + CI validation

1:1 copy of the class Google Doc, code in code blocks.